diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 32f6c7f..f0f240d 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -23,6 +23,10 @@ function MyApp({ Component, pageProps: { session, ...pageProps } }: AppProps<{ s const { i18n } = useTranslation(); const settingStore = useSettingStore(); + // Check whether those NEXT_PUBLIC_ envs are properly exposed in frontend. + // See https://github.com/vercel/next.js/discussions/17641 + console.log("Use database:", process.env.NEXT_PUBLIC_DATABASE_LESS); + useEffect(() => { const darkMediaQuery = window.matchMedia("(prefers-color-scheme: dark)"); const handleColorSchemeChange = (e: MediaQueryListEvent) => {