You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Visit http://localhost:8787. In your terminal logs you'll see things like
[wrangler:inf] Ready on http://localhost:8787
[wrangler:inf] GET / 200 OK (44ms)
✘ [ERROR] Error: No route matches URL "/assets/entry.client-65eIbm27.js"
[wrangler:inf] GET /assets/entry.client-65eIbm27.js 404 Not Found (8ms)
[wrangler:inf] GET /assets/chunk-7R3XDUXW-BhZqBB9S.js 404 Not Found (12ms)
[wrangler:inf] GET /assets/root-Bn4Ngxxb.css 404 Not Found (12ms)
[wrangler:inf] GET /assets/with-props-CjRNnwNJ.js 404 Not Found (15ms)
[wrangler:inf] GET /assets/root-Dj4aptwQ.js 404 Not Found (15ms)
[wrangler:inf] GET /assets/home-BgHCt-4A.js 404 Not Found (15ms)
[wrangler:inf] GET /assets/logo-dark-pX2395Y0.svg 404 Not Found (3ms)
[wrangler:inf] GET /assets/logo-light-CVbx2LBR.svg 404 Not Found (3ms)
If you run things in dev with npm run dev, static assets are served correctly, but it breaks when you try to actually deploy it.
The text was updated successfully, but these errors were encountered:
The Cloudflare D1 template (and likely the Cloudflare template too!) does not serve any static assets when you build & deploy it.
To reproduce:
cd
into the foldernpm install && npm run build && npm start
http://localhost:8787
. In your terminal logs you'll see things likeIf you run things in dev with
npm run dev
, static assets are served correctly, but it breaks when you try to actually deploy it.The text was updated successfully, but these errors were encountered: