Skip to content

Commit 56da4a8

Browse files
committed
Update changeset
1 parent ab0d863 commit 56da4a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.changeset/dirty-balloons-stare.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
"@react-router/dev": patch
33
---
44

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

Comments
 (0)