There was an error while loading. Please reload this page.
1 parent b19bb3e commit 71c9df9Copy full SHA for 71c9df9
1 file changed
.github/workflows/deploy-pages.yml
@@ -34,8 +34,10 @@ jobs:
34
- name: Install dependencies
35
run: npm ci
36
37
+ # Use npx vite directly so `--base` reaches Vite. `npm run build -- --base …` is mishandled by npm
38
+ # (it treats `--base` as an npm flag and passes only the path as Vite's root directory).
39
- name: Build
- run: npm run build -- --base "${{ steps.pages.outputs.base_path }}"
40
+ run: npx tsc && npx vite build --base "${{ steps.pages.outputs.base_path }}"
41
env:
42
VITE_SUPABASE_URL: ${{ secrets.VITE_SUPABASE_URL }}
43
VITE_SUPABASE_ANON_KEY: ${{ secrets.VITE_SUPABASE_ANON_KEY }}
0 commit comments