Skip to content

Commit 623a729

Browse files
committed
fix: update website base path for GitHub Pages
1 parent 930fc66 commit 623a729

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535

3636
- name: Build
3737
run: npm run build
38+
env:
39+
KITESQL_WEB_BASE: /kitesql-web/
3840

3941
- name: Upload artifact
4042
uses: actions/upload-pages-artifact@v3

vite.config.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import { defineConfig } from "vite";
22

3-
// Vite will handle the wasm import from the bundler-target build of kite_sql.
3+
const base = process.env.KITESQL_WEB_BASE ?? "/";
4+
45
export default defineConfig({
5-
// GitHub Pages site will be served from /kitesql-web/
6-
base: "/kitesql-web/",
6+
base,
77
publicDir: "static",
88
server: {
99
port: 4173,
1010
},
11+
preview: {
12+
port: 4173,
13+
},
1114
});

0 commit comments

Comments
 (0)