Skip to content

Commit

Permalink
try with base path
Browse files Browse the repository at this point in the history
  • Loading branch information
wysiwys committed Aug 28, 2024
1 parent 8dd435b commit 5e844e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
npm --prefix $GITHUB_WORKSPACE/frontend run buildOffline
find $GITHUB_WORKSPACE/frontend/dist/ -type d -exec chmod 755 {} \;
find $GITHUB_WORKSPACE/frontend/dist/ -type f -exec chmod 644 {} \;
find $GITHUB_WORKSPACE/frontend/dist/ -type f -print0 | xargs -0 sed -i 's/\/assets/\/cordial-modplayer\/assets/g'
tar -cvf github-pages.tar -C $GITHUB_WORKSPACE/frontend/dist .
- name: Upload artifact
Expand Down
2 changes: 2 additions & 0 deletions frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function hasBackend() {
}
}
export default defineConfig({
// TODO: fix for desktop player
base: '/cordial-modplayer',
define: {
__HAS_BACKEND__: hasBackend(),
},
Expand Down

0 comments on commit 5e844e3

Please sign in to comment.