1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +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", "homepage": "https://market.oceanprotocol.com",
"scripts": { "scripts": {
"start": "gatsby develop --host 0.0.0.0", "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/", "serve": "serve -s public/",
"jest": "NODE_ENV=test jest -c tests/unit/jest.config.js", "jest": "NODE_ENV=test jest -c tests/unit/jest.config.js",
"test": "npm run lint && npm run jest", "test": "npm run lint && npm run jest",