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