From 010e6dc3177e6b38bc48b85433021791f310601b Mon Sep 17 00:00:00 2001 From: Sean Marcia Date: Thu, 5 Dec 2024 22:50:36 -0500 Subject: [PATCH] test --- .github/workflows/nextjs.yml | 8 ++++++-- next.config.js | 6 ++---- package.json | 1 + 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 27b09fa..4061acf 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -73,8 +73,12 @@ jobs: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}- - name: Install dependencies run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} - - name: Build with Next.js - run: ${{ steps.detect-package-manager.outputs.runner }} next build + - name: Build and Export + run: | + ${{ steps.detect-package-manager.outputs.runner }} run build + ${{ steps.detect-package-manager.outputs.runner }} run export + env: + NODE_OPTIONS: --openssl-legacy-provider - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: diff --git a/next.config.js b/next.config.js index 2296a98..24cc19d 100644 --- a/next.config.js +++ b/next.config.js @@ -1,8 +1,6 @@ -const nextConfig = { +module.exports = { output: 'export', images: { unoptimized: true, - }, + } } - -module.exports = nextConfig diff --git a/package.json b/package.json index e3b5ffe..8fc1225 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "scripts": { "dev": "next dev", "build": "next build", + "export": "next export", "start": "next start" }, "dependencies": {