groenroos
groenroos
CDCloudflare Developers
Created by groenroos on 3/9/2024 in #pages-help
Serving SPA in subdirectory
Cool - I'll have a go on that, then. Thanks!
6 replies
CDCloudflare Developers
Created by groenroos on 3/9/2024 in #pages-help
Serving SPA in subdirectory
Or.... could I not just call the root of the SPA 404.html and then CFP would automatically respond with that? Only downside would be the HTTP status code - could that be overridden with Workers?
6 replies
CDCloudflare Developers
Created by groenroos on 3/9/2024 in #pages-help
Serving SPA in subdirectory
Thanks for the reply! A separate repo/deployment would def make my life easier, but unfortunately it's not feasible for this project :facesad: I did suspect I'd need a Function/Worker for this. For clarity, are you saying that I could have a Function that just handles the traffic to the SPA (which would be fine), or that I'd need a Function that needs to insert itself between all traffic throughout the entire deployment (which sounds less fine)?
6 replies