Commit 829182b
fix: server islands broken in dev mode with adapters that don't set buildOutput (#15703)
* fix: set buildOutput default before runHookConfigDone in dev mode (#15701)
Server islands in dev mode with adapters that don't set
adapterFeatures.buildOutput (like @astrojs/netlify) were broken because
buildOutput was reset to 'static' after runHookConfigDone already set it
to 'server' via setAdapter(). This moves the default assignment before
runHookConfigDone, matching the build path ordering.
* add changeset
* Update .changeset/fix-server-island-dev-build-output.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* Simply test
* Update regex method
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>1 parent 862d77b commit 829182b
3 files changed
Lines changed: 38 additions & 4 deletions
File tree
- .changeset
- packages/astro
- src/core/dev
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
81 | 88 | | |
82 | 89 | | |
83 | 90 | | |
| |||
94 | 101 | | |
95 | 102 | | |
96 | 103 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
397 | 423 | | |
398 | 424 | | |
399 | 425 | | |
| |||
0 commit comments