archival run
Options
Arguments
[path/to/archival-site]
optionally specify a path to an archival site. By default will run in the current working directory.
This command runs a local static server and watches your archival site for changes. The site will be automatically rebuilt whenever files change, including scripts: saving a .ts file in scripts/ rebuilds it, and a script that fails to compile prints its error while the server keeps serving its last working version.
If your site has carriers, archival run serves them too, at /carriers/<carrier-name>, and picks up a carrier as soon as you add or change it. This needs Node 22.13 or later; see Running carriers locally.
Note that this command should never be used to serve a website in production. Archival generates static websites, so to serve an archival site, just run
archival buildand run a static web server that points to thedistfolder, or upload thatdistfolder to a static host (or use the archival editor to automate this process).