Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@nx-plus/nuxt - possibility to add port on project.json #279

Open
schirrel opened this issue Nov 22, 2022 · 1 comment
Open

@nx-plus/nuxt - possibility to add port on project.json #279

schirrel opened this issue Nov 22, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@schirrel
Copy link

Description

Possibility to use port on options for @nx-plus/nuxt:server or @nx-plus/nuxt:browser

Motivation

On my process i have a need of one script start the project on one port and other script on the other.
Current i have to change on nuxt.config before each execution.
Nuxt provide this using nuxt --port 8787 for example, if we have the option port on the options aside with browser target it already fills the need

Suggested Implementation

  • Add port to libs/nuxt/src/executors/server/schema.json properties
  • At libs/nuxt/src/executors/server/executor.tsline 60 on the nuxt.listen(nuxt.options.server.port)` use the options.port if existis

Alternate Implementations

I quite dont see a simpler implementation

@schirrel
Copy link
Author

schirrel commented Feb 3, 2023

@ZachJW34 @BuckyMaler could you see this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant