什么是 asset-canister?
将前端资产部署到 IC。涵盖经过认证的资产、使用 .ic-assets.json5 的 SPA 路由、自定义域、内容编码和编程上传。在托管前端、部署静态文件、配置自定义域或在 IC 上设置 SPA 路由时使用。请勿用于容器级代码模式。 来源:dfinity/icskills。
将前端资产部署到 IC。涵盖经过认证的资产、使用 .ic-assets.json5 的 SPA 路由、自定义域、内容编码和编程上传。在托管前端、部署静态文件、配置自定义域或在 IC 上设置 SPA 路由时使用。请勿用于容器级代码模式。
通过命令行快速安装 asset-canister AI 技能到你的开发环境
来源:dfinity/icskills。
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。涵盖经过认证的资产、使用 .ic-assets.json5 的 SPA 路由、自定义域、内容编码和编程上传。在托管前端、部署静态文件、配置自定义域或在 IC 上设置 SPA 路由时使用。请勿用于容器级代码模式。 来源:dfinity/icskills。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/dfinity/icskills --skill asset-canister将前端资产部署到 IC。涵盖经过认证的资产、使用 .ic-assets.json5 的 SPA 路由、自定义域、内容编码和编程上传。在托管前端、部署静态文件、配置自定义域或在 IC 上设置 SPA 路由时使用。请勿用于容器级代码模式。 来源:dfinity/icskills。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/dfinity/icskills --skill asset-canister 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/dfinity/icskills