SunUI
創始會員NT$2,490 終身更新,1月11日截止取得席位

使用 Pro 區塊

Pro 區塊透過私有的 shadcn registry 發放。每次安裝都以授權金鑰驗證,原始碼一樣會落在你的 repo 裡,跟其他區塊沒有兩樣。

1. 取得授權

在價格頁購買 Pro 或 Team。結帳完成後,授權金鑰會立即寄到你的信箱。

2. 加入 registry

components.json
{
  "registries": {
    "@sunui-pro": {
      "url": "https://sunui.synvize.com/r/pro/{name}.json",
      "headers": {
        "Authorization": "Bearer ${SUNUI_LICENSE_KEY}"
      }
    }
  }
}

3. 加入金鑰

把金鑰放進 .env.local。不要提交到 git,它只屬於你的授權。

$ SUNUI_LICENSE_KEY=your-license-key

4. 安裝

$ npx shadcn@latest add @sunui-pro/flash-sale-hero

疑難排解

  • 401:缺少金鑰。確認 shell 或 .env.local 裡已設定 SUNUI_LICENSE_KEY。
  • 403:金鑰已被撤銷,或分享範圍過大。請聯絡客服。
  • 429:短時間內安裝次數過多。等幾分鐘再試。

在 CI 上,請把 SUNUI_LICENSE_KEY 設為 secret。每個安裝的檔案開頭都標有你的授權 ID,請勿把 Pro 原始碼提交到公開 repo。