-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
Which project does this relate to?
Start
Describe the bug
The prerender option without a sitemap throws this error:
error during build:
Error: Sitemap is not enabled
at buildSitemap (file:///Users/jan/code/privat/tests/prerender-no-sitemap/node_modules/@tanstack/start-plugin-core/dist/esm/build-sitemap.js:75:11)
at postServerBuild (file:///Users/jan/code/privat/tests/prerender-no-sitemap/node_modules/@tanstack/start-plugin-core/dist/esm/post-server-build.js:46:5)
at async Object.buildApp (file:///Users/jan/code/privat/tests/prerender-no-sitemap/node_modules/@tanstack/start-plugin-core/dist/esm/plugin.js:245:15)
at async Object.buildApp (file:///Users/jan/code/privat/tests/prerender-no-sitemap/node_modules/vite/dist/node/chunks/dep-Chhhsdoe.js:34251:38)
at async CAC.<anonymous> (file:///Users/jan/code/privat/tests/prerender-no-sitemap/node_modules/vite/dist/node/cli.js:641:3)
Config:
tanstackStart({
prerender: {
enabled: true,
crawlLinks: false,
},
pages: [{path: "/"}],
sitemap: {
enabled: false,
}
}),Your Example Website or App
https://github.com/checkerschaf/tanstack-start-prerender-no-sitemap
Steps to Reproduce the Bug or Issue
- Install reproduction repo
npm installnpm run build
See the build fail.
Expected behavior
Build should work without errors. Static HTML should be output but no sitemap.xml file.
Screenshots or Videos
No response
Platform
- Router / Start Version: 1.132.51
- OS: macOS
- Bundler: Vite and Rolldown, same behaviour
Additional context
No response
dangnhdev, elite174 and jperasmus
Metadata
Metadata
Assignees
Labels
No labels