Commit 06fbfe8
committed
feat: Worker run and redwood plugin improvements (#661)
## Problem
Currently, one is able to specify a custom config path for their wrangler config in our vite plugin, but not with `worker-run` scripts. We need to be able to specifying the wrangler config in both cases.
## Solution
Change both the vite pugin and `worker-run` to make use of a `RWSDK_WRANGLER_CONFIG` env var to specify the wrangler config path.
Went fr env var instead of a cli arg, so that it can be propagated more easily to the different parts that need to know the worker config path.
```bash
RWSDK_WRANGLER_CONFIG=... pnpm dev:init
RWSDK_WRANGLER_CONFIG=... pnpm dev
```
Solves #6361 parent 04fc778 commit 06fbfe8
2 files changed
+16
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
29 | 36 | | |
30 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
31 | 40 | | |
32 | 41 | | |
33 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| |||
0 commit comments