Actions

面向 EmDash 提供商外掛的原生操作介面。

外掛

Actions

面向 EmDash 提供商外掛的原生操作介面。

  • 分類: 整合
  • 狀態: 可用
  • 版本: 0.5.0
  • 價格: 未知
  • 來源: npm 套件
  • 安裝方式: npm 原生整合
  • 核實日期: 2026-11-01

面向 EmDash 提供商外掛的原生操作介面。

安裝

從 npm 安裝此套件:

npm install @bnomei/emdash-actions

在 Astro 設定中註冊此外掛:

import { defineConfig } from "astro/config";
import emdash from "emdash/astro";
import { actionsPlugin } from "@bnomei/emdash-actions";
import { cacheActions } from "./src/emdash/cache-actions";

const cacheActionsProvider = {
  pluginId: "cache-actions",
  label: "Cache actions",
  manifestRoute: "actions",
};

export default defineConfig({
  integrations: [
    emdash({
      plugins: [
        actionsPlugin({
          providers: [cacheActionsProvider],
        }),
        cacheActions(),
      ],
    }),
  ],
});

詳細資訊