From 150e0984a7ce7be43112e919caba40232103d454 Mon Sep 17 00:00:00 2001 From: Michael Recachinas Date: Tue, 27 Aug 2024 12:59:15 -0400 Subject: [PATCH] Replace npm run export with output: export in next.config.js --- .github/workflows/deploy.yml | 2 -- .github/workflows/pr.yml | 2 -- next.config.js | 1 + 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 64c537ce..4304266e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -71,8 +71,6 @@ jobs: file_pattern: 'generated.json' skip_checkout: true push_options: '--force' - - name: Static HTML export with Next.js - run: npm run export - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 9fcb913b..5c29ade3 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -43,8 +43,6 @@ jobs: run: npm run build env: GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} - - name: Static HTML export with Next.js - run: npm run export - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: diff --git a/next.config.js b/next.config.js index 6d338d07..a3b25e43 100644 --- a/next.config.js +++ b/next.config.js @@ -4,6 +4,7 @@ const nextConfig = { reactStrictMode: true, productionBrowserSourceMaps: true, trailingSlash: true, + output: "export" } module.exports = nextConfig