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
A smart Vite plugin that enables pretty development URLs, including HTTPS.
Features
Proxies HTTP/HTTPS requests
Pretty development URLs
Smart HTTPS management
Automatically cleans URLs
Lightweight
Soon: Local Tunneling & WebSocket Proxying
Install
npm install -d vite-plugin-local
# bun install -d vite-plugin-local
Get Started
// vite.config.tsimport{defineConfig}from'vite'importLocalfrom'vite-plugin-local'exportdefaultdefineConfig({plugins: [Local({domain: 'my-app.local',// default: stacks.localhosthttps: true,// default: true, pass TlsConfig options for custom certificatescleanup: {certs: true,// default: false, cleans up the certificates created on server shutdownhosts: true,// default: true, cleans up /etc/hosts on server shutdown},cleanUrls: true,// default: false, cleans up URLs by not requiring the .html extensionverbose: true,// default: false, enables detailed logging})]})
“Software that is free, but hopes for a postcard.” We love receiving postcards from around the world showing where vite-plugin-local is being used! We showcase them on our website too.
Our address: Stacks.js, 12665 Village Ln #2306, Playa Vista, CA 90094, United States 🌎
Sponsors
We would like to extend our thanks to the following sponsors for funding Stacks development. If you are interested in becoming a sponsor, please reach out to us.