Allow the use of Javascript runtimes for Jamstack apps (SSR)
In order to support Jamstack applications that use hydration or partial hydration, like next.js, nuxt.js, SvelteKit, Astro or even Fullstack frameworks like Remix, I would like to introduce the support for Javascript Runtimes that are deployed on edge.
The most viable deployment platform to achieve this is likely Cloudflare Workers. An integration is currently already possible, but needs some manual setup, that can likely be simplified.
To get to that point I have two options I am considering at this stage:
-
Openly work with Cloudflare like we do with Google Cloud: Use the API to set up a Worker on Cloudflare, set up the API keys etc., but otherwise leave the user to interact with Cloudflare directly
-
Use Cloudflare under the hood, but otherwise massively simplify the User Interface: Set up some environment that makes JS runtime apps “just work”, where we handle everything: domain management, request handling, etc. Since workers have a custom request/response interface, there will be a need for an adapter for each framework. This can obviously be any cloudflare worker adapter, but we'd need some intelligence to obtain them. 100x better UX, but way more effort required.
My current plan: go with 1. first, and add 2. later. This makes for double effort, but: the first option is both faster and more in line with the configurability USP anyway