SolidJSS
SolidJSโ€ข2y agoโ€ข
2 replies
bigblind

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.
Was this page helpful?