mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-07-30 18:53:24 +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 { i18n } = useTranslation();
|
||||||
const settingStore = useSettingStore();
|
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(() => {
|
useEffect(() => {
|
||||||
const darkMediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
|
const darkMediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
|
||||||
const handleColorSchemeChange = (e: MediaQueryListEvent) => {
|
const handleColorSchemeChange = (e: MediaQueryListEvent) => {
|
||||||
|
Reference in New Issue
Block a user