Tunnel your Astro localhost to a public URL
Get a public HTTPS URL for your Astro dev server in one command. Burrow forwards WebSocket upgrades, so Astro’s Vite-based HMR keeps working over the tunnel, and your endpoint routes (`src/pages/api/*`) can receive real webhooks when you run with an SSR adapter. Because Astro is built on Vite, the `vite-plugin-burrow` plugin also works if you prefer to start the tunnel from your config. EU-hosted and DSGVO-first.
One command: npx useburrow http 4321
Get started free · Read the docs
Expose Astro in four steps
- Run your Astro dev server - Start Astro as usual: `astro dev` (or `npm run dev`) serves your app on http://localhost:4321.
- Open a tunnel - In a second terminal run `npx useburrow http 4321`. Burrow prints a public https:// URL and forwards WebSocket upgrades so Vite HMR keeps working.
- Use the public URL - Point a webhook at an endpoint route or open the URL on another device — requests reach your local Astro server.
- Inspect & replay - Open the local inspector at http://127.0.0.1:4040 to read each request, verify signatures, and replay it locally.
What developers use Burrow with Astro for
- Receive webhooks on an Astro endpoint route (`src/pages/api/*`)
- Share a live Astro preview with Vite HMR still active
- Test a form action or server endpoint from an external service
Frequently asked questions
- How do I expose my Astro site to the internet?
- Run `npx useburrow http 4321` alongside `astro dev`. Burrow returns a public HTTPS URL that tunnels to your local server over an outbound WebSocket, so it works behind any firewall or NAT.
- Does Astro’s Vite HMR work through the tunnel?
- Yes. Astro dev runs on Vite, and Burrow forwards WebSocket upgrades, so hot module replacement continues to work over the public URL.
- Can I start the tunnel from my Astro config?
- Yes — because Astro is built on Vite, the `vite-plugin-burrow` plugin boots a tunnel with your dev server. The plain `npx useburrow http 4321` command works identically without any config.
Tunnel Astro in one command
npx useburrow http 4321 — EU-hosted, DSGVO-first, MCP-native.