Actions
面向 EmDash 提供商外掛的原生操作介面。
面向 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(),
],
}),
],
});
詳細資訊
- 最新版本: 0.5.0
- 授權條款: MIT
- 發布者: Bruno Meilick
- 需求: EmDash
^1.2.0 - 原始碼儲存庫: https://github.com/bnomei/emdash-actions
- npm 套件: @bnomei/emdash-actions