martin
martin
CDCloudflare Developers
Created by martin on 11/1/2024 in #workers-help
Static Assets: How to deploy a SPA?
yes, will do 🫡
11 replies
CDCloudflare Developers
Created by martin on 11/1/2024 in #workers-help
Static Assets: How to deploy a SPA?
yeah that makes sense, i guess it's just convenient to have it altogether for smaller projects but for big ones i'll definitely keep that in mind, thanks man. if i could ask for a feature it'd be nice to have something like cloudfront's cache behaviours where i could say /api/* is handled by hono and all the rest is static assets so just handle it as a spa. i think having it all in one worker is super convenient to have the backend and frontend deployed at the same time + no need for a monorepo setup or something like that
11 replies
CDCloudflare Developers
Created by martin on 11/1/2024 in #workers-help
Static Assets: How to deploy a SPA?
yeah i just wanted to have a good hono + remix setup in a single worker, would you suggest having remix as a spa in one worker and hono separately?
11 replies
CDCloudflare Developers
Created by martin on 11/1/2024 in #workers-help
Static Assets: How to deploy a SPA?
No description
11 replies
CDCloudflare Developers
Created by martin on 11/1/2024 in #workers-help
Static Assets: How to deploy a SPA?
so fast man, cloudflare is the best 🔥
11 replies
CDCloudflare Developers
Created by martin on 11/1/2024 in #workers-help
Static Assets: How to deploy a SPA?
ah THANK YOU, this works beautifully!! i didn't find that c.env.ASSET.fetch anywhere
11 replies
CDCloudflare Developers
Created by martin on 11/1/2024 in #workers-help
Static Assets: How to deploy a SPA?
11 replies
CDCloudflare Developers
Created by martin on 11/1/2024 in #workers-help
Static Assets: How to deploy a SPA?
No description
11 replies
CDCloudflare Developers
Created by martin on 11/1/2024 in #workers-help
Static Assets: How to deploy a SPA?
I can package it into a minimum reproducible example and share a git repo with you if you want!
11 replies
CDCloudflare Developers
Created by martin on 11/1/2024 in #workers-help
Static Assets: How to deploy a SPA?
hey, thank you for the speedy answer!. I did set up that however it's not working as expected, could it be that i'm providing a main handler (hono) and that takes precedent over that setting?
11 replies