Skip to content

feat: Vercel adapter project path configuration #5

@joelhooks

Description

@joelhooks

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

  • Vercel adapter can run from specified project path
  • Works with linked Vercel projects
  • Backwards compatible (project_path is optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions