sveltejs / sveltejs/kit

Adapter-static (SPA) output for dynamic routes

Open
#4,157 12 comments 5 reactions 0 assignees View on GitHub

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

If a route is /[slug]/edit.svelte and the app uses SPA mode(fallback in config) what would happen is that page would use fallback page for that route because is has a dynamic slug.

Kinda related: #4158

Describe the proposed solution

Adapter should render a page /slug/edit.html or something like that and make adapter specific configuration for rewrites.

Alternatives considered

Stay as is

Importance

nice to have

Additional Information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Begin by tracing how the adapter handles SPA fallback output for dynamic routes, then clarify the generated path and adapter-specific rewrite configuration, using /[slug]/edit.svelte and related issue #4158 as the starting context.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.