@mastra/deployer-netlify 1.2.23-alpha.1 → 1.2.23

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.
Files changed (2) hide show
  1. package/README.md +8 -75
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -1,13 +1,6 @@
1
1
  # @mastra/deployer-netlify
2
2
 
3
- A Netlify deployer for Mastra applications.
4
-
5
- ## Features
6
-
7
- - Deploy Mastra applications to Netlify Functions
8
- - Generates Netlify Frameworks API configuration during build
9
- - Bundles functions with optimized settings for serverless environments
10
- - Routes all requests through a single API endpoint
3
+ The NetlifyDeployer class handles packaging, configuration, and deployment by adapting Mastra's output to create an optimized version of your server.
11
4
 
12
5
  ## Installation
13
6
 
@@ -28,75 +21,15 @@ const mastra = new Mastra({
28
21
  });
29
22
  ```
30
23
 
31
- ## Project Structure
32
-
33
- The deployer automatically creates the following structure:
34
-
35
- ```bash
36
- your-project/
37
- └── .netlify/
38
- └── v1/
39
- ├── config.json
40
- └── functions/
41
- └── api/
42
- ├── index.js
43
- ├── package.json
44
- └── node_modules/
45
- ```
46
-
47
- ### Netlify Frameworks API Configuration
48
-
49
- The deployer uses Netlify's [Frameworks API](https://docs.netlify.com/build/frameworks/frameworks-api/) and generates a `.netlify/v1/config.json` file to configure functions and routing for Netlify.
50
-
51
- Generated configuration:
52
-
53
- ```json
54
- {
55
- "functions": {
56
- "directory": ".netlify/v1/functions",
57
- "node_bundler": "none",
58
- "included_files": [".netlify/v1/functions/**"]
59
- },
60
- "redirects": [
61
- {
62
- "force": true,
63
- "from": "/*",
64
- "to": "/.netlify/functions/api/:splat",
65
- "status": 200
66
- }
67
- ]
68
- }
69
- ```
70
-
71
- This configuration:
72
-
73
- - Tells Netlify where to find your functions
74
- - Disables Netlify's bundling (Mastra pre-bundles for optimization)
75
- - Routes all requests to your Mastra API function
76
-
77
- ## How It Works
78
-
79
- The Netlify deployer:
80
-
81
- 1. **Bundles your Mastra application** into optimized serverless functions
82
- 2. **Creates the Frameworks API configuration** automatically
83
- 3. **Handles all routing** through a single API endpoint
84
- 4. **Pre-optimizes dependencies** for serverless environments
85
-
86
- ## Environment Variables
87
-
88
- Environment variables are handled through:
24
+ ## Documentation
89
25
 
90
- - `.env` files in your project
91
- - Netlify's environment variable dashboard
92
- - Runtime environment variable access in your Mastra app
26
+ - [Deploy to Netlify](https://mastra.ai/integrations/deploy/netlify)
27
+ - [NetlifyDeployer reference](https://mastra.ai/reference/deployer/netlify)
93
28
 
94
- ## Deployment
29
+ ## Changelog
95
30
 
96
- Deploy your Mastra application to Netlify by:
31
+ See the [package changelog](https://github.com/mastra-ai/mastra/blob/main/deployers/netlify/CHANGELOG.md) for version history and release notes.
97
32
 
98
- 1. **Building locally**: Run your build command (the deployer handles bundling)
99
- 2. **Using Netlify CLI**: `netlify deploy --prod`
100
- 3. **Via Git integration**: Connect your repository to Netlify for automatic deployments
33
+ ## Support
101
34
 
102
- The deployer automatically configures everything needed for Netlify Functions.
35
+ We have an [open community Discord](https://discord.gg/mastra-ai). Come and say hello and let us know if you have any questions or need any help getting things running.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer-netlify",
3
- "version": "1.2.23-alpha.1",
3
+ "version": "1.2.23",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "fs-extra": "^11.3.5",
29
29
  "rollup": "^4.61.1",
30
- "@mastra/deployer": "^1.64.0-alpha.2"
30
+ "@mastra/deployer": "^1.64.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/fs-extra": "^11.0.4",
@@ -38,9 +38,9 @@
38
38
  "tsdown": "0.22.9",
39
39
  "typescript": "^7.0.2",
40
40
  "vitest": "4.1.10",
41
- "@internal/lint": "0.0.129",
42
- "@internal/types-builder": "0.0.104",
43
- "@mastra/core": "1.64.0-alpha.2"
41
+ "@internal/lint": "0.0.130",
42
+ "@mastra/core": "1.64.0",
43
+ "@internal/types-builder": "0.0.105"
44
44
  },
45
45
  "homepage": "https://mastra.ai",
46
46
  "repository": {