paimon-moe/scripts/createEnv.js
I Made Setia Baruna 43aaa18da6 Fix env
2021-03-08 22:05:19 +08:00

8 lines
292 B
JavaScript

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