Skip to content

Commit

Permalink
Merge pull request #121 from mathewjordan/address-base-Path
Browse files Browse the repository at this point in the history
Update basePath for GitHub pages.
  • Loading branch information
mbklein authored Aug 18, 2023
2 parents 7a5310a + 033b4c7 commit 9eb0ae0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
run: npm install
- name: Build with Next.js
run: npx --no-install next build
env:
NEXTJS_BASE_PATH: "/serverless-iiif"
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
Expand Down
5 changes: 3 additions & 2 deletions docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ const withNextra = require('nextra')({
});

module.exports = withNextra({
output: 'export',
basePath: process.env.NEXTJS_BASE_PATH || '',
images: {
unoptimized: true
}
},
output: 'export'
});

// If you have other Next.js configurations, you can pass them as the parameter:
Expand Down

0 comments on commit 9eb0ae0

Please sign in to comment.