fix: replace process.env.NODE_ENV with import.meta.env.DEV
Deploy to Vercel / deploy (push) Failing after 1m14s

process.env is not available in the browser tsconfig without
@types/node. import.meta.env.DEV is Vite's built-in equivalent.
This commit is contained in:
2026-06-08 16:54:35 +08:00
parent 130e988143
commit 531dc6e9aa
+1 -1
View File
@@ -21,7 +21,7 @@ void i18n
.init({ .init({
resources, resources,
fallbackLng: "en-GB", fallbackLng: "en-GB",
debug: process.env.NODE_ENV === "development", debug: import.meta.env.DEV,
interpolation: { interpolation: {
escapeValue: false, // React already does escaping escapeValue: false, // React already does escaping