From af3b4b256ca242b1390b87d08b9f8a7c424163e6 Mon Sep 17 00:00:00 2001 From: lispking Date: Fri, 24 Nov 2023 07:35:46 +0800 Subject: [PATCH] ! fixed yarn export failed issue and use next.config.js config instead of it --- .github/workflows/gh-pages.yml | 1 - next.config.js | 4 +++- package.json | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 4f34d73..b2ccd71 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -35,7 +35,6 @@ jobs: - run: yarn install --frozen-lockfile - run: yarn build - - run: yarn export - name: Deploy uses: peaceiris/actions-gh-pages@v3 diff --git a/next.config.js b/next.config.js index 767719f..0ce18d3 100644 --- a/next.config.js +++ b/next.config.js @@ -1,4 +1,6 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {} +const nextConfig = { + output: 'export' +} module.exports = nextConfig diff --git a/package.json b/package.json index fd9ea6d..54ea820 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,7 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "next lint", - "export": "next export" + "lint": "next lint" }, "dependencies": { "next": "14.0.3",