canvas
One verb. Sites are removed by pruning rather than by a delete command.
| 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.
drift project deploy deploys every site listed under canvas.sites in your Driftfile, then deletes every site the slice is holding that the Driftfile did not name. A site deployed by hand and never added to the manifest is destroyed by the next project deploy, so declare every site you mean to keep.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.