What problem does it solve?
This skill eliminates the manual effort and common errors of configuring reverse proxies, SPA routing fallback, and Docker host networking for full-stack applications combining Vite frontends and Bun backends, preventing issues like broken SPA routes and mismatched API proxy prefixes.
Core Features & Use Cases
- Caddy Reverse Proxy Setup: Automates routing configuration to direct SPA traffic to the Vite preview server and API traffic to the Bun backend with correct prefix handling.
- Docker Networking Resolution: Fixes common Docker host networking issues like failed
host.docker.internal resolution for Caddy containers.
- SPA Fallback Guarantee: Ensures proper SPA routing by using Vite preview instead of basic static servers that return 404s for client-side routes.
Use case: Full-stack developers deploying Vite + Bun applications can use this skill to avoid manual proxy configuration errors and get their app live in minutes.
Quick Start
Use the caddy-spa-api-proxy-deploy skill to configure a Caddy reverse proxy in Docker with host networking for your Vite SPA frontend and Bun API backend, including correct API prefix routing and SPA fallback support.