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",