summarylogtreecommitdiffstats
path: root/node-env-production.patch
diff options
context:
space:
mode:
Diffstat (limited to 'node-env-production.patch')
-rw-r--r--node-env-production.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/node-env-production.patch b/node-env-production.patch
new file mode 100644
index 000000000000..1d2904b49313
--- /dev/null
+++ b/node-env-production.patch
@@ -0,0 +1,13 @@
+--- a/static/index.js
++++ b/static/index.js
+@@ -85,6 +85,10 @@
+ );
+ }
+
++ if (!devMode) {
++ process.env.NODE_ENV = 'production';
++ }
++
+ const FileSystemBlobStore = useSnapshot
+ ? snapshotResult.customRequire('../src/file-system-blob-store.js')
+ : require('../src/file-system-blob-store');