
Local Vue development usually means a url like http://localhost:5173.
What if I told you you could have a url like this instead: https://my-vue-app.localhost
You're not dreaming, this is totally possible with Portless. And it's super easy to setup.
Portless is a small proxy layer that gives you named .localhost hostnames, HTTPS with HTTP/2 by default, and a random high port for the actual dev server (via PORT).
To get started, you should install Portless globally.
npm install -g portlessOr if you're using Vite Plus, like I am:
vp install -g portlessNow all that's left to do is name your domain and run your dev server in package.json.
// package.json
{
"scripts": {
"dev": "portless my-vue-app vite",
// or if using Vite Plus:
"dev": "portless my-vue-app vp dev"
}
}That's it! 🎉 Run your dev server per usual, but now you can access it at https://my-vue-app.localhost.
Change out the my-vue-app part to whatever you want your domain to be.
portless api.my-vue-app vite -> https://api.my-vue-app.localhost
portless my-vue-app git worktree add -b feature/my-feature -> https://my-vue-app.localhost/feature/my-feature
--tld flag. For example: portless proxy start --tld test -> https://my-vue-app.testportless my-nuxt-app nuxt dev -> https://my-nuxt-app.localhostPortless trades “remember this port” for https://<name>.localhost, with TLS and HTTP/2 on by default. For Vue on Vite, wrap your dev script once (portless <name> vite / vp dev / your stack’s dev command) and keep the same mental model as production HTTPS—without manually managing certificates for every project. Details and options live on portless.sh.



Our goal is to be the number one source of Vue.js knowledge for all skill levels. We offer the knowledge of our industry leaders through awesome video courses for a ridiculously low price.
More than 200.000 users have already joined us. You are welcome too!
© All rights reserved. Made with ❤️ by BitterBrains, Inc.