You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is caused by routes/examples/[...path]/+page.server.ts not working properly, similar to #1056. I have investigated this further. The root cause is that the entire application is set to be prerenderable in routes/+layout.server.ts, so routes/examples/[...path]/+page.server.ts becomes prerenderable. There is a link to /examples in content/blog/2022-01-13-accelerating-sveltes-development.md, and only a static redirect from /examples to /playground is generated.
As for the fix, there are two approaches: setting the redirect in hooks, similar to #1089, or adding export const prerender = false; to routes/examples/[...path]/+page.server.ts. The former provides consistency across the entire application. However, since svelte.dev is also intended to be referenced as an example project, it is acceptable to have both methods for redirects: using hooks and using +page.server.ts. Therefore, I will create a PR using the latter approach.
It seems that requests to /examples/[...] are not being redirected properly.
https://svelte.dev/examples/hello-world
This might be related to #1056.
The text was updated successfully, but these errors were encountered: