Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'server.cjs')
-rw-r--r--server.cjs3
1 files changed, 3 insertions, 0 deletions
diff --git a/server.cjs b/server.cjs
index 19e6039..47e4723 100644
--- a/server.cjs
+++ b/server.cjs
@@ -3,6 +3,9 @@ const { createServer } = require('esbuild-server');
const server = createServer(
{
bundle: true,
+ define: {
+ 'env': `"${process.env.NODE_ENV || 'dev'}"`,
+ },
entryPoints: ['src/index.js', 'src/map.js', 'src/soldier_record_block.js'],
...(process.env.NODE_ENV !== 'test') && {
outdir: 'build'