My current patch to make this work: 1. specify --config wrangler.jsonc in the build script 2. Add as

My current patch to make this work:
  1. specify --config wrangler.jsonc in the build script
  2. Add assets binding and directory to the assets in the wrangler config
  3. Downgrade wranger-type to 4.0.0. (The newest version is not working. Giving type errors which is a separate problem)
  4. Serve the assets in the handler (Like before this pr: https://github.com/cloudflare/workers-sdk/commit/efda570d7d98dce8bdbc6e8eff0ff920b6bbe985
I am not sure exactly what update for SPA mode was intended to do, but the worker code is not being invoked at all.
GitHub
  • remove unnecessary bits for spa mode
  • changeset
  • pr feedback
  • remove unnecessary env
Was this page helpful?