Skip to content

Allow for custom flag settings #32

Description

@Woovie

Clear and concise description of the problem

I have customized my dev command to be vercel dev to ensure my Serverless Functions for Vercel are usable within this extension. When the command runs, you can see this error:

130 % vercel dev --port=4000
Vercel CLI 30.0.0
WARN! `--port` is deprecated, please use `--listen` instead
> Running Dev Command “vite --port $PORT”

  VITE v4.3.9  ready in 145 ms

  ➜  Local:   http://localhost:4000/
  ➜  Network: use --host to expose
  ➜  press h to show help
> Ready! Available at http://localhost:4000
WARN! `--port` is deprecated, please use `--listen` instead

Suggested solution

Allow users to specify custom flag names or a flag override field would be the ideal solution.

Alternative

Have a field that allows users to input their own flags and ignore the default port field? Not sure.

Additional context

It looks like --port is hardcoded at the moment:

command += ` --port=${ctx.port}`

Validations

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions