From 0a86abbc84eb75e4804d51eb58fc6ca99e8ab5d9 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 5 Dec 2022 11:50:53 +0000 Subject: [PATCH] Revert "default to static build (#1812)" (#1819) --- .github/workflows/deploy.yml | 2 +- README.md | 2 -- package.json | 5 +++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ebcac307c..f389d744d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,7 +16,7 @@ jobs: node-version: 18 - run: npm ci - - run: npm run build + - run: npm run build:static env: NEXT_PUBLIC_INFURA_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_INFURA_PROJECT_ID }} diff --git a/README.md b/README.md index 5aefa62c9..39e4dcf4d 100644 --- a/README.md +++ b/README.md @@ -351,8 +351,6 @@ npm run build npm run serve ``` -The build command runs `next export` and outputs a static site under `./out`, ready to be deployed. - ## ⬆️ Deployment Every branch or Pull Request is automatically deployed to multiple hosts for redundancy and emergency reasons: diff --git a/package.json b/package.json index 1e92dd7d6..e534e104c 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,9 @@ "homepage": "https://market.oceanprotocol.com", "scripts": { "start": "npm run pregenerate && next dev -p 8000", - "build": "npm run pregenerate && next build && next export", - "serve": "serve -s out/", + "build": "npm run pregenerate && next build", + "build:static": "npm run build && next export", + "serve": "serve -s public/", "pregenerate": "bash scripts/pregenerate.sh", "test": "npm run pregenerate && npm run lint && npm run type-check && npm run jest", "jest": "jest -c .jest/jest.config.js",