-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
chore: extract DEFAULT_DEV_PORT and DEFAULT_PREVIEW_PORT #11669
Conversation
e9d1cea
to
91dea2c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we also need to re-export it from https://github.com/vitejs/vite/blob/main/packages/vite/src/node/index.ts to make it available outside (via import ... from 'vite'
), do we?
|
91dea2c
to
b7aa76f
Compare
b7aa76f
to
0b6fb3f
Compare
Description
In the packages/vite/src/node/server/index.ts file, 5173 is used 3 times, and I personally think that 5173 should be extracted as a constant
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).