We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cbd32d commit bb79acaCopy full SHA for bb79aca
next.config.js
@@ -8,10 +8,9 @@ let basePath = '';
8
9
// Only apply GitHub Pages settings when on production branch in GitHub Actions
10
if (isGithubActions && isProductionBranch) {
11
- // Since we already have a /provisions route in the app, we'll use the root path
12
- // for GitHub Pages deployment to avoid double paths
13
- assetPrefix = '/';
14
- basePath = '';
+ const repo = process.env.GITHUB_REPOSITORY.replace(/.*?\//, '');
+ assetPrefix = `/${repo}/`;
+ basePath = `/${repo}`;
15
}
16
17
module.exports = {
0 commit comments