什麼是 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