← Deployment · Development · Back to README
spa-to-http is a single Go binary focused on static file serving for SPA bundles. It keeps the runtime simple, with a small number of packages and minimal configuration.
./src
./src/main.go # Entry point and wiring
./src/app # HTTP server and handlers
./src/param # CLI and environment parsing
./src/util # Small shared helpers
- Parse configuration (CLI and environment variables).
- Initialize the HTTP server and middleware.
- Serve static files from the configured directory.
- Apply caching headers optimized for SPA assets.
- Optionally serve compressed files (Brotli/Gzip) when enabled.
- Fast startup and low memory footprint
- Predictable caching for hashed assets and
index.html - Simple configuration for containerized use
- Configuration — Environment variables and CLI flags
- Getting Started — Install, build, and run