1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

merge main

This commit is contained in:
Bogdan Fazakas 2022-07-08 11:20:05 +03:00
commit 5a25e9a1cc
4 changed files with 6 additions and 3 deletions

View File

@ -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 }}

View File

@ -50,6 +50,8 @@ cd market
nvm use
npm install
# in case of dependency errors, rather use:
# npm install --legacy-peer-deps
npm start
```

View File

@ -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",

View File

@ -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" \