Exclude PDF assets from prerendering (#476)

This commit is contained in:
Ben Senescu 2026-08-10 23:03:20 -04:00 committed by GitHub
parent edc2c07af2
commit 7a1748af4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ export default defineConfig({
tanstackStart({
prerender: {
enabled: true,
filter: ({ path }) => !/\.pdf(?:[?#]|$)/i.test(path),
},
}),
react(),