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) |
Разверните внешние ресурсы в IC. Охватывает сертифицированные ресурсы, маршрутизацию SPA с помощью .ic-assets.json5, пользовательские домены, кодирование контента и программную загрузку. Используйте при размещении внешнего интерфейса, развертывании статических файлов, настройке личных доменов или настройке маршрутизации SPA на IC. НЕ используйте для шаблонов кода уровня накопителя. Источник: dfinity/icskills.