1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-14 09:14:52 +01:00

netlify rewrite rules (#244)

* netify rewrite rule

* copy redirects file after build

* rewrite
This commit is contained in:
Matthias Kretschmann 2020-11-12 15:15:41 +01:00 committed by GitHub
parent 724cd8db3d
commit d87e8dacb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
_redirects Normal file
View File

@ -0,0 +1 @@
/asset/* /asset/index.html 200

View File

@ -6,7 +6,7 @@
"homepage": "https://market.oceanprotocol.com",
"scripts": {
"start": "gatsby develop --host 0.0.0.0",
"build": "gatsby clean && gatsby build",
"build": "gatsby clean && gatsby build && cp _redirects public/_redirects",
"serve": "serve -s public/",
"jest": "NODE_ENV=test jest -c tests/unit/jest.config.js",
"test": "npm run lint && npm run jest",