·asset-canister
</>

asset-canister

将前端资产部署到 IC。涵盖经过认证的资产、使用 .ic-assets.json5 的 SPA 路由、自定义域、内容编码和编程上传。在托管前端、部署静态文件、配置自定义域或在 IC 上设置 SPA 路由时使用。请勿用于容器级代码模式。

9安装·3热度·@dfinity

安装

$npx skills add https://github.com/dfinity/icskills --skill asset-canister

如何安装 asset-canister

通过命令行快速安装 asset-canister AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/dfinity/icskills --skill asset-canister
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:dfinity/icskills。

SKILL.md

查看原文

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
分类
</>开发工具
认证
收录时间
2026-03-10
更新时间
2026-03-11

Browse more skills from dfinity/icskills

快速解答

什么是 asset-canister?

将前端资产部署到 IC。涵盖经过认证的资产、使用 .ic-assets.json5 的 SPA 路由、自定义域、内容编码和编程上传。在托管前端、部署静态文件、配置自定义域或在 IC 上设置 SPA 路由时使用。请勿用于容器级代码模式。 来源:dfinity/icskills。

如何安装 asset-canister?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/dfinity/icskills --skill asset-canister 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/dfinity/icskills

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-03-10