|
@@ -9,6 +9,11 @@
|
|
|
# to `out/` (symlinking didn't work).
|
|
|
#
|
|
|
# Ref: https://developers.cloudflare.com/pages/how-to/build-commands-branches/
|
|
|
+#
|
|
|
+# To test this script locally, run
|
|
|
+#
|
|
|
+# CF_PAGES_BRANCH=foo-bar ./scripts/deploy.sh
|
|
|
+#
|
|
|
|
|
|
set -o errexit
|
|
|
set -o xtrace
|
|
@@ -24,6 +29,10 @@ case "$CF_PAGES_BRANCH" in
|
|
|
yarn build:auth
|
|
|
cp -R apps/auth/out .
|
|
|
;;
|
|
|
+ cast-*)
|
|
|
+ yarn build:cast
|
|
|
+ cp -R apps/cast/out .
|
|
|
+ ;;
|
|
|
*)
|
|
|
yarn build:photos
|
|
|
cp -R apps/photos/out .
|