Separate route deployment
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 20.8k
- Forks
- 2.3k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 156
Description
Describe the problem
We're evaluating SvelteKit as our framework of choice, but we need to control which page will be rendered on which route server-side with answers from our API (dynamically construct the route map). Currently:
- There is no way to build and deploy a single route without rebuilding and redeploying the whole app.
- The whole route map is static meaning it needs to be known at compile time.
Describe the proposed solution
As far as I understand a hydrated SvelteKit app is not aware what is rendered on a new route already, since the component is loaded during the navigation. So it seems implementing dynamic routing support would be at least somewhat feasible.
The proposed solution: a single route build target which can be deployed separately while working the same as a single deployment.
Alternatives considered
- Generating SvelteKit project structure dynamically and redeploying the whole app — this is somewhat okay, but it won't scale nicely for our use case, unfortunately.
- Using vanilla Svelte — would require reimplementing all of the niceties of SvelteKit ourselves, which is a huge effort.
Importance
I cannot use SvelteKit without it
Additional Information
Although a big part SvelteKit' appeal is its simple file based routing structure, dynamic routing is an important use case, especially for enterprise applications.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no specific files, tests, or entry points. Start by reviewing SvelteKit's route-map generation and deployment architecture; done would mean supporting independently deployable route targets while preserving a single deployment's behavior and allowing server-side dynamic route mapping.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100