From f51bbd5633f143719063d757f9c894570d9dd2ba Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Sun, 4 Apr 2021 23:49:07 +0800 Subject: [PATCH] Fix env script --- scripts/createEnv.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/createEnv.js b/scripts/createEnv.js index 9d79a146..0573fb55 100644 --- a/scripts/createEnv.js +++ b/scripts/createEnv.js @@ -4,11 +4,11 @@ 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 += `API_HOST=${process.env.API_HOST}\n`; -envString += `FIREBASE_API_KEY=${FIREBASE_API_KEY}\n` -envString += `FIREBASE_AUTH_DOMAIN=${FIREBASE_AUTH_DOMAIN}\n` -envString += `FIREBASE_PROJECT_ID=${FIREBASE_PROJECT_ID}\n` -envString += `FIREBASE_STORAGE_BUCKET=${FIREBASE_STORAGE_BUCKET}\n` -envString += `FIREBASE_MESSAGING_SENDER_ID=${FIREBASE_MESSAGING_SENDER_ID}\n` -envString += `FIREBASE_APP_ID=${FIREBASE_APP_ID}\n` +envString += `FIREBASE_API_KEY=${process.env.FIREBASE_API_KEY}\n` +envString += `FIREBASE_AUTH_DOMAIN=${process.env.FIREBASE_AUTH_DOMAIN}\n` +envString += `FIREBASE_PROJECT_ID=${process.env.FIREBASE_PROJECT_ID}\n` +envString += `FIREBASE_STORAGE_BUCKET=${process.env.FIREBASE_STORAGE_BUCKET}\n` +envString += `FIREBASE_MESSAGING_SENDER_ID=${process.env.FIREBASE_MESSAGING_SENDER_ID}\n` +envString += `FIREBASE_APP_ID=${process.env.FIREBASE_APP_ID}\n` fs.writeFileSync('.env', envString);