-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Describe the bug
In my app, I build 2 apps, one is for development with all prerender false but with entries specified. That worked fine so far.
And other app have some routes set to prerender and that also worked fine.
I've added new server side more comples route like
forum/[...slug=noAssets]
Inside which I have +server.ts, +page.server.ts, +page.svelte, +page.ts
Which in each of this files I've specifically said export const prerender = false at all times.
I still have kit.prerender.entries = ['/forum'], which to my understanding shouldn't matter, and it never did until now.
But I get error when building node app, it tries to prerender /forum
How can I debug what triggers it to be marked for prerender ?
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-af8uvi?file=src%2Froutes%2Fforum%2F%5B...slug%5D%2F%2Bserver.js
run npm run build
Logs
No response
System Info
System:
OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
Memory: 5.97 GB / 14.64 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 18.16.1 - ~/.nvm/versions/node/v18.16.1/bin/node
npm: 9.5.1 - ~/.nvm/versions/node/v18.16.1/bin/npm
pnpm: 7.13.4 - /mnt/c/Users/user/AppData/Roaming/npm/pnpm
npmPackages:
@sveltejs/adapter-auto: ^1.0.0 => 1.0.3
@sveltejs/adapter-node: ^1.1.0 => 1.3.1
@sveltejs/adapter-static: ^1.0.1 => 1.0.6
@sveltejs/kit: 1.22.0 => 1.22.0
@sveltejs/package: 1.0.0 => 1.0.0
@sveltejs/vite-plugin-svelte: ^2.0.2 => 2.4.3
svelte: 3.55.1 => 3.55.1
vite: ^4.0.1 => 4.4.7Severity
serious, but I can work around it
Additional Information
No response