Skip to content

Commit

Permalink
fix: remove conditional env file creation
Browse files Browse the repository at this point in the history
  • Loading branch information
ZipingL committed Oct 28, 2023
1 parent 436edcb commit 7c28f5e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/public.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,6 @@ const htmlMiny = minify(htmlNew, {
});
if(process && process?.env){
process.env.DATEMODIFIED_CODE_DEPLOYED = modifiedDate;
} else {
const env_filestring = `DATEMODIFIED_CODE_DEPLOYED=${modifiedDate}`;
fs.writeFileSync(path.resolve(__dirname, '../.env'), env_filestring, 'utf8');
}

}
fs.writeFileSync(path.resolve(__dirname, '../.env'), env_filestring, 'utf8'); fs.writeFileSync(path.resolve(__dirname, '../.env'), env_filestring, 'utf8');
fs.writeFileSync(path.resolve(__dirname, '../build/index.html'), htmlMiny, 'utf8');

0 comments on commit 7c28f5e

Please sign in to comment.