chore: add staging deploy script for Vercel

This commit is contained in:
zomars
2023-12-19 13:19:49 -07:00
parent 4b3ad579c8
commit ef6bf3d451
+11
View File
@@ -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