[✨] Delta Builds to Add Routes on Live Servers w/o Restart -- Moonshot #156
n8sabes
started this conversation in
Proposals For Qwik
Replies: 1 comment
-
We moved this issue to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem?
There is currently no way to add (or remove) routes without rebuilding and redeploying an entire site.
Describe the solution you'd like
There should be a way to add routes without rebuilding and redeploying the entire site on a live server. New routes would be compiled against a prior build, "adding" new modules to the existing collection.
To update the live server, simply copy the new files. No restart required. This enables new routes that are truly complied to operate against an existing code base on the server, bringing them online live w/o the downtime of a restart. This could be used for automatically generated routes on the fly (via code templates or other pipelines).
pnpm deltabuild ./prior_build_path
It would also be cool if
301
/302
/404
could be applied to existing routes in a delta build as well.Describe alternatives you've considered
Dynamically generating pages SSR using templates but this defeats the speed and value proposition Qwik offers.
Additional context
Other possible ways to describe a build process that extends (builds upon, or changes) a prior build:
The result would behave like the head of a git repo, or worm storage system.
pnpm moonshot
😉Beta Was this translation helpful? Give feedback.
All reactions