@mastra/deployer 1.0.0-beta.23 → 1.0.0-beta.24

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,15 @@
1
1
  # @mastra/deployer
2
2
 
3
+ ## 1.0.0-beta.24
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix a bug where `/openapi.json` was always generated during `mastra build`. The `server.build.openAPIDocs` setting is now observed. ([#11718](https://github.com/mastra-ai/mastra/pull/11718))
8
+
9
+ - Updated dependencies [[`1dbd8c7`](https://github.com/mastra-ai/mastra/commit/1dbd8c729fb6536ec52f00064d76b80253d346e9), [`c59e13c`](https://github.com/mastra-ai/mastra/commit/c59e13c7688284bd96b2baee3e314335003548de), [`f9a2509`](https://github.com/mastra-ai/mastra/commit/f9a25093ea72d210a5e52cfcb3bcc8b5e02dc25c), [`7a010c5`](https://github.com/mastra-ai/mastra/commit/7a010c56b846a313a49ae42fccd3d8de2b9f292d)]:
10
+ - @mastra/core@1.0.0-beta.24
11
+ - @mastra/server@1.0.0-beta.24
12
+
3
13
  ## 1.0.0-beta.23
4
14
 
5
15
  ### Patch Changes
@@ -29,4 +29,4 @@ docs/
29
29
  ## Version
30
30
 
31
31
  Package: @mastra/deployer
32
- Version: 1.0.0-beta.23
32
+ Version: 1.0.0-beta.24
@@ -5,7 +5,7 @@ description: Documentation for @mastra/deployer. Includes links to type definiti
5
5
 
6
6
  # @mastra/deployer Documentation
7
7
 
8
- > **Version**: 1.0.0-beta.23
8
+ > **Version**: 1.0.0-beta.24
9
9
  > **Package**: @mastra/deployer
10
10
 
11
11
  ## Quick Navigation
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0-beta.23",
2
+ "version": "1.0.0-beta.24",
3
3
  "package": "@mastra/deployer",
4
4
  "exports": {
5
5
  "Deps": {
@@ -3726,7 +3726,7 @@ async function createHonoServer(mastra, options = {
3726
3726
  tools: options.tools,
3727
3727
  taskStore: a2aTaskStore,
3728
3728
  bodyLimitOptions,
3729
- openapiPath: "/openapi.json",
3729
+ openapiPath: options?.isDev || server?.build?.openAPIDocs ? "/openapi.json" : void 0,
3730
3730
  customRouteAuthConfig
3731
3731
  });
3732
3732
  honoServerAdapter.registerContextMiddleware();
@@ -3802,6 +3802,12 @@ async function createHonoServer(mastra, options = {
3802
3802
  }
3803
3803
  await honoServerAdapter.registerRoutes();
3804
3804
  if (options?.isDev || server?.build?.swaggerUI) {
3805
+ if (!options?.isDev && server?.build?.swaggerUI && !server?.build?.openAPIDocs) {
3806
+ const logger2 = mastra.getLogger();
3807
+ logger2.warn(
3808
+ "Swagger UI is enabled but OpenAPI documentation is disabled. The Swagger UI will not function properly without the OpenAPI endpoint. Please enable openAPIDocs in your server.build configuration:\n server: { build: { swaggerUI: true, openAPIDocs: true } }"
3809
+ );
3810
+ }
3805
3811
  app.get(
3806
3812
  "/swagger-ui",
3807
3813
  describeRoute({