Static Site (Certified Assets)
What This Is
The @dfinity/static-site recipe deploys a static site — a built frontend, docs, or any folder of files — to the certified-assets canister on the Internet Computer, which serves it over HTTP with response certification. The canister certifies every response (certification v2 only, never the no_certification escape hatch, no way to turn it off), and a verifying HTTP gateway checks that proof before handing the response to the browser: visitors get content the canister provably committed to, not something altered in transit. Whether the proof is checked depends on the gateway the visitor goes through: https://<canister-id>.icp.net verifies, https://<canister-id>.raw.icp.net does not (Pitfall 14).
This is the recommended way to host a frontend on the IC going forward. The recipe bundles a matched pair — the canister and its sync plugin — pinned together by one version. You point it at your build directory; icp deploy uploads, certifies, and serves.
The older
@dfinity/asset-canisterrecipe (the SDK asset canister, configured with.ic-assets.json5) is still supported for existing projects but is no longer the recommended path. It is a different canister with a different config format and API — see