Skip to content

Commit

Permalink
Try to include environment variables when deploying in github
Browse files Browse the repository at this point in the history
  • Loading branch information
buckmanb committed Feb 25, 2025
1 parent 0878615 commit 6c744cb
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions blog-app/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,9 @@
// const Dotenv = require('dotenv-webpack');

// const webpack = require('webpack');
// const { merge } = require('webpack-merge');
// const AngularWebpackPlugin = require('@ngtools/webpack').AngularWebpackPlugin;
// const path = require('path');
const Dotenv = require('dotenv-webpack')
const Dotenv = require('dotenv-webpack');

module.exports = {
plugins: [
new Dotenv()
]
}

// module.exports = (config) => {
// return merge(config, {
// plugins: [
// new webpack.DefinePlugin({
// 'process.env': JSON.stringify({
// SOME_ENV_VARIABLE: 'your_value_here'
// })
// })
// ]
// });
// };
plugins: [
new Dotenv({
systemvars: true, //Set to true if you would rather load all system variables as well (useful for CI purposes)
})
]
};

0 comments on commit 6c744cb

Please sign in to comment.