We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 930fc66 commit 623a729Copy full SHA for 623a729
.github/workflows/deploy.yml
@@ -35,6 +35,8 @@ jobs:
35
36
- name: Build
37
run: npm run build
38
+ env:
39
+ KITESQL_WEB_BASE: /kitesql-web/
40
41
- name: Upload artifact
42
uses: actions/upload-pages-artifact@v3
vite.config.ts
@@ -1,11 +1,14 @@
1
import { defineConfig } from "vite";
2
3
-// Vite will handle the wasm import from the bundler-target build of kite_sql.
+const base = process.env.KITESQL_WEB_BASE ?? "/";
4
+
5
export default defineConfig({
- // GitHub Pages site will be served from /kitesql-web/
6
- base: "/kitesql-web/",
+ base,
7
publicDir: "static",
8
server: {
9
port: 4173,
10
},
11
+ preview: {
12
+ port: 4173,
13
+ },
14
});
0 commit comments