Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Broken preview deployments (#16523)

Keith Williamsc080458faa56
diff --git a/apps/web/scripts/vercel-production-deploy.sh b/apps/web/scripts/vercel-app-router-deploy.sh
similarity index 96%
rename from apps/web/scripts/vercel-production-deploy.sh
rename to apps/web/scripts/vercel-app-router-deploy.sh
index d032670fbcc..19b667505d5 100755
--- a/apps/web/scripts/vercel-production-deploy.sh
+++ b/apps/web/scripts/vercel-app-router-deploy.sh
@@ -1,8 +1,5 @@
#!/bin/bash
-# Only deploy to production
-if [ "$VERCEL_ENV" != "production" ]; then exit 0; fi
-
checkRoute () {
if [ "$1" != '1' ]; then rm -rf $2; fi
}
diff --git a/apps/web/scripts/vercel-staging-deploy.sh b/apps/web/scripts/vercel-staging-deploy.sh
deleted file mode 100755
index 994cf899dc2..00000000000
--- a/apps/web/scripts/vercel-staging-deploy.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/bash
-
-if [ "$SKIP_APP_DIR" == "1" ]; then
- echo "Skipping app directory build"
- rm -rf \
- app/\
- components/PageWrapperAppDir.tsx\
- lib/app-providers-app-dir.tsx\
- .next/types/app/
-fi
-if [ "$VERCEL_ENV" == "preview" ]; then exit 1; else exit 0; fi