-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Start on multiple hosts #16350
Comments
Can you explain why you want to start on multiple host? Node.js |
multiple sub-domain, eg laravel route support multiple domain and |
I suppose we can call |
I am currently facing the same issue. The app will run on multiple subdomains in production and I need to replicate this for development. |
facing the same issue. I would like to run an instance for each of the environments: mock data environment, dev environment and production environment simultaneously |
I have a use case for this as well (originally reported in #18469) TLDR: I want vite to run on IPv4 ( My workaround ended up being this, so it's still just listening on a single host, but we're smarter about how to pick it: const { family } = await dns.promises.lookup("local.example.com");
export default defineConfig({
plugins: [tsconfigPaths(), react()],
server: {
port: 3000,
host: family === 6 ? "::1" : "127.0.0.1",
},
}); |
Description
It seems as if it is not possible to start using multiple IPs/hosts. I've tried separating by comma, but thats throwing an error. As of now it seems that it's only possible to use one host or all ...
Suggested solution
add support for multiple hosts (perferrably as array:
host: string | boolean | array
).Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: