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"> <html lang="en">
<ClerkProvider> <ClerkProvider>
<TooltipProvider> <TooltipProvider>
<head> {process.env.PLAUSIBLE_DOMAIN && (
{process.env.PLAUSIBLE_DOMAIN && ( <head>
<PlausibleProvider domain={process.env.PLAUSIBLE_DOMAIN} /> <PlausibleProvider domain={process.env.PLAUSIBLE_DOMAIN} />
)} </head>
</head> )}
<body className={inter.className}> <body className={inter.className}>
<main className="w-full flex min-h-[100dvh] flex-col items-center justify-start"> <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"> <div className="z-[-1] fixed h-full w-full bg-white">

View File

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