Redirects with prerendering #8105
Unanswered
draykefriesen
asked this question in
Q&A
Replies: 0 comments
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.
-
We have a sveltekit site with prerendering enabled from our root
+layout.server.ts
file. We've imported a lot of content which contain links to routes on the old site and we're wondering how to handle these redirects.We're deploying on vercel, and including a
vercel.json
file with redirects works with prerendering not enabled, but when we have it enabled our build breaks. When prerendering is enabled the build fails withError: Not found: /about-us
.Whats the recommended way to handle this so we can keep prerendering?
Beta Was this translation helpful? Give feedback.
All reactions