wgw-deploy docs
wgw-deploy
Section titled “wgw-deploy”wgw-deploy publishes a static directory or a single file to public URLs. A deploy gets two URLs:
live: the stable project URL, updated to the newest revision.pinned: an immutable URL for the exact revision that was deployed.
Run it from a project that already has static output:
npx wgw-deployBy default, the CLI uses the current working directory as the project root and deploys the dist directory. Use --cwd to point at another project root and --dir to deploy a different output path.
npx wgw-deploy --dir publicnpx wgw-deploy --cwd /path/to/app --dir buildWhat it is for
Section titled “What it is for”Use wgw-deploy when you need to share generated static output without setting up a separate hosting project:
- app previews
- generated documentation
- reproduction cases
- dashboards and reports
- static exports from build tools
The deploy target can be a directory or one file. Directories are uploaded as static assets. For a single-file deploy, the file is uploaded as the deploy content and the service adds an index page when the manifest does not already contain one.
What stays stable
Section titled “What stays stable”The live URL stays tied to the local project identity. That identity is derived from:
- the resolved current working directory, or
--cwd - the deploy directory, or
--dir
With the defaults, rerunning npx wgw-deploy from the same project updates the same live URL. Changing the working directory or deploy directory creates a different local project identity.
Each upload also gets a revision ID. The pinned URL points at that revision and does not move when later deploys update the live URL.