How do I specify the routing between frontend and backend?
Currently
/ is the only route that goes to react. Everything else is sent to the hono worker. Ideally only things prefixed in /api are routed to hono. Currently it's not possible to load some routes on my react app.3 Replies
you can use the assets.run_worker_first setting in your wrangler file
Cloudflare Docs
Single Page Application (SPA)
How to configure and use a Single Page Application (SPA) with Workers.
er, use in combination with the 404-page setting in assets.not_found_handling