@mastra/deployer 1.85.0-alpha.1 → 1.85.0-alpha.3
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/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-deployment-overview.md +2 -2
- package/dist/docs/references/docs-deployment-web-framework.md +3 -3
- package/dist/docs/references/reference-deployer.md +4 -4
- package/dist/server/index.d.ts +1 -1
- package/package.json +6 -6
- /package/dist/_types/{@mastra_hono@1.7.27-alpha.1 → @mastra_hono@1.7.27-alpha.3}/dist/auth-middleware.d.ts +0 -0
- /package/dist/_types/{@mastra_hono@1.7.27-alpha.1 → @mastra_hono@1.7.27-alpha.3}/dist/browser-stream/index.d.ts +0 -0
- /package/dist/_types/{@mastra_hono@1.7.27-alpha.1 → @mastra_hono@1.7.27-alpha.3}/dist/index.d.ts +0 -0
- /package/dist/_types/{@mastra_hono@1.7.27-alpha.1 → @mastra_hono@1.7.27-alpha.3}/package.json +0 -0
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-deployer
|
|
|
3
3
|
description: Documentation for @mastra/deployer. Use when working with @mastra/deployer APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/deployer"
|
|
6
|
-
version: "1.85.0-alpha.
|
|
6
|
+
version: "1.85.0-alpha.3"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -39,7 +39,7 @@ The [Mastra platform](https://mastra.ai/docs/mastra-platform/overview) provides
|
|
|
39
39
|
|
|
40
40
|
Learn more in the [Mastra platform overview](https://mastra.ai/docs/mastra-platform/overview).
|
|
41
41
|
|
|
42
|
-
### Cloud
|
|
42
|
+
### Cloud providers
|
|
43
43
|
|
|
44
44
|
Mastra applications can be deployed to cloud providers and serverless platforms. Mastra includes optional built-in deployers for Vercel, Netlify, and Cloudflare that build your application for each platform. You then deploy the build output through the platform itself.
|
|
45
45
|
|
|
@@ -66,7 +66,7 @@ Deploy a Mastra server into an ephemeral workspace sandbox (such as Vercel Sandb
|
|
|
66
66
|
|
|
67
67
|
Use this option for instant previews, deploys from your CI pipeline, verifying agent-built apps, or running untrusted per-user instances. Read the [sandbox deployment guide](https://mastra.ai/docs/deployment/sandbox).
|
|
68
68
|
|
|
69
|
-
### Web
|
|
69
|
+
### Web framework
|
|
70
70
|
|
|
71
71
|
When Mastra is integrated with a web framework, it deploys alongside your application using the framework's standard deployment process. The guides below cover framework-specific configuration requirements for deployment.
|
|
72
72
|
|
|
@@ -15,7 +15,7 @@ Integration guides:
|
|
|
15
15
|
|
|
16
16
|
## With Next.js on Vercel
|
|
17
17
|
|
|
18
|
-
If you've integrated Mastra with Next.js and plan to deploy to Vercel,
|
|
18
|
+
If you've integrated Mastra with Next.js and plan to deploy to Vercel, ensure your `next.config.ts` sets `serverExternalPackages: ["@mastra/*"]`. The [Next.js guide](https://mastra.ai/integrations/frameworks/next-js) adds it during setup. If your config doesn't have it, add it:
|
|
19
19
|
|
|
20
20
|
```typescript
|
|
21
21
|
import type { NextConfig } from 'next'
|
|
@@ -29,7 +29,7 @@ export default nextConfig
|
|
|
29
29
|
|
|
30
30
|
## With Astro on Vercel
|
|
31
31
|
|
|
32
|
-
If you've integrated Mastra with Astro [by following
|
|
32
|
+
If you've integrated Mastra with Astro [by following the Astro integration guide](https://mastra.ai/integrations/frameworks/astro) and plan to deploy to Vercel, add the Vercel adapter and server output to your `astro.config.mjs`:
|
|
33
33
|
|
|
34
34
|
```javascript
|
|
35
35
|
import { defineConfig } from 'astro/config'
|
|
@@ -43,7 +43,7 @@ export default defineConfig({
|
|
|
43
43
|
|
|
44
44
|
## With Astro on Netlify
|
|
45
45
|
|
|
46
|
-
If you've integrated Mastra with Astro [by following
|
|
46
|
+
If you've integrated Mastra with Astro [by following the Astro integration guide](https://mastra.ai/integrations/frameworks/astro) and plan to deploy to Netlify, add the Netlify adapter and server output to your `astro.config.mjs`:
|
|
47
47
|
|
|
48
48
|
```javascript
|
|
49
49
|
import { defineConfig } from 'astro/config'
|
|
@@ -41,7 +41,7 @@ class CustomDeployer extends Deployer {
|
|
|
41
41
|
|
|
42
42
|
**args.name** (`string`): A unique name for the deployer instance.
|
|
43
43
|
|
|
44
|
-
### deploy
|
|
44
|
+
### deploy parameters
|
|
45
45
|
|
|
46
46
|
**outputDirectory** (`string`): The directory where the bundled and deployment-ready application will be output.
|
|
47
47
|
|
|
@@ -63,7 +63,7 @@ The Deployer class inherits the following key methods from the Bundler class:
|
|
|
63
63
|
|
|
64
64
|
## Core concepts
|
|
65
65
|
|
|
66
|
-
### Deployment
|
|
66
|
+
### Deployment lifecycle
|
|
67
67
|
|
|
68
68
|
The Deployer abstract class implements a structured deployment lifecycle:
|
|
69
69
|
|
|
@@ -73,7 +73,7 @@ The Deployer abstract class implements a structured deployment lifecycle:
|
|
|
73
73
|
4. **Bundling**: The `_bundle` method (inherited from Bundler) packages the application code and its dependencies.
|
|
74
74
|
5. **Deployment**: The abstract `deploy` method is implemented by subclasses to handle the actual deployment process.
|
|
75
75
|
|
|
76
|
-
### Environment
|
|
76
|
+
### Environment file management
|
|
77
77
|
|
|
78
78
|
The Deployer class includes built-in support for environment file management through the `getEnvFiles` method. This method:
|
|
79
79
|
|
|
@@ -90,7 +90,7 @@ getEnvFiles(): Promise<string[]> {
|
|
|
90
90
|
}
|
|
91
91
|
```
|
|
92
92
|
|
|
93
|
-
### Bundling and
|
|
93
|
+
### Bundling and deployment relationship
|
|
94
94
|
|
|
95
95
|
The Deployer class extends the Bundler class, establishing a clear relationship between bundling and deployment:
|
|
96
96
|
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Mastra } from '@mastra/core/mastra';
|
|
2
|
-
import type { HonoBindings, HonoVariables } from '../_types/@mastra_hono@1.7.27-alpha.
|
|
2
|
+
import type { HonoBindings, HonoVariables } from '../_types/@mastra_hono@1.7.27-alpha.3/dist/index.js';
|
|
3
3
|
import { Hono } from 'hono';
|
|
4
4
|
import type { ServerBundleOptions } from './types.js';
|
|
5
5
|
type Bindings = HonoBindings;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer",
|
|
3
|
-
"version": "1.85.0-alpha.
|
|
3
|
+
"version": "1.85.0-alpha.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"tinyglobby": "^0.2.17",
|
|
114
114
|
"ws": "^8.22.0",
|
|
115
115
|
"yaml": "^2.9.1",
|
|
116
|
-
"@mastra/server": "1.85.0-alpha.
|
|
116
|
+
"@mastra/server": "1.85.0-alpha.3"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
119
119
|
"@hono/node-server": "^2.1.3",
|
|
@@ -136,12 +136,12 @@
|
|
|
136
136
|
"@internal/core": "0.1.4",
|
|
137
137
|
"@internal/deployer": "0.0.3",
|
|
138
138
|
"@internal/find-workspaces": "0.0.5",
|
|
139
|
-
"@internal/types-builder": "0.0.125",
|
|
140
139
|
"@internal/lint": "0.0.150",
|
|
141
|
-
"@mastra/core": "1.85.0-alpha.1",
|
|
142
|
-
"@mastra/hono": "1.7.27-alpha.1",
|
|
143
140
|
"@mastra/agent-browser": "0.6.0",
|
|
144
|
-
"@mastra/
|
|
141
|
+
"@mastra/core": "1.85.0-alpha.3",
|
|
142
|
+
"@mastra/hono": "1.7.27-alpha.3",
|
|
143
|
+
"@mastra/mcp": "^2.10.0",
|
|
144
|
+
"@internal/types-builder": "0.0.125"
|
|
145
145
|
},
|
|
146
146
|
"peerDependencies": {
|
|
147
147
|
"@mastra/core": ">=1.83.0-0 <2.0.0-0"
|
|
File without changes
|
|
File without changes
|
/package/dist/_types/{@mastra_hono@1.7.27-alpha.1 → @mastra_hono@1.7.27-alpha.3}/dist/index.d.ts
RENAMED
|
File without changes
|
/package/dist/_types/{@mastra_hono@1.7.27-alpha.1 → @mastra_hono@1.7.27-alpha.3}/package.json
RENAMED
|
File without changes
|