In Vite, I can change the local dev server hostname with server.host: https://vite.dev/config/server-options.html#server-host
And then allow my custom hosts via server.allowedHosts
How can I do this in Start?
5 messages · Page 1 of 1 (latest)
In Vite, I can change the local dev server hostname with server.host: https://vite.dev/config/server-options.html#server-host
And then allow my custom hosts via server.allowedHosts
How can I do this in Start?
I had a similar issue, and solved it following this guy's code:
#1337811059180048477 message
Ok so I got that working, but it sure would be swell if I could also get the dev server output to have the right host:
But yeah, adding that to the vite config did the trick:
vite: {
server: {
allowedHosts: ["local.customdomain.com"],
host: "local.customdomain.com",
},
},
In addition to adding it to the dev script:
"dev": "vinxi dev --host local.customdomain.com"