Skip to content

Commit b55b44d

Browse files
committed
Normalize BASE_PATH to end with a trailing slash
actions/configure-pages outputs base_path without a trailing slash, which concatenated to "…keyboardv86/…" at runtime. Vite's base must end in /.
1 parent c0bf9c0 commit b55b44d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default defineConfig(({ command }) => {
3030
if (command === "build") {
3131
return {
3232
...common,
33-
base: process.env["BASE_PATH"] ?? "/",
33+
base: (process.env["BASE_PATH"] ?? "/").replace(/\/?$/, "/"),
3434
build: {
3535
outDir: resolve(here, "dist"),
3636
emptyOutDir: true,

0 commit comments

Comments
 (0)