paimon-moe-fork/scripts/createEnv.js

9 lines
290 B
JavaScript
Raw Normal View History

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