Deploying static site + hosted functions

Maybe I'm missing something, but I'm wondering why frameworks like SolidStart and NextJS don't support deploying static builds with some dynamic backend functions. Many hosting environments (firebase hosting, Netlify, render.io, ...) support both serving static files, as well as running functions, so it'd be cool if a framework could support this. This could be done by configuring a route prefix, and all of the routes matching that prefix will be part of the server build, all other routes would be part of the static build. The hosting environment can then be configured to pass any requests with that prefix to the backend, and use the static assets for all the rest.
2 Replies
peerreynders
peerreynders7mo ago
Sounds like you are describing Astro's hybrid mode. And Astro does support Solid for interactivity and partial hydration.
bigblind
bigblindOP7mo ago
Ooh, I should look into that
Want results from more Discord servers?
Add your server