I would like to make specific link from my page ( https://www.bizraport.pl/organizacje ) prerendered. My issue is that page uses (in both +page.server.js and +page.svelte) url.searchParams.get which makes an error:
Error: Cannot access url.searchParams on a page with prerendering enabled
I do get that there is infinite number of urls which can be created with parameters. However in my +page.server.js there is added export const prerender = 'auto'; and in svelte.config.js:
prerender: {
entries: ["/organizacje"],
},
So why isn't it intelligent enough, to just get page /organizacje and do not worry about any url parameters. If there is any it should be standard approach (without prerender)
Links about similar topics:
https://dev.to/marcdaframe/sveltekit-dynamic-routes-static-renderer-17dl
How to use get parameter on sveltekit when use adapter-static?
Tried to make prerenderer work with specific url. This url is based on parameters, however not the main one. It may be filtered by additional parameters.
searchParamsin+page.server.jssense, if the page is pre-rendered? Are you trying to update the potentially stale data of the pre-rendered version?