caddy-spa-api-proxy-deploy
CommunityDeploy Vite SPA + Bun API behind Caddy Docker proxy.
System Documentation
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.internalresolution 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.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: caddy-spa-api-proxy-deploy Download link: https://github.com/freedomw1987/tree_monstor/archive/main.zip#caddy-spa-api-proxy-deploy Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 537,000+ vetted skills library on demand.