Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

capture non-Sapper-controlled URLs in export #392

Closed
Rich-Harris opened this issue Aug 30, 2018 · 0 comments · Fixed by #393
Closed

capture non-Sapper-controlled URLs in export #392

Rich-Harris opened this issue Aug 30, 2018 · 0 comments · Fixed by #393

Comments

@Rich-Harris
Copy link
Member

Currently, sapper export only saves URLs that are explicitly emitted by the middleware. This means that a redirect in app/server.js (for example) isn't reflected in the generated files.

Instead, the middleware should probably only emit data for non-page routes, and sapper export should save everything else based on fetch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant