@mastra/deployer 0.2.9-alpha.2 → 0.2.9-alpha.4

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.
@@ -1895,7 +1895,7 @@ async function createHonoServer(mastra, options = {}) {
1895
1895
  }
1896
1896
  }
1897
1897
  if (server?.cors === false) {
1898
- app.use("*", timeout.timeout(server?.timeout ?? 1e3 * 30));
1898
+ app.use("*", timeout.timeout(server?.timeout ?? 3 * 60 * 1e3));
1899
1899
  } else {
1900
1900
  const corsConfig = {
1901
1901
  origin: "*",
@@ -1906,7 +1906,7 @@ async function createHonoServer(mastra, options = {}) {
1906
1906
  allowHeaders: ["Content-Type", "Authorization", "x-mastra-client-type", ...server?.cors?.allowHeaders ?? []],
1907
1907
  exposeHeaders: ["Content-Length", "X-Requested-With", ...server?.cors?.exposeHeaders ?? []]
1908
1908
  };
1909
- app.use("*", timeout.timeout(server?.timeout ?? 1e3 * 30), cors.cors(corsConfig));
1909
+ app.use("*", timeout.timeout(server?.timeout ?? 3 * 60 * 1e3), cors.cors(corsConfig));
1910
1910
  }
1911
1911
  const bodyLimitOptions = {
1912
1912
  maxSize: 4.5 * 1024 * 1024,
@@ -3836,7 +3836,7 @@ async function createNodeServer(mastra, options = {}) {
3836
3836
  const app = await createHonoServer(mastra, options);
3837
3837
  const serverOptions = mastra.getServer();
3838
3838
  const port = serverOptions?.port ?? (Number(process.env.PORT) || 4111);
3839
- return serve(
3839
+ const server = serve(
3840
3840
  {
3841
3841
  fetch: app.fetch,
3842
3842
  port
@@ -3853,6 +3853,7 @@ async function createNodeServer(mastra, options = {}) {
3853
3853
  }
3854
3854
  }
3855
3855
  );
3856
+ return server;
3856
3857
  }
3857
3858
 
3858
3859
  exports.createHonoServer = createHonoServer;
@@ -1889,7 +1889,7 @@ async function createHonoServer(mastra, options = {}) {
1889
1889
  }
1890
1890
  }
1891
1891
  if (server?.cors === false) {
1892
- app.use("*", timeout(server?.timeout ?? 1e3 * 30));
1892
+ app.use("*", timeout(server?.timeout ?? 3 * 60 * 1e3));
1893
1893
  } else {
1894
1894
  const corsConfig = {
1895
1895
  origin: "*",
@@ -1900,7 +1900,7 @@ async function createHonoServer(mastra, options = {}) {
1900
1900
  allowHeaders: ["Content-Type", "Authorization", "x-mastra-client-type", ...server?.cors?.allowHeaders ?? []],
1901
1901
  exposeHeaders: ["Content-Length", "X-Requested-With", ...server?.cors?.exposeHeaders ?? []]
1902
1902
  };
1903
- app.use("*", timeout(server?.timeout ?? 1e3 * 30), cors(corsConfig));
1903
+ app.use("*", timeout(server?.timeout ?? 3 * 60 * 1e3), cors(corsConfig));
1904
1904
  }
1905
1905
  const bodyLimitOptions = {
1906
1906
  maxSize: 4.5 * 1024 * 1024,
@@ -3830,7 +3830,7 @@ async function createNodeServer(mastra, options = {}) {
3830
3830
  const app = await createHonoServer(mastra, options);
3831
3831
  const serverOptions = mastra.getServer();
3832
3832
  const port = serverOptions?.port ?? (Number(process.env.PORT) || 4111);
3833
- return serve(
3833
+ const server = serve(
3834
3834
  {
3835
3835
  fetch: app.fetch,
3836
3836
  port
@@ -3847,6 +3847,7 @@ async function createNodeServer(mastra, options = {}) {
3847
3847
  }
3848
3848
  }
3849
3849
  );
3850
+ return server;
3850
3851
  }
3851
3852
 
3852
3853
  export { createHonoServer, createNodeServer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer",
3
- "version": "0.2.9-alpha.2",
3
+ "version": "0.2.9-alpha.4",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -105,8 +105,8 @@
105
105
  "rollup-plugin-node-externals": "^8.0.0",
106
106
  "typescript-paths": "^1.5.1",
107
107
  "zod": "^3.24.2",
108
- "@mastra/core": "^0.8.3-alpha.2",
109
- "@mastra/server": "^1.0.3-alpha.2"
108
+ "@mastra/core": "^0.8.3-alpha.4",
109
+ "@mastra/server": "^1.0.3-alpha.4"
110
110
  },
111
111
  "devDependencies": {
112
112
  "@hono/node-server": "^1.13.8",