mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
merge main
This commit is contained in:
commit
5a25e9a1cc
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
||||
- uses: actions/setup-node@v2
|
||||
- run: npm ci --legacy-peer-deps
|
||||
|
||||
- run: npm run build
|
||||
- run: npm run build:static
|
||||
env:
|
||||
NEXT_PUBLIC_INFURA_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_INFURA_PROJECT_ID }}
|
||||
|
||||
|
@ -50,6 +50,8 @@ cd market
|
||||
nvm use
|
||||
|
||||
npm install
|
||||
# in case of dependency errors, rather use:
|
||||
# npm install --legacy-peer-deps
|
||||
npm start
|
||||
```
|
||||
|
||||
|
@ -7,6 +7,7 @@
|
||||
"scripts": {
|
||||
"start": "npm run pregenerate && next dev -p 8000",
|
||||
"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",
|
||||
|
@ -10,7 +10,7 @@ AWS_S3_BUCKET="www-market"
|
||||
set -e;
|
||||
|
||||
function s3sync {
|
||||
aws s3 sync ./public s3://"$1" \
|
||||
aws s3 sync ./out s3://"$1" \
|
||||
--include "*" \
|
||||
--exclude "*.html" \
|
||||
--exclude "sw.js" \
|
||||
@ -24,7 +24,7 @@ function s3sync {
|
||||
--delete \
|
||||
--acl public-read
|
||||
|
||||
aws s3 sync ./public s3://"$1" \
|
||||
aws s3 sync ./out s3://"$1" \
|
||||
--exclude "*" \
|
||||
--include "*.html" \
|
||||
--include "sw.js" \
|
||||
|
Loading…
Reference in New Issue
Block a user