exhibitionist-digital / ultra

Zero-Legacy Deno/React Suspense SSR Framework
https://ultrajs.dev
MIT License
2.99k stars 67 forks source link

deploy: Netlify Edge Functions #127

Open ascorbic opened 2 years ago

ascorbic commented 2 years ago

Netlify Edge Functions use a Deno runtime (based on Deno Deploy), so it should be possible to deploy Ultra to it. There are docs on integrating, but it boils down to creating an entrypoint file in the correct directory, and a manifest file specifying that it should serve all requests.

I work on framework integrations at Netlify, so I'm happy to assist if you need some advice or support.

mashaal commented 2 years ago

Thanks, I might take you up on the advice, are you on our Discord server? Supporting edge environments in one of our main goals

mashaal commented 2 years ago

@ascorbic - we are almost there, netlify dev works, but we are running into an import_map issue.

https://github.com/netlify/edge-bundler/issues/108

ascorbic commented 2 years ago

Hi @mashaal That certainly does look like a bug at our end. We're looking into it.

deckchairlabs commented 2 years ago

Waiting on https://github.com/netlify/edge-bundler/pull/109 to be merged, and I think some upstream changes to @netlify/build. But this would mean we can support Netlify edge functions, with very little effort.

deckchairlabs commented 2 years ago

Well, that PR has been merged, waiting on @netlify/build now, and this should be all thats needed, and some testing obviously...

ascorbic commented 2 years ago

These should all be out now. Have you tried again?