diff --git a/.changeset/violet-brooms-design.md b/.changeset/violet-brooms-design.md new file mode 100644 index 00000000..675cf33e --- /dev/null +++ b/.changeset/violet-brooms-design.md @@ -0,0 +1,5 @@ +--- +"vinxi": patch +--- + +replace passthrough with fallthrough diff --git a/packages/vinxi/lib/build.js b/packages/vinxi/lib/build.js index 3b0e6a78..b2d84c38 100644 --- a/packages/vinxi/lib/build.js +++ b/packages/vinxi/lib/build.js @@ -156,21 +156,19 @@ export async function createBuild(app, buildConfig) { // @ts-expect-error dir: router.dir, baseURL: router.base, - passthrough: true, fallthrough: true, }; } else if (router.mode === "handler") { return { dir: join(router.outDir, router.base, "assets"), baseURL: join(router.base, "assets"), - passthrough: true, + fallthrough: true, }; } else if (router.mode === "spa" || router.mode === "build") { return { dir: join(router.outDir, router.base), baseURL: router.base, - passthrough: true, - ...(router.mode === "spa" ? { fallthrough: true } : {}), + fallthrough: true, }; } })