diff --git a/scripts/esbuild.js b/scripts/esbuild.js index c15aeec9182..2c413fdf1d6 100644 --- a/scripts/esbuild.js +++ b/scripts/esbuild.js @@ -23,6 +23,9 @@ const nodeDefaults = { const bundleDefaults = { ...nodeDefaults, + define: { + 'process.env.NODE_ENV': isProd ? '"production"' : '"development"', + }, bundle: true, external: [ '@signalapp/signal-client',