Skip to content

Commit

Permalink
ci: set base url
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Oct 4, 2024
1 parent ca4ac86 commit 61b1968
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: npm ci
- name: Build
env:
SERVICE_URL: ${{ vars.SERVICE_URL }}
BASE_URL: /${{ github.repository }}/
run: |
npm run build
cp -r static dist
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const { maptilerAPIKey } = fromEnv({

export default defineConfig({
plugins: [solid()],
base: process.env.BASE_URL ?? '/',
define: {
MAPTILER_API_KEY: JSON.stringify(maptilerAPIKey),
},
Expand Down

0 comments on commit 61b1968

Please sign in to comment.