diff --git a/.github/workflows/npm-deploy.yml b/.github/workflows/npm-deploy.yml index 5c9bb25e..79e4b532 100644 --- a/.github/workflows/npm-deploy.yml +++ b/.github/workflows/npm-deploy.yml @@ -23,7 +23,7 @@ jobs: node-version: ${{ matrix.node-version }} cache: "npm" cache-dependency-path: "**/package-lock.json" # THIS PATTERN did the trick for me. - - run: npm install && npx next build && npx next export && touch out/.nojekyll + - run: npm install && npx next build && touch out/.nojekyll - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4.4.3 with: diff --git a/src/next.config.js b/src/next.config.js index e0668a0c..2e4eb46a 100644 --- a/src/next.config.js +++ b/src/next.config.js @@ -1,4 +1,8 @@ +/** + * @type {import('next').NextConfig} + */ module.exports = { + output: 'export', // Uncomment the line below to enable basePath, pages and // redirects will then have a path prefix (`/app` in this case) //