drift Docs
Start
What is Drift?
The tour, if you are new here.
Use cases
Whether Drift does your thing.
Getting started
Nothing to deployed, in one command.
Architecture
How a slice is put together.
What it costs
The free grant, four 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.
Troubleshooting
Error codes
What went wrong, and what to do about it.
Legal
Acceptable use
What a slice may not be used for.
Data processing
The DPA, and every sub-processor.

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)
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, 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.