From 9c8eb8f764aeb7a7b2a72d2c808141f1486166cb Mon Sep 17 00:00:00 2001 From: Raymond Lam Date: Sun, 3 Dec 2023 14:53:50 -0500 Subject: [PATCH] Fix example-app build for next@14 --- .github/workflows/ci.yml | 3 --- example/next.config.js | 1 + example/package.json | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1be65689..8eb8d4a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -122,9 +122,6 @@ jobs: run: npm install - working-directory: ./example run: npm run build - - if: matrix.os == 'ubuntu-latest' && matrix.node_version == 20 && ((github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event.action == 'published') - working-directory: ./example - run: npm run export - if: matrix.os == 'ubuntu-latest' && matrix.node_version == 20 && ((github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event.action == 'published') uses: actions/upload-artifact@v3 with: diff --git a/example/next.config.js b/example/next.config.js index 65d05c5f..5f9fb56d 100644 --- a/example/next.config.js +++ b/example/next.config.js @@ -3,6 +3,7 @@ const assetPrefix = `/${repo}/` const basePath = `/${repo}` module.exports = { + output: 'export', assetPrefix: assetPrefix, basePath: basePath, } diff --git a/example/package.json b/example/package.json index ed95c9cd..41680d19 100644 --- a/example/package.json +++ b/example/package.json @@ -12,7 +12,7 @@ "prettier:check": "prettier -c pages components", "lint": "next lint", "typescript": "tsc", - "clean": "rimraf node_modules build" + "clean": "rimraf node_modules build out" }, "dependencies": { "@ginkgo-bioworks/react-json-schema-form-builder": "file:..",