From d3f538bb2452d4ff9aa89aca100957d0a1866abb Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Wed, 10 Jan 2024 18:36:54 -0600 Subject: [PATCH] Create next.config.js if it is missing. --- .../container-build/cerc-nextjs-base/scripts/build-app.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stack_orchestrator/data/container-build/cerc-nextjs-base/scripts/build-app.sh b/stack_orchestrator/data/container-build/cerc-nextjs-base/scripts/build-app.sh index 759ba255..375d2445 100755 --- a/stack_orchestrator/data/container-build/cerc-nextjs-base/scripts/build-app.sh +++ b/stack_orchestrator/data/container-build/cerc-nextjs-base/scripts/build-app.sh @@ -21,6 +21,10 @@ WORK_DIR="${1:-/app}" cd "${WORK_DIR}" || exit 1 +if [ ! -f "next.config.js" ]; then + touch next.config.js +fi + if [ ! -f "next.config.dist" ]; then cp next.config.js next.config.dist fi