From 43aaa18da6b507879160fd5f90c50d71c6c5522f Mon Sep 17 00:00:00 2001 From: I Made Setia Baruna Date: Mon, 8 Mar 2021 22:05:19 +0800 Subject: [PATCH] Fix env --- .env.example | 3 ++- scripts/createEnv.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index ba3bd8e6..367b6918 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1,3 @@ GOOGLE_DRIVE_CLIENT_ID= -GOOGLE_DRIVE_API_KEY= \ No newline at end of file +GOOGLE_DRIVE_API_KEY= +CORS_HOST= \ No newline at end of file diff --git a/scripts/createEnv.js b/scripts/createEnv.js index c9a233df..44c0fdd2 100644 --- a/scripts/createEnv.js +++ b/scripts/createEnv.js @@ -3,5 +3,6 @@ const fs = require('fs'); let envString = ''; envString += `GOOGLE_DRIVE_CLIENT_ID=${process.env.GOOGLE_DRIVE_CLIENT_ID}\n`; envString += `GOOGLE_DRIVE_API_KEY=${process.env.GOOGLE_DRIVE_API_KEY}\n`; +envString += `CORS_HOST=${process.env.CORS_HOST}\n`; fs.writeFileSync('.env', envString);