From 2dde37d295430eab1cea4f2602cb146ceae140e7 Mon Sep 17 00:00:00 2001 From: Jaroslaw Michalski Date: Tue, 10 Oct 2023 14:00:36 +0100 Subject: [PATCH] add some changes for testing --- package.json | 2 +- scripts/patchUrls.js | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 97f7c7efa..0a2741939 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "lint": "yarn flow", "start": "unset HOST && react-scripts start", "build": "unset HOST && export NODE_OPTIONS=--max-old-space-size=8192 && react-scripts build", - "postbuild": "chmod +x scripts/node_heap_size.sh && ./scripts/node_heap_size.sh && node scripts/patchUrls.js --max-old-space-size=8192", + "postbuild": "chmod +x scripts/node_heap_size.sh && ./scripts/node_heap_size.sh && node scripts/patchUrls.js --max-old-space-size=3072", "ppostbuild": "react-snap", "test": "react-scripts test", "eject": "react-scripts eject" diff --git a/scripts/patchUrls.js b/scripts/patchUrls.js index 4e0c9e866..1be9be0ce 100644 --- a/scripts/patchUrls.js +++ b/scripts/patchUrls.js @@ -97,7 +97,15 @@ const main = async () => { ...process.env }; + console.log("+++ extractEnvVars():", extractEnvVars()) + console.log("+++ process.env:", process.env) + console.log("+++ Number of files =", files.length) + + let counter = 0; + for ( const file of files ) { + counter += 1; + console.log(counter, " - ", file) const tmpFile = `${ file }.tmp`;