From 11f9b284ff12d9f56754e985d6693fa134c162cc Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Tue, 16 Dec 2025 14:51:33 -0800 Subject: [PATCH] Fix: Include source and dist directories in Vercel serverless functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Vercel serverless functions are bundled separately and don't automatically include project directories. Added includeFiles config to ensure source/ and dist/ are available to API handlers at runtime. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- vercel.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 8d5fa3148..5f70fff6c 100644 --- a/vercel.json +++ b/vercel.json @@ -1,6 +1,11 @@ { "$schema": "https://openapi.vercel.sh/vercel.json", "buildCommand": "bun run build", - "outputDirectory": "build" + "outputDirectory": "build", + "functions": { + "api/**/*.js": { + "includeFiles": "source/**,dist/**" + } + } }