deploying existing astro app using workers
is it possible to deploy an existing astro framework app using cloudflare workers for static assets? or does deploying with workers require the project to be initiated using npm run cloudflare@latest? i’m trying to understand if i can adapt an already built app for this setup. thanks!
2 Replies
Hey @bkyerv , you should be able to add the asset directory configuration like so:
https://developers.cloudflare.com/workers/static-assets/binding/#directory
No need for additional bootstrapping of the project, the files will be uploaded as part of
wrangler deploy
Cloudflare Docs
Configuration and Bindings · Cloudflare Workers docs
Details on how to configure Workers static assets and its binding.
Cool thank you. Will try it