Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-05-04 10:25:22 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-05-04 10:25:22 -0700
commitf021368a6697c6b064aa8da208cdf60265f4bfe0 (patch)
tree57a4f8aa011d893004accc1a5043c5e154780d8f /server.cjs
parent3049acbe1599e6665fd6ee48496048493349bf97 (diff)
WIP: add fullscreen and download save abilities
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'