diff --git a/apps/next/package.json b/apps/next/package.json index 50cfbaf..c485209 100644 --- a/apps/next/package.json +++ b/apps/next/package.json @@ -4,7 +4,7 @@ "type": "module", "private": true, "scripts": { - "build": "bun next build", + "build": "bun with-env next build", "build:env": "bun with-env next build", "clean": "git clean -xdf .cache .next .turbo node_modules", "dev": "bun with-env next dev --turbo", diff --git a/apps/next/src/app/global-error.tsx b/apps/next/src/app/global-error.tsx index 222671a..a768c90 100644 --- a/apps/next/src/app/global-error.tsx +++ b/apps/next/src/app/global-error.tsx @@ -15,6 +15,7 @@ import * as Sentry from '@sentry/nextjs'; import PlausibleProvider from 'next-plausible'; import { Button, ThemeProvider, Toaster } from '@gib/ui'; +import { env } from '@/env.js'; export const metadata: Metadata = generateMetadata(); @@ -45,8 +46,8 @@ const GlobalError = ({ error, reset = undefined }: GlobalErrorProps) => { }, [error]); return (