diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index caded30..83c93e7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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: diff --git a/docs/next.config.js b/docs/next.config.js index 6d0d10b..414e970 100644 --- a/docs/next.config.js +++ b/docs/next.config.js @@ -5,10 +5,10 @@ const withNextra = require('nextra')({ module.exports = withNextra({ basePath: process.env.NEXTJS_BASE_PATH || '', - output: 'export', images: { unoptimized: true - } + }, + output: 'export' }); // If you have other Next.js configurations, you can pass them as the parameter: