Skip to content

Commit 05bbca1

Browse files
committed
fix github pages base
1 parent 2650ad1 commit 05bbca1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/svelte.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const config = {
1313
},
1414
kit: {
1515
adapter: adapterStatic({ fallback: 'index.html', strict: false }),
16-
paths: { relative: true },
16+
paths: { relative: true, base: '/rov-web' },
1717
serviceWorker: {
1818
// files: "service-worker.ts"
1919
},

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dev:internal": "cd rov-internal-website; vite dev --host",
1313
"build:frontend": "cd frontend; vite build",
1414
"build:internal": "cd rov-internal-website; vite build",
15-
"preview:frontend": "cd frontend; vite preview --host",
15+
"preview:frontend": "cd frontend; vite preview --host --base /rov-web",
1616
"preview:internal": "cd rov-internal-website; vite preview --host",
1717
"sveltekit:sync": "cd frontend; svelte-kit sync",
1818
"sveltekit:check": "cd frontend;svelte-kit sync && svelte-check --tsconfig ./frontend/tsconfig.json",

0 commit comments

Comments
 (0)