Skip to content

Commit 35a5c05

Browse files
committed
Add fallback route into adapter opts
1 parent 00a8379 commit 35a5c05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ await patchFiles(
113113
`adapter-auto';`,
114114
`adapter-static';\nimport { readFileSync } from 'node:fs';\n\nconst { version: name } = JSON.parse(readFileSync(new URL('package.json', import.meta.url), 'utf8'));`
115115
],
116-
[`adapter()`, `adapter(), version:{name}`],
116+
[`adapter()`, `adapter({fallback:'404.html'}), version:{name}`],
117117
[`\n};`, `, preprocess: [vitePreprocess()]\n};`]
118118
)
119119

0 commit comments

Comments
 (0)