From ef6bf3d451e4c441ccdef868f8c3e98da3236781 Mon Sep 17 00:00:00 2001 From: zomars Date: Tue, 19 Dec 2023 13:16:33 -0700 Subject: [PATCH] chore: add staging deploy script for Vercel --- scripts/vercel-staging-deploy.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/vercel-staging-deploy.sh diff --git a/scripts/vercel-staging-deploy.sh b/scripts/vercel-staging-deploy.sh new file mode 100755 index 0000000000..4c1e1e691f --- /dev/null +++ b/scripts/vercel-staging-deploy.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [ "$VERCEL_ENV" == "preview" ]; then exit 1; else exit 0; fi +if [ "$SKIP_APP_DIR" == "1" ]; then + echo "Skipping app directory build" + rm -rf \ + apps/web/app/\ + apps/web/components/PageWrapperAppDir.tsx\ + apps/web/lib/app-providers-app-dir.tsx\ + apps/web/.next/types/app/ +fi