The asset canister hosts static files (HTML, CSS, JS, images) directly on the Internet Computer. This is how web frontends are deployed on-chain. Responses are certified by the subnet, and HTTP gateways automatically verify integrity, i.e. that content was served by the blockchain. The content can also be verified in the browser -- not a centralized server.
Asset canisters are created per-project. There is no single global canister ID. After deployment, your canister ID is stored in .icp/data/mappings/ (per environment).
| Local | http:// .localhost:8000 | | Mainnet | https:// .ic0.app or https:// .icp0.io | | Custom domain | https://yourdomain.com (with DNS configuration) |
Distribuire risorse frontend all'IC. Copre risorse certificate, routing SPA con .ic-assets.json5, domini personalizzati, codifica dei contenuti e caricamenti programmatici. Da utilizzare quando si ospita un frontend, si distribuiscono file statici, si configurano domini personalizzati o si imposta il routing SPA su IC. NON utilizzare per modelli di codice a livello di contenitore. Fonte: dfinity/icskills.