Commit 183b666
authored
fix: Avoid providing import.meta.env.VITE_IS_DEV_SERVER in preview server (#612)
#609 introduced `import.meta.env.VITE_IS_DEV_SERVER`, which should only be present when dev server is running (not in deploys or for preview server).
There was a bug in the logic causing `import.meta.env.VITE_IS_DEV_SERVER` to only get added for the preview server instead of the dev server.
This in turn broke HMR with the following:
```
No module found for '__rsc_hot_update' in module lookup for "use server" directive
```1 parent a341ec5 commit 183b666
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments