Vite & Laravel
When you share a Laravel project while npm run dev is running, your pages load their CSS and JavaScript from the Vite dev server on localhost, which visitors can't reach. TunnelPad fixes this automatically.
Run tunnelpad share from the project's folder (or pass --vite=/path/to/project). TunnelPad:
- notices Vite's
public/hotfile; - shares the Vite dev server through a second tunnel;
- points
public/hotat that tunnel while you share, so pages load assets from it, and hot reload works for visitors too; - puts
public/hotback when you stop.
To turn this off, use --no-vite. If you build your assets with npm run build instead, there's nothing to do.