Skip to content

Commit

Permalink
Adding vercel.json
Browse files Browse the repository at this point in the history
  • Loading branch information
sevelinCa committed Jun 21, 2024
1 parent 367c0f3 commit 0a25f05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const webpack = require('webpack');

module.exports = (env) => {
const isProduction = env.NODE_ENV === 'production';
const dotenvFilename = isProduction ? '.env.production' : '.env.development';
const dotenvFilename = '.env';

return {
entry: './src/index.tsx',
Expand Down Expand Up @@ -50,6 +50,7 @@ module.exports = (env) => {
}),
new Dotenv({
path: dotenvFilename,
systemvars: true
}),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(env.NODE_ENV),
Expand Down

0 comments on commit 0a25f05

Please sign in to comment.