Skip to content

Commit

Permalink
update base path handling
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Dec 14, 2024
1 parent 4a35853 commit 3e9c588
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ jobs:
- name: Build
run: bun run build
env:
VITE_HOMEPAGE: https://idleberg.github.io/playdate-arcade-fonts
BASE_PATH: '/${{ github.event.repository.name }}'
VITE_HOMEPAGE: https://idleberg.github.io/${{ github.event.repository.name }}

- name: Upload Artifacts
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
Expand Down
2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const config = {
kit: {
adapter: getAdapter(),
paths: {
base: process.env.GITHUB_WORKFLOW ? '/playdate-arcade-fonts' : undefined,
base: process.env.GITHUB_WORKFLOW ? process.env.BASE_PATH : undefined,
},
alias: {
$: resolve('./src'),
Expand Down

0 comments on commit 3e9c588

Please sign in to comment.