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

Perhaps server.host should be set to true #113

Closed
btea opened this issue Jun 15, 2022 · 1 comment
Closed

Perhaps server.host should be set to true #113

btea opened this issue Jun 15, 2022 · 1 comment

Comments

@btea
Copy link
Collaborator

btea commented Jun 15, 2022

After I create a project with create-vue, when I run pnpm dev to start the project, it will bind port 3000 by default, which is no problem.

But when I already have a project listening on port 3000, I hope the listening port will become 3001, but it will still listen on 3000.

So I think server.host can be set to true.

add code here

export default defineConfig({

server: {
  host: true
}
@sodatea
Copy link
Member

sodatea commented Jun 16, 2022

It's an issue that will be fixed in Vite 3. See vitejs/vite#8543

@sodatea sodatea closed this as completed Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants