Spaces:
Sleeping
Sleeping
File size: 642 Bytes
5f1e333 d529a1b 5f1e333 d529a1b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | const fs = require('fs');
// Log the environment variables
console.log('REACT_APP_GOOGLE_CLIENT_ID:', process.env.REACT_APP_GOOGLE_CLIENT_ID);
console.log('REACT_APP_FLASK_API_URL:', process.env.REACT_APP_FLASK_API_URL);
// Construct the content of the .env file
const envContent = `
REACT_APP_GOOGLE_CLIENT_ID=${process.env.REACT_APP_GOOGLE_CLIENT_ID}
REACT_APP_FLASK_API_URL=${process.env.REACT_APP_FLASK_API_URL}
`;
// Write the content to the .env file
fs.writeFileSync('.env', envContent, (err) => {
if (err) {
console.error('Error writing .env file', err);
} else {
console.log('.env file created successfully');
}
});
|