You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many local development tools expose projects on .test domains instead of localhost. One example is Lerd, which serves projects as my-app.test.
It would be nice if Vite had first-class support for .test domains during development, making local development feel closer to a real production environment.
Suggested solution
Add a simple option in the Vite config to automatically expose the dev server on projectName.test (or another configurable .test domain), instead of only using localhost.
Personally I think we can try supporting this builtin, but I don't think we necessarily have to restrict this to the .test tld, but any domain specified through the option.
This was also brought up in our ecosystem channel. https://portless.sh is a similar tool we can reference or use.
Personally I think we can try supporting this builtin, but I don't think we necessarily have to restrict this to the .test tld, but any domain specified through the option.
This was also brought up in our ecosystem channel. https://portless.sh is a similar tool we can reference or use.
this "portless" tool actually sounds pretty interesting
Activity
[-]Support `.test` domains for local development[/-][+]feat: support `.test` domains for local dev[/+]itzzjustmateo commentedon Sep 15, 2026
??
btea commentedon Sep 16, 2026
#19250 seems to be related to this.
itzzjustmateo commentedon Sep 16, 2026
I am not sure, could be 🤷
bluwy commentedon Sep 17, 2026
Personally I think we can try supporting this builtin, but I don't think we necessarily have to restrict this to the .test tld, but any domain specified through the option.
This was also brought up in our ecosystem channel. https://portless.sh is a similar tool we can reference or use.
itzzjustmateo commentedon Sep 17, 2026
this "portless" tool actually sounds pretty interesting