canvas
One verb. Nothing in the CLI takes a site away again.
| Command | Description |
|---|---|
drift canvas deploy <dir> [--route /path] | Deploy a static site (mounted at / by default) |
# serve a folder at the root
drift canvas deploy ./my-site
# mount a folder under a sub-path
drift canvas deploy ./admin --route /adminThere is no drift canvas delete, and apply does not remove one either.
drift file apply deploys every site listed under canvas.sites and leaves the rest alone. A site the manifest does not name keeps serving, and apply names it in the report it prints at the end of a run. No drift verb removes a site today; Removing a site says what to do instead.There is no CORS to configure.
Canvas proxies
/api/* to Atomic within the same process, so your static site and your API share one origin, so there's no CORS to configure. Routes, limits and the injected <base href> are in the Canvas guide.