Skip to content

Can specify a port of the dev ws #1244

@guille-moe

Description

@guille-moe

Is your feature request related to a problem? Please describe

The 4000 port is used by Nuxt Content v2 when I start a Nuxt dev server which can be already in use or require a port forwarding (both in my case).
There is no hint anywhere that Nuxt Content need a port to work.

Describe the solution you'd like

Can specify a port number in the content Nuxt config object.

Describe alternatives you've considered

For now I shutdown my other project which use 4000 and map the port 4000 of the docker container running the Nuxt dev server.

Additional context

https://github.com/nuxt/content/blob/main/src/module.ts#L419

I am not so sure what this imply but I guess I can try work on this to do a PR to add a port in ModuleOptions with a default to 4000 to specify the port for Listhen.
Tell me what kind of change will be relevant, I can try to implement something.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions