Replies: 3 comments 2 replies
-
Thanks for sharing it. We are investigating the possibility of supporting new static assets handling for In the meantime, Nitro |
Beta Was this translation helpful? Give feedback.
-
I've been researching the various Cloudflare Nitro presets from both Nitro and Cloudflare, to see how static assets can be supported. Existing presets
Nitro's
Cloudflare's preset has a # wrangler.toml
name = "cloudflare-static-assets"
compatibility_date = "2024-09-25"
main = "./dist/worker/index.js"
assets = { directory = "./dist/public", binding = "ASSETS" } Supporting in Nitro properlySo Nitro can support Static Assets already, but on top of legacy Worker Sites within it's presets. I think these are the options for Nitro:
It'd also just need the We should keep Cloudflare presetI think Cloudflare's Nitro preset should extend |
Beta Was this translation helpful? Give feedback.
-
Moving to nitrojs/nitro#2764 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Would be great to get a nitro preset for the new Cloudflare workers with static assets (released yesterday)
https://developers.cloudflare.com/workers/static-assets
Thanks for Nitro, is one of the best projects out there!
Beta Was this translation helpful? Give feedback.
All reactions