Publish a Static Site
-
Build the site locally.
Terminal window npm run build -
Create and publish the first version.
Terminal window usetrawsn page deploy ./dist --name "Launch Site" --publishUseTrawsn saves the new
site_idinusetrawsn.toml. -
Deploy the next version.
Terminal window usetrawsn page deploy ./dist --publish -
Inspect or restore history.
Terminal window usetrawsn page versionsusetrawsn page rollback --version <version>
One-shot publishing
Section titled “One-shot publishing”For a disposable report or preview that will not be updated:
usetrawsn page deploy ./report.html --new --publishThe JSON response includes page_url, version, publication state, uploaded file count, and total bytes.
Access and SPA settings
Section titled “Access and SPA settings”usetrawsn page set --access password --password "<secret>"usetrawsn page set --spa-fallback