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 sites

The canvas section sets the total static-asset budget and lists your sites. A bare path mounts a directory at /; the long form sets an explicit route for a sub-path (handy for a public site plus an admin or reviewer area).

TypeDefaultMeaning
  • canvas_size
    Type
    size
    Default
    platform default
    Meaning
    Total storage across all Canvas sites in the slice.
  • sites[]
    Type
    path | map
    Default
    none
    Meaning
    A bare path mounts at /. Long form { dir, route } mounts dir at route.
Driftfile
canvas:
    canvas_size: 50MB
    sites:
      - ./canvas/public                # mounted at /
      - dir: ./canvas/reviewer
        route: /reviewer              # mounted at /reviewer

Read the Canvas guide →