From 0587813dd06d5218b6b2af89fa81e5fa559cf89b Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Mon, 15 Jan 2024 12:12:59 -0600 Subject: [PATCH] Create next.config.js if it is missing. (#701) * Create next.config.js if it is missing. * Add comment. --- .../container-build/cerc-nextjs-base/scripts/build-app.sh | 5 +++++ 1 file changed, 5 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..40bcbeed 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,11 @@ WORK_DIR="${1:-/app}" cd "${WORK_DIR}" || exit 1 +# If this file doesn't exist at all, we'll get errors below. +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