paimon-moe/scripts/createEnv.js

9 lines
290 B
JavaScript
Raw Normal View History

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-01-08 18:27:08 +01:00
fs.writeFileSync('.env', envString);