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
lily
lily5mo ago
you can use the assets.run_worker_first setting in your wrangler file
lily
lily5mo ago
er, use in combination with the 404-page setting in assets.not_found_handling

Did you find this page helpful?