Skip to content

Commit

Permalink
Try to fix asset loading in github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Sliman4 committed Dec 26, 2024
1 parent 17f7990 commit 5e7495d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/deploy-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ jobs:
run: npm ci

- name: Build and Export
env:
NEXT_PUBLIC_BASE_PATH: '/oracle'
run: npm run build

- name: Upload artifact
Expand Down
4 changes: 2 additions & 2 deletions crates/dashboard-frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const nextConfig = {
images: {
unoptimized: true,
},
basePath: process.env.NEXT_PUBLIC_BASE_PATH || '',
assetPrefix: process.env.NEXT_PUBLIC_BASE_PATH || '',
assetPrefix: './',
trailingSlash: true,
}

module.exports = nextConfig

0 comments on commit 5e7495d

Please sign in to comment.