Fix Vercel deployment: Configure root directory#2
Merged
DTTconnect merged 2 commits intoNov 14, 2025
Merged
Conversation
Add root-level vercel.json to specify that the Next.js app is located in the lovable-ui subdirectory. This resolves the build error where Vercel was trying to build from the root directory which doesn't contain the Next.js application.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Update root vercel.json with proper function timeouts and routing - Remove conflicting lovable-ui/vercel.json - Add serverless environment check to generate-daytona route - Update DEPLOYMENT.md with accurate instructions and limitations Changes: - Enhanced vercel.json with functions config and rewrites - Added VERCEL env check in generate-daytona route (returns 501) - Documented Daytona limitation on serverless platforms - Clarified that /api/generate works on Vercel, /api/generate-daytona does not The /api/generate endpoint works perfectly on Vercel for code generation. The /api/generate-daytona endpoint requires local development or non-serverless hosting.
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.
Add root-level vercel.json to specify that the Next.js app is located in the lovable-ui subdirectory. This resolves the build error where Vercel was trying to build from the root directory which doesn't contain the Next.js application.