fix: storage of sensitive information in build artifact (#3491)

Co-authored-by: Palash Gupta <palashgdev@gmail.com>
This commit is contained in:
Rajat Dabade 2023-09-06 17:20:43 +05:30 committed by GitHub
parent c54fffb51d
commit 0fa0e64697
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -18,7 +18,9 @@ const plugins = [
process: 'process/browser',
}),
new webpack.DefinePlugin({
'process.env': JSON.stringify(process.env),
'process.env': JSON.stringify({
FRONTEND_API_ENDPOINT: process.env.FRONTEND_API_ENDPOINT,
}),
}),
];

View File

@ -25,7 +25,9 @@ const plugins = [
process: 'process/browser',
}),
new webpack.DefinePlugin({
'process.env': JSON.stringify(process.env),
'process.env': JSON.stringify({
FRONTEND_API_ENDPOINT: process.env.FRONTEND_API_ENDPOINT,
}),
}),
new MiniCssExtractPlugin(),
new Critters({