@mastra/deployer-vercel 0.0.1-alpha.30 → 0.0.1-alpha.31

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-vercel
2
2
 
3
+ ## 0.0.1-alpha.31
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.30
4
12
 
5
13
  ### Patch Changes
package/README.md ADDED
@@ -0,0 +1,95 @@
1
+ # @mastra/deployer-vercel
2
+
3
+ A Vercel deployer for Mastra applications.
4
+
5
+ ## Features
6
+
7
+ - Deploy Mastra applications to Vercel
8
+ - Zero-configuration serverless deployments
9
+ - Automatic environment variable synchronization
10
+ - Support for production, preview, and development environments
11
+ - Instant global deployments with Edge Functions
12
+
13
+ ## Installation
14
+
15
+ ```bash
16
+ pnpm add @mastra/deployer-vercel
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ The Vercel deployer is used as part of the Mastra framework:
22
+
23
+ ```typescript
24
+ import { Mastra } from '@mastra/core';
25
+ import { VercelDeployer } from '@mastra/deployer-vercel';
26
+
27
+ const deployer = new VercelDeployer({
28
+ scope: 'your-team-id',
29
+ projectName: 'your-project-name',
30
+ });
31
+
32
+ const mastra = new Mastra({
33
+ deployer,
34
+ // ... other Mastra configuration options
35
+ });
36
+ ```
37
+
38
+ ## Configuration
39
+
40
+ ### Constructor Options
41
+
42
+ - `scope` (required): Your Vercel team ID or username
43
+ - `projectName`: Name of your Vercel project (will be created if it doesn't exist)
44
+
45
+ ## Project Structure
46
+
47
+ The deployer creates:
48
+
49
+ ```
50
+ your-project/
51
+ ├── vercel.json # Deployment configuration
52
+ └── index.mjs # Application entry point
53
+ ```
54
+
55
+ ### vercel.json Configuration
56
+
57
+ Default configuration:
58
+
59
+ ```json
60
+ {
61
+ "version": 2,
62
+ "installCommand": "npm install --omit=dev",
63
+ "builds": [
64
+ {
65
+ "src": "index.mjs",
66
+ "use": "@vercel/node",
67
+ "config": {
68
+ "includeFiles": ["**"]
69
+ }
70
+ }
71
+ ],
72
+ "routes": [
73
+ {
74
+ "src": "/(.*)",
75
+ "dest": "index.mjs"
76
+ }
77
+ ]
78
+ }
79
+ ```
80
+
81
+ ## Environment Variables
82
+
83
+ Environment variables are handled automatically through:
84
+
85
+ - `.env` files in your project
86
+ - Environment variables passed through the Mastra configuration
87
+ - Vercel's environment variable UI
88
+
89
+ ## Deployment Process
90
+
91
+ The deployer:
92
+
93
+ 1. Configures your project with the necessary files
94
+ 2. Deploys to Vercel using the CLI
95
+ 3. Synchronizes environment variables for future deployments
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer-vercel",
3
- "version": "0.0.1-alpha.30",
3
+ "version": "0.0.1-alpha.31",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -16,8 +16,8 @@
16
16
  "author": "",
17
17
  "license": "ISC",
18
18
  "dependencies": {
19
- "@mastra/core": "0.1.27-alpha.80",
20
- "@mastra/deployer": "0.0.1-alpha.25"
19
+ "@mastra/deployer": "0.0.1-alpha.26",
20
+ "@mastra/core": "0.1.27-alpha.81"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@babel/preset-env": "^7.26.0",