2021-01-08 18:27:08 +01:00
|
|
|
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`;
|
2021-03-28 23:43:16 +02:00
|
|
|
envString += `API_HOST=${process.env.API_HOST}\n`;
|
2021-04-04 17:49:07 +02:00
|
|
|
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`
|
2021-01-08 18:27:08 +01:00
|
|
|
|
|
|
|
fs.writeFileSync('.env', envString);
|