groenroos
CDCloudflare Developers
•Created by aravindrajme on 11/27/2024 in #pages-help
Pages build failing because Puppeteer won't launch.
Running into the same issue with the same error, albeit with the
rollup-plugin-critical
package with Vite. Haven't found a workaround or solution yet, and migrating to GHA to get around this seems like an outsize effort in our case. Would appreciate any help! 🙏6 replies
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