Repository navigation
Commit 2ce59a9
fix(add): the playground builds the page's remote before running (#1230)
The backend answered 404 for /assets/mf-manifest.json — the manifest it
advertises in its own /.well-known/solution.json — so a host could
federate nothing and the page had no bundle to load.
The cause was not the address. The solution runtime serves /assets/ from
ASSETS_DIR, which already defaults to ../fe-remote/dist relative to the
backend; there was simply never a build there. The fleet's playground
runs its build-frontend.sh FIRST for exactly this reason, and the
scaffolded Makefile did not build the remote at all.
It now builds it and asserts the manifest exists before the run, so the
failure is a build error at the top rather than a 404 an hour later. The
shell installs the remote as a copy, so it needs it built too.
Verified on a clean scaffold:
dist/mf-manifest.json 1.7 kB
backend /assets/mf-manifest.json 200
{"id":"notes","exposes":["Page"]}
edge / 200 (signed in as alex)
edge /v1/notes/overview 200
Co-authored-by: Antoine Toussaint <312536060+antoinetoussaint-byte@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent ea665d0 commit 2ce59a9
3 files changed
Lines changed: 44 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
208 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
209 | 220 | | |
210 | 221 | | |
211 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2435 | 2435 | | |
2436 | 2436 | | |
2437 | 2437 | | |
2438 | | - | |
2439 | | - | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
2440 | 2441 | | |
2441 | 2442 | | |
2442 | 2443 | | |
| |||
2450 | 2451 | | |
2451 | 2452 | | |
2452 | 2453 | | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
2453 | 2460 | | |
2454 | 2461 | | |
2455 | 2462 | | |
| |||
0 commit comments