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

Vite 3.0 no longer defaults to port 3000 #51

Closed
samamorgan opened this issue Aug 4, 2022 · 2 comments · Fixed by #99
Closed

Vite 3.0 no longer defaults to port 3000 #51

samamorgan opened this issue Aug 4, 2022 · 2 comments · Fixed by #99
Labels
enhancement New feature or request

Comments

@samamorgan
Copy link

samamorgan commented Aug 4, 2022

As of Vite 3.0, the dev server port is now 5173. Anyone on the latest versions must now add DJANGO_VITE_DEV_SERVER_PORT = 5173 to their Django config.

@MrBin99
Copy link
Owner

MrBin99 commented Aug 4, 2022

Thanks for mentioning it !
I will not change the default for now because most of people using Django Vite use the 2.X version of Vite and I don't want to
break their code.
I will do it in the near future.

Thanks

@MrBin99 MrBin99 added the enhancement New feature or request label Aug 4, 2022
@samamorgan
Copy link
Author

Oh of course! I didn't make a PR for exactly this reason. I wouldn't want to see this changed without a bump to 3.x or a way to detect the configured Vite dev port. It's simple enough to change the setting, and I mostly wanted to stick this here for when others search out the issue.

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

Successfully merging a pull request may close this issue.

2 participants