fix: replace process.env.NODE_ENV with import.meta.env.DEV
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:
1 file changed
+1
-1
@@ -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