Skip to content

The agent engineering platform.

Add ignore vercel preview script (#6320)

Davis Chase2eea5d4cb4ee
diff --git a/docs/docs_skeleton/ignore_build.sh b/docs/docs_skeleton/ignore_build.sh
new file mode 100755
index 0000000000..114e45604c
--- /dev/null
+++ b/docs/docs_skeleton/ignore_build.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF"
+
+if [[ $VERCEL_GIT_COMMIT_REF = __docs__* ]] ; then
+ # Proceed with the build
+ echo "✅ - Build can proceed"
+ exit 1;
+
+else
+ # Don't build
+ echo "🛑 - Build cancelled"
+ exit 0;
+fi