Skip to content

Add --cwd argument to vercel pull command #1#55

Open
MangoPieface wants to merge 2 commits intovercel:mainfrom
MangoPieface:main
Open

Add --cwd argument to vercel pull command #1#55
MangoPieface wants to merge 2 commits intovercel:mainfrom
MangoPieface:main

Conversation

@MangoPieface
Copy link
Copy Markdown

@MangoPieface MangoPieface commented Jan 6, 2026

Problem

When using vercel pull to deploy a project in a subdirector the vercel pull command runs without the --cwd argument, while vercel deploy correctly includes it.

This causes vercel pull to create the .vercel/ folder in the repository root, but vercel deploy --cwd=<path> looks for it in the subdirectory. Since the .vercel/project.json isn't found, Vercel cannot detect the framework configuration.

This results in "No framework detected" in deployment logs and Only static assets being deployed instead of the full application (serverless functions, SSR pages, etc.)
image

Fix

Add the --cwd argument to vercelPullArgs when vercelCurrentWorkingDirectory.

Testing

I have not tested this (apologies), but we've included this in our workaround in a pipeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant