From 75e80ac79078491b498facd15deff2ae98bd9c05 Mon Sep 17 00:00:00 2001 From: Naman Date: Sun, 2 Aug 2026 16:34:08 +0200 Subject: [PATCH] Serve docs as pure static files under /docs The Next framework layer on Vercel intercepts /docs/_next/* before user rewrites run, so CSS/JS 404'd and pages rendered unstyled. Skip framework serving entirely: copy the export into .static/docs and serve that. Co-Authored-By: Claude Fable 5 --- apps/docs/vercel.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/docs/vercel.json b/apps/docs/vercel.json index f4bacec..74ade8a 100644 --- a/apps/docs/vercel.json +++ b/apps/docs/vercel.json @@ -1,8 +1,8 @@ { "$schema": "https://openapi.vercel.sh/vercel.json", - "rewrites": [ - { "source": "/docs", "destination": "/" }, - { "source": "/docs/", "destination": "/" }, - { "source": "/docs/:path(.*)", "destination": "/:path" } - ] + "framework": null, + "buildCommand": "npm run build && rm -rf .static && mkdir -p .static/docs && cp -R out/. .static/docs/", + "outputDirectory": ".static", + "trailingSlash": true, + "redirects": [{ "source": "/", "destination": "/docs/", "permanent": false }] }