From b23d830cc7e70c6dc52f15632a4148cdd4cf8443 Mon Sep 17 00:00:00 2001 From: snomiao Date: Thu, 16 Oct 2025 00:28:09 +0000 Subject: [PATCH] fix: create docs/pages directory in build script for Vercel compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add creation of .pages/docs/pages/index.html to build script - Include redirect to main documentation - Resolves Vercel deployment path error in CI/CD - Directory is auto-generated during build process 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- scripts/build-pages.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/scripts/build-pages.sh b/scripts/build-pages.sh index fe63c086f..1af1f6405 100755 --- a/scripts/build-pages.sh +++ b/scripts/build-pages.sh @@ -66,6 +66,40 @@ else EOF fi +echo "[build-pages] Creating Vercel-compatible directory structure" +mkdir -p ".pages/docs/pages" +cat > ".pages/docs/pages/index.html" <<'EOF' + + + + + + ComfyUI Frontend Documentation + + + +
+

ComfyUI Frontend Documentation

+
+

🔄 Redirecting to Main Documentation

+

This page will redirect you to the main ComfyUI Frontend documentation.

+

If the redirect doesn't work, please visit: Main Documentation

+
+ + +
+ + +EOF + echo "[build-pages] Landing page already exists at .pages/index.html" echo "[build-pages] Build artifacts ready in ./.pages"