@mastra/deployer-netlify 0.0.1-alpha.27 → 0.0.1-alpha.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @mastra/deployer-netlify
2
2
 
3
+ ## 0.0.1-alpha.28
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [9fb3039]
8
+ - @mastra/core@0.1.27-alpha.81
9
+ - @mastra/deployer@0.0.1-alpha.26
10
+
3
11
  ## 0.0.1-alpha.27
4
12
 
5
13
  ### Patch Changes
package/README.md ADDED
@@ -0,0 +1,86 @@
1
+ # @mastra/deployer-netlify
2
+
3
+ A Netlify deployer for Mastra applications.
4
+
5
+ ## Features
6
+
7
+ - Deploy Mastra applications to Netlify Functions
8
+ - Automatic site creation and configuration
9
+ - Serverless function support with Edge Functions
10
+ - Zero-configuration deployments
11
+
12
+ ## Installation
13
+
14
+ ```bash
15
+ pnpm add @mastra/deployer-netlify
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ The Netlify deployer is used as part of the Mastra framework:
21
+
22
+ ```typescript
23
+ import { Mastra } from '@mastra/core';
24
+ import { NetlifyDeployer } from '@mastra/deployer-netlify';
25
+
26
+ const deployer = new NetlifyDeployer({
27
+ scope: 'your-team-id',
28
+ projectName: 'your-project-name',
29
+ });
30
+
31
+ const mastra = new Mastra({
32
+ deployer,
33
+ // ... other Mastra configuration options
34
+ });
35
+ ```
36
+
37
+ ## Configuration
38
+
39
+ ### Constructor Options
40
+
41
+ - `scope` (required): Your Netlify team ID
42
+ - `projectName`: Name of your Netlify site (will be created if it doesn't exist)
43
+
44
+ ## Project Structure
45
+
46
+ The deployer automatically creates the following structure:
47
+
48
+ ```
49
+ your-project/
50
+ ├── netlify/
51
+ │ └── functions/
52
+ │ └── api/
53
+ └── netlify.toml
54
+ ```
55
+
56
+ ### netlify.toml Configuration
57
+
58
+ The deployer creates a `netlify.toml` with the following defaults:
59
+
60
+ ```toml
61
+ [functions]
62
+ node_bundler = "esbuild"
63
+ directory = "/netlify/functions"
64
+
65
+ [[redirects]]
66
+ force = true
67
+ from = "/*"
68
+ status = 200
69
+ to = "/.netlify/functions/api/:splat"
70
+ ```
71
+
72
+ ## Environment Variables
73
+
74
+ Environment variables are handled automatically through:
75
+
76
+ - `.env` files in your project
77
+ - Environment variables passed through the Mastra configuration
78
+ - Netlify's environment variable UI
79
+
80
+ ## Deployment Process
81
+
82
+ The deployer will:
83
+
84
+ 1. Create a new site if it doesn't exist
85
+ 2. Configure the site with your environment variables
86
+ 3. Deploy your application to Netlify Functions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer-netlify",
3
- "version": "0.0.1-alpha.27",
3
+ "version": "0.0.1-alpha.28",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -21,8 +21,8 @@
21
21
  "execa": "^9.3.1",
22
22
  "netlify-cli": "^18.0.1",
23
23
  "zod": "^3.24.1",
24
- "@mastra/core": "0.1.27-alpha.80",
25
- "@mastra/deployer": "0.0.1-alpha.25"
24
+ "@mastra/core": "0.1.27-alpha.81",
25
+ "@mastra/deployer": "0.0.1-alpha.26"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@babel/preset-env": "^7.26.0",