mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
default to static build (#1812)
This commit is contained in:
parent
4ae4740ec8
commit
28376404a8
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
@ -16,7 +16,7 @@ jobs:
|
|||||||
node-version: 18
|
node-version: 18
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
||||||
- run: npm run build:static
|
- run: npm run build
|
||||||
env:
|
env:
|
||||||
NEXT_PUBLIC_INFURA_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_INFURA_PROJECT_ID }}
|
NEXT_PUBLIC_INFURA_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_INFURA_PROJECT_ID }}
|
||||||
|
|
||||||
|
@ -351,6 +351,8 @@ npm run build
|
|||||||
npm run serve
|
npm run serve
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The build command runs `next export` and outputs a static site under `./out`, ready to be deployed.
|
||||||
|
|
||||||
## ⬆️ Deployment
|
## ⬆️ Deployment
|
||||||
|
|
||||||
Every branch or Pull Request is automatically deployed to multiple hosts for redundancy and emergency reasons:
|
Every branch or Pull Request is automatically deployed to multiple hosts for redundancy and emergency reasons:
|
||||||
|
@ -6,9 +6,8 @@
|
|||||||
"homepage": "https://market.oceanprotocol.com",
|
"homepage": "https://market.oceanprotocol.com",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "npm run pregenerate && next dev -p 8000",
|
"start": "npm run pregenerate && next dev -p 8000",
|
||||||
"build": "npm run pregenerate && next build",
|
"build": "npm run pregenerate && next build && next export",
|
||||||
"build:static": "npm run build && next export",
|
"serve": "serve -s out/",
|
||||||
"serve": "serve -s public/",
|
|
||||||
"pregenerate": "bash scripts/pregenerate.sh",
|
"pregenerate": "bash scripts/pregenerate.sh",
|
||||||
"test": "npm run pregenerate && npm run lint && npm run type-check && npm run jest",
|
"test": "npm run pregenerate && npm run lint && npm run type-check && npm run jest",
|
||||||
"jest": "jest -c .jest/jest.config.js",
|
"jest": "jest -c .jest/jest.config.js",
|
||||||
|
Loading…
Reference in New Issue
Block a user