drift Docs
Start
What is Drift?
The tour, if you are new here.
Why Drift?
The case for a smaller cloud.
Getting started
Nothing to deployed, in one command.
Architecture
How a slice is put together.
What it costs
The free grant, five unit prices, two rules.
Build
Canvas
Static sites, same origin as your API.
Tools
Operate
Auth
Accounts, tokens and scopes.
Security
Boundaries, sandboxing and hardening.

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)
Shell
# serve a folder at the root
drift canvas deploy ./my-site

# mount a folder under a sub-path
drift canvas deploy ./admin --route /admin

There 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.