Skip to content
This repository was archived by the owner on Feb 9, 2024. It is now read-only.
This repository was archived by the owner on Feb 9, 2024. It is now read-only.

include handler function for SPAs 💆🏻‍♀️ #46

@ashleymichal

Description

@ashleymichal

For users wanting to serve single page applications with in-app routing (such as vue, react-router, etc), we should provide a handler that will treat a specific subset of paths as root, always serving the root index.html with the javascript application.

Some background:

Stack Overflow Q&A: https://stackoverflow.com/questions/58432345/cloudflare-workers-spa-with-vuejs/58439234

Cloudflare Community post (same user): https://community.cloudflare.com/t/cloudflare-workers-spa-with-vuejs/122864

Docs issue: cloudflare/workers-docs#439

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions