mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-07-25 07:42:14 +08:00
chore: add a log to printout NEXT_PUBLIC env
This commit is contained in:
@ -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) => {
|
||||
|
Reference in New Issue
Block a user