This commit is contained in:
I Made Setia Baruna 2021-03-08 22:05:19 +08:00
parent 5e96df8aa9
commit 43aaa18da6
2 changed files with 3 additions and 1 deletions

View file

@ -1,2 +1,3 @@
GOOGLE_DRIVE_CLIENT_ID=
GOOGLE_DRIVE_API_KEY=
GOOGLE_DRIVE_API_KEY=
CORS_HOST=

View file

@ -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);