Skip to main content

NetlifyDeployer

NetlifyDeployer 类负责将独立的 Mastra 应用部署到 Netlify。它管理配置和部署,并在基础 Deployer 类的基础上扩展了特定于 Netlify 的功能。

🌐 The NetlifyDeployer class handles deployment of standalone Mastra applications to Netlify. It manages configuration, deployment, and extends the base Deployer class with Netlify specific functionality.

使用示例
Direct link to 使用示例

🌐 Usage example

src/mastra/index.ts
import { Mastra } from "@mastra/core";
import { NetlifyDeployer } from "@mastra/deployer-netlify";

export const mastra = new Mastra({
deployer: new NetlifyDeployer(),
});