Skip to content

Commit

Permalink
Merge pull request #84 from edivados/replace-passthrough
Browse files Browse the repository at this point in the history
replace passthrough with fallthrough
  • Loading branch information
nksaraf authored Jan 4, 2024
2 parents e31abb2 + b2ef06f commit 67a245c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/violet-brooms-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vinxi": patch
---

replace passthrough with fallthrough
6 changes: 2 additions & 4 deletions packages/vinxi/lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
}
})
Expand Down

0 comments on commit 67a245c

Please sign in to comment.