Skip to content

Commit

Permalink
Create now.json (#65)
Browse files Browse the repository at this point in the history
* Create now.json
  • Loading branch information
mattwr18 authored and joaopapereira committed Feb 5, 2019
1 parent 7640876 commit 46e5488
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions now.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": 2,
"name": "WebsiteOne-FE",
"builds": [
{ "src": "package.json", "use": "@now/static-build" }
],
"routes": [
{"src": "^/(.*).svg", "dest": "/$1.svg"},
{"src": "^/(.*).eot", "dest": "/$1.eot"},
{"src": "^/(.*).ttf", "dest": "/$1.ttf"},
{"src": "^/main.js", "headers": {"cache-control": "s-maxage=0"}, "dest": "/main.js"},
{"src": "^/(.*)", "dest": "/index.html"}
]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"cypress:install": "cypress install",
"e2e:local": "cypress run --headed",
"e2e:ci": "npm-run-all --parallel --race start:ci 'cypress:ci --config baseUrl=http://localhost:8082'",
"start:ci": "webpack-dev-server --config ./webpack.config.js --port 8082 --mode production"

"start:ci": "webpack-dev-server --config ./webpack.config.js --port 8082 --mode production",
"now-build": "yarn build"
},
"cypress-cucumber-preprocessor": {
"nonGlobalStepDefinitions": true
Expand Down

0 comments on commit 46e5488

Please sign in to comment.