Fix Vercel deployment configuration conflict#16
Merged
robdimarco-atxp merged 1 commit intomainfrom Sep 10, 2025
Merged
Conversation
**Problem**: Vercel deployment failed with error: "The functions property cannot be used in conjunction with the builds property" **Solution**: - Remove legacy builds property from vercel.json - Keep modern functions property for maxDuration configuration - Maintain routes and installCommand for single-service architecture Vercel now auto-detects the backend/server.ts file and builds it appropriately without needing explicit builds configuration. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
robdimarco-atxp
added a commit
that referenced
this pull request
Sep 10, 2025
**Problem**: Vercel deployment failed with error: "The functions property cannot be used in conjunction with the builds property" **Solution**: - Remove legacy builds property from vercel.json - Keep modern functions property for maxDuration configuration - Maintain routes and installCommand for single-service architecture Vercel now auto-detects the backend/server.ts file and builds it appropriately without needing explicit builds configuration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes Vercel deployment error: "The functions property cannot be used in conjunction with the builds property"
Problem
Vercel deployment was failing because our
vercel.jsonconfiguration was using both:buildsproperty (Vercel v1/v2 style)functionsproperty (current Vercel standard)These two configuration approaches are incompatible in modern Vercel deployments.
Solution
buildsarray - No longer needed as Vercel auto-detects TypeScript/Node.js filesfunctionsproperty - Essential for settingmaxDuration: 30on serverless functionConfiguration Changes
Before:
{ "builds": [{"src": "backend/server.ts", "use": "@vercel/node", ...}], "functions": {"backend/server.ts": {"maxDuration": 30}} }After:
{ "routes": [{"src": "/(.*)", "dest": "/backend/server.ts"}], "functions": {"backend/server.ts": {"maxDuration": 30}} }How it Works Now
backend/server.tsas Node.js serverless functionnpm run setuphandles dependency installation and buildingTest Plan
npm run setup)This should resolve the Vercel deployment error and allow successful deployment of the single-service ATXP Express application.
Linear Issue: https://linear.app/novellum/issue/ATXP-258/add-one-click-deploy-for-atxp-expresso-example
🤖 Generated with Claude Code