From 5ff45521c56459ac14f85abd7e03bc64e7515fca Mon Sep 17 00:00:00 2001 From: Trance-0 <60459821+Trance-0@users.noreply.github.com> Date: Mon, 24 Nov 2025 15:45:24 -0600 Subject: [PATCH] Update prebuild.sh --- distribute/prebuild.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/distribute/prebuild.sh b/distribute/prebuild.sh index 68375fd..41d0b41 100644 --- a/distribute/prebuild.sh +++ b/distribute/prebuild.sh @@ -2,6 +2,12 @@ export KEEP_PAGES="Math3200" +# check if environment variable is set +if $KEEP_PAGES == ""; then + echo "Please set environment variable KEEP_PAGES to the pages you want to keep for microsite building." + exit 1 +fi + echo "Currently compiling pages: ${KEEP_PAGES}" # Rewrite base _meta.js and next.config.js for export pages