2022-07-21 17:24:14 +02:00
|
|
|
import fs from 'fs';
|
2021-01-08 18:27:08 +01:00
|
|
|
|
|
|
|
let envString = '';
|
2022-07-21 17:24:14 +02:00
|
|
|
envString += `VITE_GOOGLE_DRIVE_CLIENT_ID=${process.env.GOOGLE_DRIVE_CLIENT_ID}\n`;
|
|
|
|
envString += `VITE_GOOGLE_DRIVE_API_KEY=${process.env.GOOGLE_DRIVE_API_KEY}\n`;
|
|
|
|
envString += `VITE_API_HOST=${process.env.API_HOST}\n`;
|
|
|
|
envString += `VITE_FIREBASE_API_KEY=${process.env.FIREBASE_API_KEY}\n`;
|
|
|
|
envString += `VITE_FIREBASE_AUTH_DOMAIN=${process.env.FIREBASE_AUTH_DOMAIN}\n`;
|
|
|
|
envString += `VITE_FIREBASE_PROJECT_ID=${process.env.FIREBASE_PROJECT_ID}\n`;
|
|
|
|
envString += `VITE_FIREBASE_STORAGE_BUCKET=${process.env.FIREBASE_STORAGE_BUCKET}\n`;
|
|
|
|
envString += `VITE_FIREBASE_MESSAGING_SENDER_ID=${process.env.FIREBASE_MESSAGING_SENDER_ID}\n`;
|
|
|
|
envString += `VITE_FIREBASE_APP_ID=${process.env.FIREBASE_APP_ID}\n`;
|
2021-01-08 18:27:08 +01:00
|
|
|
|
|
|
|
fs.writeFileSync('.env', envString);
|