fix: replace process.env.NODE_ENV with import.meta.env.DEV
Deploy to Vercel / deploy (push) Failing after 1m14s
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:
@@ -21,7 +21,7 @@ void i18n
|
||||
.init({
|
||||
resources,
|
||||
fallbackLng: "en-GB",
|
||||
debug: process.env.NODE_ENV === "development",
|
||||
debug: import.meta.env.DEV,
|
||||
|
||||
interpolation: {
|
||||
escapeValue: false, // React already does escaping
|
||||
|
||||
Reference in New Issue
Block a user