New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add config level option for not rendering 404 for routes not handled by sveltekit. #10010
Comments
|
Was it you I remember who was doing something in a layout that would solve this problem? |
|
You can put Though that will apply to all links - I think what's being asked for here is a way to conditionally apply data-sveltekit-reload to some links based on whether they start with @nisarhassan12 can you provide a repo that shows your setup? It's hard to identify a good solution without some code to look at |
|
Thanks @geoffrich for the response. The original repo is private but here is a clone https://github.com/nisarhassan12/stackbit-sveltekit Let me know incase you have any specific questions about it. The way all the pages are built is from markdown in
Yeah exactly this is what I'm looking for 👍🏿on top of it I want to do this conditionally for the links within the markdown. |
@geoffrich Sorry for the ping. Do you know about any solution for this? Thanks |
Describe the problem
We recently migrated our site to Svelte/SvelteKit we're using the
adapter-staticand hosting the site on an S3 bucket.We have the docs in a separate repo using Hugo as the site generator deployed on S3 as well available at
https://materialize.com/docs/On the deployed Sveltekit site when one visits a link pointing to
https://materialize.com/docs/it renders the 404 page as the docs route is not defined in the kit site.For the links that are within the Svelte components, I can use
data-sveltekit-reloadbut for the links that are within the markdown content coming from CMS it is not feasible to add data-sveltekit-reload to every link pointing to the docs.Describe the proposed solution
Some way in the config to let Sveltekit add
data-sveltekit-reloadto all the links pointing tohttps://materialize.com/docs/or another URL instead of manually doing it in all places.Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response
The text was updated successfully, but these errors were encountered: