diff --git a/.github/workflows/gh-pages-nextjs.yml b/.github/workflows/gh-pages-nextjs.yml index ed74736..ec47682 100644 --- a/.github/workflows/gh-pages-nextjs.yml +++ b/.github/workflows/gh-pages-nextjs.yml @@ -18,6 +18,9 @@ permissions: pages: write id-token: write +env: + BASE_PATH: /aixb-landing-page + # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: @@ -55,12 +58,6 @@ jobs: cache: ${{ steps.detect-package-manager.outputs.manager }} - name: Setup Pages uses: actions/configure-pages@v5 - with: - # Automatically inject basePath in your Next.js configuration file and disable - # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). - # - # You may remove this line if you want to manage the configuration yourself. - static_site_generator: next - name: Restore cache uses: actions/cache@v4 with: diff --git a/next.config.js b/next.config.js index bdbc710..afdca23 100644 --- a/next.config.js +++ b/next.config.js @@ -2,5 +2,7 @@ const withMDX = require('@next/mdx')({ extension: /\.mdx?$/, }) module.exports = withMDX({ + output: 'export', + basePath: process.env.BASE_PATH ?? '', pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'], }) \ No newline at end of file