Skip to content

Commit 1f937d7

Browse files
committed
fix pdf & vcf
1 parent 00ca2e5 commit 1f937d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vite.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ export default defineConfig({
3838
server: {
3939
port: 1337,
4040
},
41+
preview: {
42+
host: "127.0.0.1",
43+
},
4144
plugins: [
4245
tsConfigPaths({ projects: ["./tsconfig.json"] }),
4346
tanstackStart({
@@ -49,6 +52,8 @@ export default defineConfig({
4952
autoSubfolderIndex: true,
5053
crawlLinks: true,
5154
failOnError: true,
55+
filter: (page) =>
56+
!page.path.match(/\.(pdf|zip|vcf|xml|ico|txt|json)$/),
5257
},
5358
}),
5459
reactNativeWeb(),

0 commit comments

Comments
 (0)