#How to change localhost to custom host in dev

5 messages · Page 1 of 1 (latest)

plain flame
short python
plain flame
#

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"