-
Notifications
You must be signed in to change notification settings - Fork 371
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug?]: Vite server config is being ignored #1435
Comments
Solid start already configures vite-plugin-solid for you, so that's not the issue. The disconnect must be somewhere else. |
I suspect this is due to Vinxi. I added back the dev server options because some of them work. Others may not. Will need to double check with @nksaraf to get clarity on this. |
Yeah I feel like the host and port shouldnt be server config since you probably only mean the dev server. So I think the dev command is the place those things should be overriden. You can use '--host' and '--port' options (can make it part of your npm dev script) or HOST and PORT environment variables |
It would be convenient to have the options on the start command as well |
Duplicates
Latest version
Current behavior 馃槸
example
app.config.ts
:but this isnt working, its still running on port:3000
Expected behavior 馃
Run server on specified
PORT
andHOST
Steps to reproduce 馃暪
Steps:
1.Edit vite server options on
app.config.ts
2.Run server
3.
4.
Context 馃敠
A fix:
https://nitro.unjs.io/deploy/runtimes/node#environment-variables
in
.env
I think this is because Im not using vite-solid-plugin?
Hope this helps someone at least.
Your environment 馃寧
No response
The text was updated successfully, but these errors were encountered: