VibeHunt
Back to browse

Discharge

Deploy static websites to Amazon S3.

Source

Discharge is a command‑line tool that automates the deployment of static websites to Amazon S3. It guides users through configuring an S3 bucket, building the site with a specified command, and uploading the resulting files, while offering optional CloudFront CDN and HTTPS support. The tool works with AWS credentials supplied either via a profile file or environment variables, making it suitable for both local development and CI/CD pipelines.

The configuration is defined in a `.discharge.json` file at the project root, where users specify the domain, build command, upload directory, index and error documents, cache settings, and AWS region. An interactive `discharge init` command can generate this file, providing a step‑by‑step UI that reduces the need for deep AWS knowledge. The utility also supports clean URLs without “.html” extensions and subdomain handling.

Designed for developers who need a straightforward way to publish static assets, Discharge abstracts the underlying AWS operations while exposing explicit options for fine‑grained control over bucket naming, caching, and CDN integration. It is available as an npm package and can be installed globally or added as a development dependency.

Reviews

Sign in to leave a review.

Loading reviews…

Similar apps