Skip to content

Commit

Permalink
feat: environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbo-lab committed Oct 16, 2024
1 parent 6e65255 commit cbadea7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ module.exports = {
new HtmlWebpackPlugin({
template: "./public/index.html",
}),
new DefinePlugin(envKeys), // Inject environment variables into the bundle
new DefinePlugin({
"process.env.NASA_API_KEY": JSON.stringify(process.env.NASA_API_KEY),
}),
],
devServer: {
static: {
Expand Down

0 comments on commit cbadea7

Please sign in to comment.