You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .changeset/dirty-balloons-stare.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,6 @@
2
2
"@react-router/dev": patch
3
3
---
4
4
5
-
Ensure `--mode` flag is honored within `routes.ts` when accessing via `import.meta.env.MODE`
5
+
In a `routes.ts` context, ensure the `--mode` flag is respected for `import.meta.env.MODE`
6
+
7
+
Previously, `import.meta.env.MODE` within a `routes.ts` context was always `"development"` for the `dev` and `typegen --watch` commands, but otherwise resolved to `"production"`. These defaults are still in place, but if a `--mode` flag is provided, this will now take precedence.
0 commit comments