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({
|
.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
|
||||||
|
|||||||
Reference in New Issue
Block a user