docs: remove templates (#25717)

- [x] check redirect works at template root
- [x] check redirect works within individual template page
This commit is contained in:
Erick Friis
2024-08-23 15:51:12 -07:00
committed by GitHub
parent 90439b12f6
commit 0022ae1b31
6 changed files with 8 additions and 82 deletions

View File

@@ -8,16 +8,16 @@ if [ "$VERCEL_ENV" == "production" ] || [ "$VERCEL_GIT_COMMIT_REF" == "master" ]
echo "✅ Production build - proceeding with build"
exit 1;
else
echo "Checking for changes in docs/ and templates/:"
echo "Checking for changes in docs/"
echo "---"
git log -n 50 --pretty=format:"%s" -- . ../templates | grep -v '(#'
git log -n 50 --pretty=format:"%s" -- . | grep -v '(#'
if [ $? -eq 0 ]; then
echo "---"
echo "✅ Changes detected in docs/ or templates/ - proceeding with build"
echo "✅ Changes detected in docs/ - proceeding with build"
exit 1
else
echo "---"
echo "🛑 No changes detected in docs/ or templates/ - ignoring build"
echo "🛑 No changes detected in docs/ - ignoring build"
exit 0
fi
fi