From f021368a6697c6b064aa8da208cdf60265f4bfe0 Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Sat, 4 May 2024 10:25:22 -0700
Subject: WIP: add fullscreen and download save abilities
---
server.cjs | 3 +++
1 file changed, 3 insertions(+)
(limited to 'server.cjs')
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'
--
cgit v1.2.3