From 46e54888530c1a9edf8279f91a8c3511cca4a7ef Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Tue, 5 Feb 2019 01:13:17 -0200 Subject: [PATCH] Create now.json (#65) * Create now.json --- now.json | 14 ++++++++++++++ package.json | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 now.json diff --git a/now.json b/now.json new file mode 100644 index 00000000..2e3c2cc7 --- /dev/null +++ b/now.json @@ -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"} + ] +} diff --git a/package.json b/package.json index b92fb2c7..51b1908e 100644 --- a/package.json +++ b/package.json @@ -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