fix: missing env key issue

This commit is contained in:
Karrix 2024-01-14 16:51:38 +08:00
parent babeddc478
commit a27bdf5ea2
2 changed files with 8 additions and 8 deletions

View File

@ -36,11 +36,11 @@ export default function RootLayout({
<html lang="en">
<ClerkProvider>
<TooltipProvider>
<head>
{process.env.PLAUSIBLE_DOMAIN && (
<head>
<PlausibleProvider domain={process.env.PLAUSIBLE_DOMAIN} />
)}
</head>
)}
<body className={inter.className}>
<main className="w-full flex min-h-[100dvh] flex-col items-center justify-start">
<div className="z-[-1] fixed h-full w-full bg-white">

View File

@ -29,11 +29,11 @@ export default async function RootLayout({
return (
<html lang="en" className="h-full" suppressHydrationWarning>
<head>
{process.env.PLAUSIBLE_DOMAIN && (
<head>
<PlausibleProvider domain={process.env.PLAUSIBLE_DOMAIN} />
)}
</head>
)}
<body className="flex min-h-full bg-white antialiased dark:bg-zinc-900">
<Providers>
<div className="w-full">