From 936d28d5d0a707685d5ae94c963d004aa48091e1 Mon Sep 17 00:00:00 2001 From: Michael Fix Date: Wed, 27 Jun 2018 10:44:55 -0700 Subject: [PATCH] Move to now.json so GitHub integration kicks in (#414) --- now.json | 16 ++++++++++++++++ package.json | 14 +------------- 2 files changed, 17 insertions(+), 13 deletions(-) create mode 100644 now.json diff --git a/now.json b/now.json new file mode 100644 index 0000000..36b283f --- /dev/null +++ b/now.json @@ -0,0 +1,16 @@ +{ + "name": "carbon", + "type": "docker", + "public": true, + "env": { + "NODE_ENV": "production", + "TWITTER_CONSUMER_KEY": "@twitter-consumer-key", + "TWITTER_CONSUMER_SECRET": "@twitter-consumer-secret", + "TWITTER_ACCESS_TOKEN_KEY": "@twitter-access-token-key", + "TWITTER_ACCESS_TOKEN_SECRET": "@twitter-access-token-secret", + "LOGS_SECRET_PREFIX": "@logs_secret_prefix", + "UNSPLASH_SECRET_KEY": "@unsplash_secret_key", + "UNSPLASH_ACCESS_KEY": "@unsplash_access_key", + "UNSPLASH_CALLBACK_URL": "@unsplash_callback_url" + } +} diff --git a/package.json b/package.json index 7e641a4..c1509a2 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "build": "next build", "start": "node server.js", "test": "npm run cy:run --", - "deploy": "now --public --docker -e NODE_ENV=production", + "deploy": "now", "prettier": "prettier --config .prettierrc --write *.js {components,handlers,lib,pages}/*.js", "lint": "eslint .", "precommit": "npm run contrib:build && git add README.md && lint-staged", @@ -69,18 +69,6 @@ "prettier": "^1.8.1", "webpack": "^3.10.0" }, - "now": { - "env": { - "TWITTER_CONSUMER_KEY": "@twitter-consumer-key", - "TWITTER_CONSUMER_SECRET": "@twitter-consumer-secret", - "TWITTER_ACCESS_TOKEN_KEY": "@twitter-access-token-key", - "TWITTER_ACCESS_TOKEN_SECRET": "@twitter-access-token-secret", - "LOGS_SECRET_PREFIX": "@logs_secret_prefix", - "UNSPLASH_SECRET_KEY": "@unsplash_secret_key", - "UNSPLASH_ACCESS_KEY": "@unsplash_access_key", - "UNSPLASH_CALLBACK_URL": "@unsplash_callback_url" - } - }, "lint-staged": { " *.js": [ "prettier",