Summary
Add project path configuration to the Vercel adapter for cases where vercel env pull needs to run from a specific directory.
Context
File: internal/adapters/vercel/vercel.go:81
// TODO: Consider adding project path configuration
Problem
Currently the Vercel adapter runs vercel env pull from the temp directory. Some Vercel projects may need the command run from the actual project directory to detect the linked project.
Implementation
Option 1: ProjectPath field
type VercelAdapter struct {
binary string
projectPath string // If set, cd to this path before running vercel
}
func NewWithPath(projectPath string) *VercelAdapter
Option 2: Use vercel --cwd flag
vercel env pull --cwd /path/to/project --environment production
Update .secrets.json
{
"source": "vercel",
"project": "my-app",
"project_path": "/path/to/project", // optional
"scope": "production"
}
Acceptance
Summary
Add project path configuration to the Vercel adapter for cases where
vercel env pullneeds to run from a specific directory.Context
File:
internal/adapters/vercel/vercel.go:81// TODO: Consider adding project path configurationProblem
Currently the Vercel adapter runs
vercel env pullfrom the temp directory. Some Vercel projects may need the command run from the actual project directory to detect the linked project.Implementation
Option 1: ProjectPath field
Option 2: Use vercel --cwd flag
Update .secrets.json
{ "source": "vercel", "project": "my-app", "project_path": "/path/to/project", // optional "scope": "production" }Acceptance