Skip to content

Commit 2ac4e5b

Browse files
committed
fix: set SvelteKit base path for /slide-maker prefix in staging
1 parent be94e9e commit 2ac4e5b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/web/svelte.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
55
const config = {
66
preprocess: vitePreprocess(),
77
kit: {
8-
adapter: adapter()
8+
adapter: adapter(),
9+
paths: {
10+
base: process.env.PUBLIC_URL?.includes('/slide-maker') ? '/slide-maker' : '',
11+
},
912
}
1013
};
1114

0 commit comments

Comments
 (0)