@mastra/deployer 0.0.0-error-handler-fix-20251020202607 → 0.0.0-esbuild-bundle-worker-20260807182016

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 (319) hide show
  1. package/CHANGELOG.md +5691 -5
  2. package/LICENSE.md +15 -0
  3. package/dist/_types/@hono_node-server/dist/index.d.mts +101 -0
  4. package/dist/_types/@mastra_hono/dist/auth-middleware.d.ts +8 -0
  5. package/dist/_types/@mastra_hono/dist/browser-stream/index.d.ts +35 -0
  6. package/dist/_types/@mastra_hono/dist/index.d.ts +59 -0
  7. package/dist/analyze-7xxwhB5F.js +1405 -0
  8. package/dist/analyze-7xxwhB5F.js.map +1 -0
  9. package/dist/analyze-D100622N.cjs +1434 -0
  10. package/dist/analyze-D100622N.cjs.map +1 -0
  11. package/dist/arktype-aI7TBD0R-BWucI7hY.cjs +8 -0
  12. package/dist/arktype-aI7TBD0R-BWucI7hY.cjs.map +1 -0
  13. package/dist/arktype-aI7TBD0R-D06--n84.js +8 -0
  14. package/dist/arktype-aI7TBD0R-D06--n84.js.map +1 -0
  15. package/dist/build/analyze/analyzeEntry.d.ts +17 -11
  16. package/dist/build/analyze/analyzeEntry.d.ts.map +1 -1
  17. package/dist/build/analyze/bundleExternals.d.ts +8 -7
  18. package/dist/build/analyze/bundleExternals.d.ts.map +1 -1
  19. package/dist/build/analyze/constants.d.ts.map +1 -1
  20. package/dist/build/analyze.cjs +3 -12
  21. package/dist/build/analyze.d.ts +15 -7
  22. package/dist/build/analyze.d.ts.map +1 -1
  23. package/dist/build/analyze.js +2 -3
  24. package/dist/build/analyzeEntryProjectType.d.ts +12 -0
  25. package/dist/build/analyzeEntryProjectType.d.ts.map +1 -0
  26. package/dist/build/babel/check-config-export.d.ts +3 -2
  27. package/dist/build/babel/check-config-export.d.ts.map +1 -1
  28. package/dist/build/babel/detect-pino-transports.d.ts +13 -0
  29. package/dist/build/babel/detect-pino-transports.d.ts.map +1 -0
  30. package/dist/build/babel/remove-all-options-except.d.ts +3 -3
  31. package/dist/build/babel/remove-all-options-except.d.ts.map +1 -1
  32. package/dist/build/babel/remove-deployer.d.ts +6 -2
  33. package/dist/build/babel/remove-deployer.d.ts.map +1 -1
  34. package/dist/build/babel/remove-non-referenced-nodes.d.ts +2 -2
  35. package/dist/build/babel/remove-non-referenced-nodes.d.ts.map +1 -1
  36. package/dist/build/bundler.cjs +6 -16
  37. package/dist/build/bundler.d.ts +13 -3
  38. package/dist/build/bundler.d.ts.map +1 -1
  39. package/dist/build/bundler.js +2 -3
  40. package/dist/build/bundlerOptions.d.ts +1 -1
  41. package/dist/build/bundlerOptions.d.ts.map +1 -1
  42. package/dist/build/deployer.d.ts +1 -1
  43. package/dist/build/deployer.d.ts.map +1 -1
  44. package/dist/build/fs-routing/codegen.d.ts +42 -0
  45. package/dist/build/fs-routing/codegen.d.ts.map +1 -0
  46. package/dist/build/fs-routing/discover.d.ts +178 -0
  47. package/dist/build/fs-routing/discover.d.ts.map +1 -0
  48. package/dist/build/fs-routing/mirror.d.ts +16 -0
  49. package/dist/build/fs-routing/mirror.d.ts.map +1 -0
  50. package/dist/build/fs-routing/prepare.d.ts +67 -0
  51. package/dist/build/fs-routing/prepare.d.ts.map +1 -0
  52. package/dist/build/index.cjs +29 -52
  53. package/dist/build/index.d.ts +9 -1
  54. package/dist/build/index.d.ts.map +1 -1
  55. package/dist/build/index.js +7 -7
  56. package/dist/build/package-info.d.ts +14 -0
  57. package/dist/build/package-info.d.ts.map +1 -0
  58. package/dist/build/plugins/esm-shim.d.ts +14 -0
  59. package/dist/build/plugins/esm-shim.d.ts.map +1 -0
  60. package/dist/build/plugins/local-storage-detector.d.ts +50 -0
  61. package/dist/build/plugins/local-storage-detector.d.ts.map +1 -0
  62. package/dist/build/plugins/module-resolve-map.d.ts +3 -0
  63. package/dist/build/plugins/module-resolve-map.d.ts.map +1 -0
  64. package/dist/build/plugins/node-gyp-detector.d.ts +3 -0
  65. package/dist/build/plugins/node-gyp-detector.d.ts.map +1 -0
  66. package/dist/build/plugins/node-modules-extension-resolver.d.ts +7 -0
  67. package/dist/build/plugins/node-modules-extension-resolver.d.ts.map +1 -1
  68. package/dist/build/plugins/pino.d.ts.map +1 -1
  69. package/dist/build/plugins/protocol-external-resolver.d.ts +5 -0
  70. package/dist/build/plugins/protocol-external-resolver.d.ts.map +1 -0
  71. package/dist/build/plugins/remove-all-except.d.ts +10 -0
  72. package/dist/build/plugins/remove-all-except.d.ts.map +1 -0
  73. package/dist/build/plugins/remove-deployer.d.ts.map +1 -1
  74. package/dist/build/plugins/remove-unused-references.d.ts.map +1 -1
  75. package/dist/build/plugins/subpath-externals-resolver.d.ts +3 -0
  76. package/dist/build/plugins/subpath-externals-resolver.d.ts.map +1 -0
  77. package/dist/build/plugins/tsconfig-paths.d.ts +8 -0
  78. package/dist/build/plugins/tsconfig-paths.d.ts.map +1 -1
  79. package/dist/build/plugins/workspace-deps-watcher.d.ts +33 -0
  80. package/dist/build/plugins/workspace-deps-watcher.d.ts.map +1 -0
  81. package/dist/build/serverOptions.d.ts +1 -1
  82. package/dist/build/serverOptions.d.ts.map +1 -1
  83. package/dist/build/shared/extract-mastra-option.d.ts +5 -9
  84. package/dist/build/shared/extract-mastra-option.d.ts.map +1 -1
  85. package/dist/build/types.d.ts +35 -0
  86. package/dist/build/types.d.ts.map +1 -1
  87. package/dist/build/utils.d.ts +106 -2
  88. package/dist/build/utils.d.ts.map +1 -1
  89. package/dist/build/watcher.d.ts +5 -1
  90. package/dist/build/watcher.d.ts.map +1 -1
  91. package/dist/build-DEie1huB.js +1084 -0
  92. package/dist/build-DEie1huB.js.map +1 -0
  93. package/dist/build-YV8-9zZy.cjs +1158 -0
  94. package/dist/build-YV8-9zZy.cjs.map +1 -0
  95. package/dist/bundler/entries.d.ts +12 -0
  96. package/dist/bundler/entries.d.ts.map +1 -0
  97. package/dist/bundler/index.cjs +7 -12
  98. package/dist/bundler/index.d.ts +85 -12
  99. package/dist/bundler/index.d.ts.map +1 -1
  100. package/dist/bundler/index.js +2 -3
  101. package/dist/bundler/workspaceDependencies.d.ts +3 -5
  102. package/dist/bundler/workspaceDependencies.d.ts.map +1 -1
  103. package/dist/bundler-CD-PSWRS.cjs +591 -0
  104. package/dist/bundler-CD-PSWRS.cjs.map +1 -0
  105. package/dist/bundler-NdSt2FYG.js +558 -0
  106. package/dist/bundler-NdSt2FYG.js.map +1 -0
  107. package/dist/bundler-U9F2---r.js +704 -0
  108. package/dist/bundler-U9F2---r.js.map +1 -0
  109. package/dist/bundler-u9WOUtpl.cjs +791 -0
  110. package/dist/bundler-u9WOUtpl.cjs.map +1 -0
  111. package/dist/bundlerOptions-9DigsVhY.js +180 -0
  112. package/dist/bundlerOptions-9DigsVhY.js.map +1 -0
  113. package/dist/bundlerOptions-CYRir4LE.cjs +194 -0
  114. package/dist/bundlerOptions-CYRir4LE.cjs.map +1 -0
  115. package/dist/core-D0wEgdn3.cjs +790 -0
  116. package/dist/core-D0wEgdn3.cjs.map +1 -0
  117. package/dist/core-DF65PJXc.js +790 -0
  118. package/dist/core-DF65PJXc.js.map +1 -0
  119. package/dist/deploy/log.d.ts +2 -2
  120. package/dist/deploy/log.d.ts.map +1 -1
  121. package/dist/dist-BauTimif.js +532 -0
  122. package/dist/dist-BauTimif.js.map +1 -0
  123. package/dist/dist-Cv-mAEtr.cjs +532 -0
  124. package/dist/dist-Cv-mAEtr.cjs.map +1 -0
  125. package/dist/docs/SKILL.md +31 -0
  126. package/dist/docs/assets/SOURCE_MAP.json +6 -0
  127. package/dist/docs/references/docs-deployment-cloud-providers.md +23 -0
  128. package/dist/docs/references/docs-deployment-mastra-server.md +157 -0
  129. package/dist/docs/references/docs-deployment-monorepo.md +140 -0
  130. package/dist/docs/references/docs-deployment-overview.md +79 -0
  131. package/dist/docs/references/docs-deployment-web-framework.md +54 -0
  132. package/dist/docs/references/docs-deployment-workflow-runners.md +17 -0
  133. package/dist/docs/references/reference-deployer.md +102 -0
  134. package/dist/effect-QlVUlMFu-CWx-dnsz.cjs +14 -0
  135. package/dist/effect-QlVUlMFu-CWx-dnsz.cjs.map +1 -0
  136. package/dist/effect-QlVUlMFu-CovUzKO9.js +14 -0
  137. package/dist/effect-QlVUlMFu-CovUzKO9.js.map +1 -0
  138. package/dist/esm-B51vJPGv.js +4634 -0
  139. package/dist/esm-B51vJPGv.js.map +1 -0
  140. package/dist/esm-DZ1Siz1C.cjs +4634 -0
  141. package/dist/esm-DZ1Siz1C.cjs.map +1 -0
  142. package/dist/index-CLddUTqr-Btqs8t-3.js +140 -0
  143. package/dist/index-CLddUTqr-Btqs8t-3.js.map +1 -0
  144. package/dist/index-CLddUTqr-C8lMvBz9.cjs +145 -0
  145. package/dist/index-CLddUTqr-C8lMvBz9.cjs.map +1 -0
  146. package/dist/index.cjs +35 -59
  147. package/dist/index.cjs.map +1 -1
  148. package/dist/index.js +29 -41
  149. package/dist/index.js.map +1 -1
  150. package/dist/rolldown-runtime-emK7D4bc.cjs +35 -0
  151. package/dist/server/handlers/a2a.d.ts +28 -3
  152. package/dist/server/handlers/a2a.d.ts.map +1 -1
  153. package/dist/server/handlers/agent-learning.d.ts +3 -0
  154. package/dist/server/handlers/agent-learning.d.ts.map +1 -0
  155. package/dist/server/handlers/health.d.ts +5 -0
  156. package/dist/server/handlers/health.d.ts.map +1 -0
  157. package/dist/server/handlers/restart-active-runs.d.ts +3 -0
  158. package/dist/server/handlers/restart-active-runs.d.ts.map +1 -0
  159. package/dist/server/handlers/utils/query-parsers.d.ts +15 -0
  160. package/dist/server/handlers/utils/query-parsers.d.ts.map +1 -1
  161. package/dist/server/handlers/utils.d.ts +0 -7
  162. package/dist/server/handlers/utils.d.ts.map +1 -1
  163. package/dist/server/index.cjs +4375 -11856
  164. package/dist/server/index.cjs.map +1 -1
  165. package/dist/server/index.d.ts +4 -13
  166. package/dist/server/index.d.ts.map +1 -1
  167. package/dist/server/index.js +4370 -11830
  168. package/dist/server/index.js.map +1 -1
  169. package/dist/server/types.d.ts +2 -1
  170. package/dist/server/types.d.ts.map +1 -1
  171. package/dist/server/welcome.d.ts +1 -1
  172. package/dist/server/welcome.d.ts.map +1 -1
  173. package/dist/services/deps.d.ts +9 -1
  174. package/dist/services/deps.d.ts.map +1 -1
  175. package/dist/services/env.d.ts.map +1 -1
  176. package/dist/services/index.cjs +5 -20
  177. package/dist/services/index.js +2 -3
  178. package/dist/services-BRF1RRXB.js +430 -0
  179. package/dist/services-BRF1RRXB.js.map +1 -0
  180. package/dist/services-_ksvysL5.cjs +469 -0
  181. package/dist/services-_ksvysL5.cjs.map +1 -0
  182. package/dist/sury-CWZTCd75-Bbjr0vWq.cjs +14 -0
  183. package/dist/sury-CWZTCd75-Bbjr0vWq.cjs.map +1 -0
  184. package/dist/sury-CWZTCd75-C3LyvnOp.js +14 -0
  185. package/dist/sury-CWZTCd75-C3LyvnOp.js.map +1 -0
  186. package/dist/typebox-Dei93FPO-EcvSqxpn.js +8 -0
  187. package/dist/typebox-Dei93FPO-EcvSqxpn.js.map +1 -0
  188. package/dist/typebox-Dei93FPO-n37w7tHC.cjs +8 -0
  189. package/dist/typebox-Dei93FPO-n37w7tHC.cjs.map +1 -0
  190. package/dist/utils-FVOUvj-I.js +190 -0
  191. package/dist/utils-FVOUvj-I.js.map +1 -0
  192. package/dist/utils-O98BGdnP.cjs +267 -0
  193. package/dist/utils-O98BGdnP.cjs.map +1 -0
  194. package/dist/valibot--1zFm7rT-BN2-Xy7Y.cjs +14 -0
  195. package/dist/valibot--1zFm7rT-BN2-Xy7Y.cjs.map +1 -0
  196. package/dist/valibot--1zFm7rT-DLXBDt2x.js +14 -0
  197. package/dist/valibot--1zFm7rT-DLXBDt2x.js.map +1 -0
  198. package/dist/validator/custom-resolver.cjs +77 -45
  199. package/dist/validator/custom-resolver.cjs.map +1 -1
  200. package/dist/validator/custom-resolver.d.ts +15 -1
  201. package/dist/validator/custom-resolver.d.ts.map +1 -1
  202. package/dist/validator/custom-resolver.js +74 -42
  203. package/dist/validator/custom-resolver.js.map +1 -1
  204. package/dist/validator/loader.cjs +6 -7
  205. package/dist/validator/loader.cjs.map +1 -1
  206. package/dist/validator/loader.js +8 -4
  207. package/dist/validator/loader.js.map +1 -1
  208. package/dist/validator/validate.d.ts +16 -1
  209. package/dist/validator/validate.d.ts.map +1 -1
  210. package/dist/zod-Bwrt9trS-Cbwhu5Zl.cjs +23 -0
  211. package/dist/zod-Bwrt9trS-Cbwhu5Zl.cjs.map +1 -0
  212. package/dist/zod-Bwrt9trS-Si3ZkB_H.js +23 -0
  213. package/dist/zod-Bwrt9trS-Si3ZkB_H.js.map +1 -0
  214. package/package.json +50 -45
  215. package/dist/build/analyze.cjs.map +0 -1
  216. package/dist/build/analyze.js.map +0 -1
  217. package/dist/build/babel/get-deployer.d.ts +0 -3
  218. package/dist/build/babel/get-deployer.d.ts.map +0 -1
  219. package/dist/build/babel/remove-all-options-bundler.d.ts +0 -5
  220. package/dist/build/babel/remove-all-options-bundler.d.ts.map +0 -1
  221. package/dist/build/babel/remove-all-options-deployer.d.ts +0 -5
  222. package/dist/build/babel/remove-all-options-deployer.d.ts.map +0 -1
  223. package/dist/build/babel/remove-all-options-server.d.ts +0 -5
  224. package/dist/build/babel/remove-all-options-server.d.ts.map +0 -1
  225. package/dist/build/babel/remove-all-options-telemetry.d.ts +0 -5
  226. package/dist/build/babel/remove-all-options-telemetry.d.ts.map +0 -1
  227. package/dist/build/bundler.cjs.map +0 -1
  228. package/dist/build/bundler.js.map +0 -1
  229. package/dist/build/customInstrumentation.d.ts +0 -10
  230. package/dist/build/customInstrumentation.d.ts.map +0 -1
  231. package/dist/build/index.cjs.map +0 -1
  232. package/dist/build/index.js.map +0 -1
  233. package/dist/build/telemetry.d.ts +0 -8
  234. package/dist/build/telemetry.d.ts.map +0 -1
  235. package/dist/bundler/index.cjs.map +0 -1
  236. package/dist/bundler/index.js.map +0 -1
  237. package/dist/chunk-3JYRSECU.cjs +0 -430
  238. package/dist/chunk-3JYRSECU.cjs.map +0 -1
  239. package/dist/chunk-465ZVXAK.js +0 -409
  240. package/dist/chunk-465ZVXAK.js.map +0 -1
  241. package/dist/chunk-5QFG6SCM.js +0 -398
  242. package/dist/chunk-5QFG6SCM.js.map +0 -1
  243. package/dist/chunk-CEXVMFUD.js +0 -1265
  244. package/dist/chunk-CEXVMFUD.js.map +0 -1
  245. package/dist/chunk-CKUCDCGI.js +0 -168
  246. package/dist/chunk-CKUCDCGI.js.map +0 -1
  247. package/dist/chunk-HMMDNIEQ.cjs +0 -167
  248. package/dist/chunk-HMMDNIEQ.cjs.map +0 -1
  249. package/dist/chunk-LGC3GUMR.cjs +0 -437
  250. package/dist/chunk-LGC3GUMR.cjs.map +0 -1
  251. package/dist/chunk-MCDDO4WY.cjs +0 -1309
  252. package/dist/chunk-MCDDO4WY.cjs.map +0 -1
  253. package/dist/chunk-OYO2MJED.cjs +0 -195
  254. package/dist/chunk-OYO2MJED.cjs.map +0 -1
  255. package/dist/chunk-SBTEIZ3B.js +0 -26
  256. package/dist/chunk-SBTEIZ3B.js.map +0 -1
  257. package/dist/chunk-WAWEQ3DP.js +0 -156
  258. package/dist/chunk-WAWEQ3DP.js.map +0 -1
  259. package/dist/chunk-WIQEFIRX.cjs +0 -28
  260. package/dist/chunk-WIQEFIRX.cjs.map +0 -1
  261. package/dist/server/handlers/auth/defaults.d.ts +0 -3
  262. package/dist/server/handlers/auth/defaults.d.ts.map +0 -1
  263. package/dist/server/handlers/auth/helpers.d.ts +0 -11
  264. package/dist/server/handlers/auth/helpers.d.ts.map +0 -1
  265. package/dist/server/handlers/auth/index.d.ts +0 -11
  266. package/dist/server/handlers/auth/index.d.ts.map +0 -1
  267. package/dist/server/handlers/prompt.d.ts +0 -3
  268. package/dist/server/handlers/prompt.d.ts.map +0 -1
  269. package/dist/server/handlers/routes/agent-builder/handlers.d.ts +0 -17
  270. package/dist/server/handlers/routes/agent-builder/handlers.d.ts.map +0 -1
  271. package/dist/server/handlers/routes/agent-builder/router.d.ts +0 -4
  272. package/dist/server/handlers/routes/agent-builder/router.d.ts.map +0 -1
  273. package/dist/server/handlers/routes/agents/handlers.d.ts +0 -363
  274. package/dist/server/handlers/routes/agents/handlers.d.ts.map +0 -1
  275. package/dist/server/handlers/routes/agents/router.d.ts +0 -5
  276. package/dist/server/handlers/routes/agents/router.d.ts.map +0 -1
  277. package/dist/server/handlers/routes/agents/voice.d.ts +0 -18
  278. package/dist/server/handlers/routes/agents/voice.d.ts.map +0 -1
  279. package/dist/server/handlers/routes/logs/handlers.d.ts +0 -5
  280. package/dist/server/handlers/routes/logs/handlers.d.ts.map +0 -1
  281. package/dist/server/handlers/routes/logs/router.d.ts +0 -3
  282. package/dist/server/handlers/routes/logs/router.d.ts.map +0 -1
  283. package/dist/server/handlers/routes/mcp/handlers.d.ts +0 -139
  284. package/dist/server/handlers/routes/mcp/handlers.d.ts.map +0 -1
  285. package/dist/server/handlers/routes/mcp/router.d.ts +0 -4
  286. package/dist/server/handlers/routes/mcp/router.d.ts.map +0 -1
  287. package/dist/server/handlers/routes/memory/handlers.d.ts +0 -17
  288. package/dist/server/handlers/routes/memory/handlers.d.ts.map +0 -1
  289. package/dist/server/handlers/routes/memory/router.d.ts +0 -4
  290. package/dist/server/handlers/routes/memory/router.d.ts.map +0 -1
  291. package/dist/server/handlers/routes/observability/handlers.d.ts +0 -6
  292. package/dist/server/handlers/routes/observability/handlers.d.ts.map +0 -1
  293. package/dist/server/handlers/routes/observability/router.d.ts +0 -3
  294. package/dist/server/handlers/routes/observability/router.d.ts.map +0 -1
  295. package/dist/server/handlers/routes/scores/handlers.d.ts +0 -300
  296. package/dist/server/handlers/routes/scores/handlers.d.ts.map +0 -1
  297. package/dist/server/handlers/routes/scores/router.d.ts +0 -4
  298. package/dist/server/handlers/routes/scores/router.d.ts.map +0 -1
  299. package/dist/server/handlers/routes/telemetry/handlers.d.ts +0 -4
  300. package/dist/server/handlers/routes/telemetry/handlers.d.ts.map +0 -1
  301. package/dist/server/handlers/routes/telemetry/router.d.ts +0 -3
  302. package/dist/server/handlers/routes/telemetry/router.d.ts.map +0 -1
  303. package/dist/server/handlers/routes/tools/handlers.d.ts +0 -7
  304. package/dist/server/handlers/routes/tools/handlers.d.ts.map +0 -1
  305. package/dist/server/handlers/routes/tools/router.d.ts +0 -4
  306. package/dist/server/handlers/routes/tools/router.d.ts.map +0 -1
  307. package/dist/server/handlers/routes/vector/handlers.d.ts +0 -10
  308. package/dist/server/handlers/routes/vector/handlers.d.ts.map +0 -1
  309. package/dist/server/handlers/routes/vector/router.d.ts +0 -4
  310. package/dist/server/handlers/routes/vector/router.d.ts.map +0 -1
  311. package/dist/server/handlers/routes/workflows/handlers.d.ts +0 -20
  312. package/dist/server/handlers/routes/workflows/handlers.d.ts.map +0 -1
  313. package/dist/server/handlers/routes/workflows/legacyWorkflows.d.ts +0 -11
  314. package/dist/server/handlers/routes/workflows/legacyWorkflows.d.ts.map +0 -1
  315. package/dist/server/handlers/routes/workflows/router.d.ts +0 -4
  316. package/dist/server/handlers/routes/workflows/router.d.ts.map +0 -1
  317. package/dist/services/index.cjs.map +0 -1
  318. package/dist/services/index.js.map +0 -1
  319. package/dist/templates/instrumentation-template.js +0 -172
@@ -0,0 +1,23 @@
1
+ > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
+
3
+ # Deploy to cloud providers
4
+
5
+ Mastra applications can be deployed to cloud providers and serverless platforms. Mastra includes optional built-in deployers for Vercel, Netlify, and Cloudflare to automate the deployment process.
6
+
7
+ ## Mastra platform
8
+
9
+ Mastra provides a platform to deploy your server to the cloud. Read the [Mastra platform deployment guide](https://mastra.ai/docs/mastra-platform/overview) to learn more.
10
+
11
+ ## Cloud providers
12
+
13
+ The following guides show how to deploy Mastra to specific cloud providers:
14
+
15
+ - [Amazon Bedrock AgentCore](https://mastra.ai/guides/deployment/aws-bedrock-agentcore)
16
+ - [Amazon EC2](https://mastra.ai/guides/deployment/amazon-ec2)
17
+ - [AWS Lambda](https://mastra.ai/guides/deployment/aws-lambda)
18
+ - [Azure App Services](https://mastra.ai/guides/deployment/azure-app-services)
19
+ - [Cloudflare](https://mastra.ai/guides/deployment/cloudflare)
20
+ - [Digital Ocean](https://mastra.ai/guides/deployment/digital-ocean)
21
+ - [Kubernetes](https://mastra.ai/guides/deployment/kubernetes)
22
+ - [Netlify](https://mastra.ai/guides/deployment/netlify)
23
+ - [Vercel](https://mastra.ai/guides/deployment/vercel)
@@ -0,0 +1,157 @@
1
+ > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
+
3
+ # Deploy a Mastra server
4
+
5
+ Mastra compiles your application into a standalone Node.js server that can run on any platform supporting Node.js, Bun, or Deno.
6
+
7
+ > **Tip:** This guide covers deploying the standalone server generated by `mastra build`. If you need to integrate Mastra into an existing Express or Hono application, see [Server Adapters](https://mastra.ai/docs/server/server-adapters) instead.
8
+
9
+ ## Building your application
10
+
11
+ Run the build command from your project root:
12
+
13
+ ```bash
14
+ mastra build
15
+ ```
16
+
17
+ This creates a `.mastra` directory containing your production-ready server. Read the [`mastra build`](https://mastra.ai/reference/cli/mastra) reference for all available flags.
18
+
19
+ ## Build output
20
+
21
+ After building, Mastra creates the following structure:
22
+
23
+ ```text
24
+ .mastra/
25
+ ├── .build/ # Intermediate build artifacts (module maps, analysis)
26
+ └── output/
27
+ ├── index.mjs # Server entry point
28
+ ├── mastra.mjs # Your bundled Mastra configuration
29
+ ├── tools.mjs # Aggregated tool exports
30
+ ├── tools/ # Individual tool bundles
31
+ ├── package.json # Production dependencies
32
+ ├── node_modules/ # Installed dependencies
33
+ ├── .npmrc # Copied from your project (if present)
34
+ ├── public/ # Static assets (if src/mastra/public exists)
35
+ └── playground/ # Studio UI (if --studio flag used)
36
+ ```
37
+
38
+ The `output` directory is self-contained. You can copy it to any server and run it directly.
39
+
40
+ ## Running the server
41
+
42
+ Start the server using the Mastra CLI:
43
+
44
+ ```bash
45
+ mastra start
46
+ ```
47
+
48
+ Or run directly with Node.js:
49
+
50
+ ```bash
51
+ node .mastra/output/index.mjs
52
+ ```
53
+
54
+ The `mastra start` command provides additional features:
55
+
56
+ - Loads environment variables from `.env.production` and `.env`
57
+ - Provides helpful error messages for missing modules
58
+ - Handles process signals for graceful shutdown
59
+
60
+ Read the [`mastra start`](https://mastra.ai/reference/cli/mastra) reference for all available flags.
61
+
62
+ ## Build configuration
63
+
64
+ ### Build-time configuration
65
+
66
+ Mastra reads the `bundler`, `deployer`, and `server` options while it builds your application. Keep those options as direct properties of the object passed to `new Mastra()` so the build can extract them.
67
+
68
+ The following entry-file shape works:
69
+
70
+ ```typescript
71
+ import { Mastra } from '@mastra/core/mastra'
72
+
73
+ export const mastra = new Mastra({
74
+ bundler: {
75
+ externals: ['sharp'],
76
+ },
77
+ server: {
78
+ port: 4111,
79
+ },
80
+ })
81
+ ```
82
+
83
+ The value of each option can come from a variable, import, or function call. The option itself must remain a direct property. Don't hide build-time options behind a factory call or an object spread:
84
+
85
+ ```typescript
86
+ const options = {
87
+ bundler: {
88
+ externals: ['sharp'],
89
+ },
90
+ }
91
+
92
+ // These patterns prevent Mastra from extracting `bundler` during the build.
93
+ export const mastra = new Mastra(createMastraOptions())
94
+ export const otherMastra = new Mastra({ ...options })
95
+ ```
96
+
97
+ When Mastra can't extract an option, it uses the default build behavior for that option. See the [configuration reference](https://mastra.ai/reference/configuration) for the available `bundler`, `deployer`, and `server` settings.
98
+
99
+ ### Public folder
100
+
101
+ If a `public` folder exists in your Mastra directory (`src/mastra/public`), its contents are copied to the output directory during build. These files are served as static assets by the server.
102
+
103
+ ### Mastra configuration
104
+
105
+ The build process respects configuration in your Mastra instance. For server behavior like CORS, timeouts, and middleware, see [server overview](https://mastra.ai/docs/server/mastra-server). For all available options, see the [configuration reference](https://mastra.ai/reference/configuration).
106
+
107
+ ## Build process
108
+
109
+ The build follows these steps:
110
+
111
+ 1. **Locates entry file**: Finds `index.ts` or `index.js` in your Mastra directory.
112
+ 2. **Discovers tools**: Scans for tool files matching `{mastraDir}/tools/**/*.{js,ts}`, excluding test files.
113
+ 3. **Analyzes dependencies**: Determines which packages to bundle vs. install externally.
114
+ 4. **Bundles code**: Uses Rollup with tree-shaking and optional source maps.
115
+ 5. **Generates server**: Creates a Hono-based HTTP server as `index.mjs`.
116
+ 6. **Installs dependencies**: Runs `npm install` in the output directory.
117
+ 7. **Copies assets**: Copies `public` folder and `.npmrc` if present.
118
+
119
+ ## Environment variables
120
+
121
+ | Variable | Description |
122
+ | -------------------- | --------------------------------------------------------------------------- |
123
+ | `PORT` | Server port (default: `4111`) |
124
+ | `MASTRA_STUDIO_PATH` | Path to Studio build directory (default: `./playground`) |
125
+ | `MASTRA_SKIP_DOTENV` | Skip loading `.env` files when set |
126
+ | `NODE_OPTIONS` | Node.js options (e.g., `--max-old-space-size=4096` for build memory issues) |
127
+
128
+ ## Server endpoints
129
+
130
+ The built server exposes endpoints for health checks, agents, workflows, and more:
131
+
132
+ | Endpoint | Description |
133
+ | ----------------------- | ---------------------------------------------------------------------- |
134
+ | `GET /health` | Health check endpoint, returns `200 OK` |
135
+ | `GET /api/openapi.json` | OpenAPI specification (if `server.build.openAPIDocs` is enabled). |
136
+ | `GET /swagger-ui` | Interactive API documentation (if `server.build.swaggerUI` is enabled) |
137
+
138
+ This list isn't exhaustive. To view all endpoints, run `mastra dev` and visit `http://localhost:4111/swagger-ui`.
139
+
140
+ To add your own endpoints, see [Custom API Routes](https://mastra.ai/docs/server/custom-api-routes).
141
+
142
+ ## Troubleshooting
143
+
144
+ ### Memory errors during build
145
+
146
+ If you encounter `JavaScript heap out of memory` errors:
147
+
148
+ ```bash
149
+ NODE_OPTIONS="--max-old-space-size=4096" mastra build
150
+ ```
151
+
152
+ ## Related
153
+
154
+ - [Server Overview](https://mastra.ai/docs/server/mastra-server): Configure server behavior, middleware, and authentication
155
+ - [Server Adapters](https://mastra.ai/docs/server/server-adapters): Use Express or Hono instead of `mastra build`
156
+ - [Custom API Routes](https://mastra.ai/docs/server/custom-api-routes): Add custom HTTP endpoints
157
+ - [Configuration Reference](https://mastra.ai/reference/configuration): Full configuration options
@@ -0,0 +1,140 @@
1
+ > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
+
3
+ # Deploy in a monorepo
4
+
5
+ Deploying Mastra in a monorepo follows the same process as a standalone application. This guide covers monorepo-specific considerations. For the core build and deployment steps, see [Deploy a Mastra Server](https://mastra.ai/docs/deployment/mastra-server).
6
+
7
+ ## Supported monorepos
8
+
9
+ Mastra works with:
10
+
11
+ - npm workspaces
12
+ - pnpm workspaces
13
+ - Yarn workspaces
14
+ - Turborepo
15
+
16
+ Known limitations:
17
+
18
+ - Bun workspaces - partial support; known issues
19
+ - Nx - You can use Nx's [supported dependency strategies](https://nx.dev/concepts/decisions/dependency-management) but you need to have `package.json` files inside your workspace packages
20
+
21
+ ## Example structure
22
+
23
+ In this example, the Mastra application is located at `apps/api`:
24
+
25
+ ```text
26
+ apps/
27
+ ├── api/
28
+ │ ├── src/
29
+ │ │ └── mastra/
30
+ │ │ ├── agents/
31
+ │ │ ├── tools/
32
+ │ │ ├── workflows/
33
+ │ │ └── index.ts
34
+ │ ├── package.json
35
+ │ └── tsconfig.json
36
+ └── web/
37
+ packages/
38
+ ├── ui/
39
+ └── utils/
40
+ package.json
41
+ ```
42
+
43
+ ## Building from a monorepo
44
+
45
+ Use your monorepo tool to run the build command from the correct package. There's no need for special flags.
46
+
47
+ Examples:
48
+
49
+ **npm**:
50
+
51
+ ```bash
52
+ npm run build --workspace=apps/api
53
+ ```
54
+
55
+ **pnpm**:
56
+
57
+ ```bash
58
+ pnpm --filter api run build
59
+ ```
60
+
61
+ **yarn**:
62
+
63
+ ```bash
64
+ yarn workspace api build
65
+ ```
66
+
67
+ **Turborepo**:
68
+
69
+ ```bash
70
+ turbo run build --filter=api
71
+ ```
72
+
73
+ Your package's `build` script should run `mastra build`:
74
+
75
+ ```json
76
+ {
77
+ "scripts": {
78
+ "build": "mastra build"
79
+ }
80
+ }
81
+ ```
82
+
83
+ ## Workspace packages
84
+
85
+ When your Mastra application imports from other workspace packages, Mastra handles this automatically:
86
+
87
+ - If the package is pre-compiled (e.g., built with `tsc` or `tsdown`), Mastra imports the compiled JavaScript
88
+ - If the package contains uncompiled TypeScript, Mastra transpiles it during the build
89
+
90
+ For most setups, this works without configuration. If you encounter issues with workspace package imports, add the package to [`transpilePackages`](https://mastra.ai/reference/configuration):
91
+
92
+ ```typescript
93
+ export const mastra = new Mastra({
94
+ bundler: {
95
+ transpilePackages: ['@my-org/utils'],
96
+ },
97
+ })
98
+ ```
99
+
100
+ Keep `bundler` as a direct property in the object passed to `new Mastra()`. See [build-time configuration](https://mastra.ai/docs/deployment/mastra-server) for the supported entry-file shape.
101
+
102
+ ## Environment variables
103
+
104
+ Store `.env` files in the Mastra application directory (e.g., `apps/api/.env`), not the monorepo root.
105
+
106
+ ## Deployment configuration
107
+
108
+ When deploying to cloud providers, ensure the correct package is selected as the deploy target. Selecting the monorepo root instead of the application directory (e.g., `apps/api`) is a common mistake.
109
+
110
+ Most providers let you specify the root directory in their dashboard or configuration file.
111
+
112
+ ## Dependency management
113
+
114
+ Keep dependencies consistent to avoid version conflicts and build errors:
115
+
116
+ - Use a **single lockfile** at the monorepo root so all packages resolve the same versions
117
+ - Align versions of **shared libraries** (like Mastra or frameworks) to prevent duplicates
118
+
119
+ ## Troubleshooting
120
+
121
+ ### Workspace package not found
122
+
123
+ If Mastra can't resolve a workspace package, ensure:
124
+
125
+ - The package is listed in your `package.json` dependencies
126
+ - Your lockfile is up to date (`pnpm install`, `npm install`, etc.)
127
+ - The package has a valid `main` or `exports` field in its `package.json`
128
+
129
+ ### TypeScript errors from workspace packages
130
+
131
+ If you see type errors from uncompiled workspace packages, either:
132
+
133
+ - Build the package first (recommended for faster Mastra builds)
134
+ - Add the package to [`transpilePackages`](https://mastra.ai/reference/configuration) in your Mastra config
135
+
136
+ ## Related
137
+
138
+ - [Deploy a Mastra Server](https://mastra.ai/docs/deployment/mastra-server): Core build and deployment guide
139
+ - [Configuration Reference](https://mastra.ai/reference/configuration): `bundler.transpilePackages` and other options
140
+ - [CLI Reference](https://mastra.ai/reference/cli/mastra): Build command flags
@@ -0,0 +1,79 @@
1
+ > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
+
3
+ # Deployment overview
4
+
5
+ Mastra applications can be deployed to any Node.js-compatible environment. You can deploy a Mastra server, integrate with an existing web framework, deploy to cloud providers, or use [Mastra platform](https://mastra.ai/docs/mastra-platform/overview) for observability, Studio, and server deployment.
6
+
7
+ ## Runtime support
8
+
9
+ Mastra can run against any of these runtime environments:
10
+
11
+ - Node.js `v22.13.0` or later
12
+ - Bun
13
+ - Deno
14
+ - Cloudflare
15
+
16
+ ## Deployment options
17
+
18
+ ### Mastra server
19
+
20
+ Mastra provides a [server](https://mastra.ai/docs/server/mastra-server) powered by Hono that can be deployed independently. Use the `mastra build` command to build your application and deploy the output to your preferred VM, container, or PaaS platform.
21
+
22
+ Use this option when you need full control over your infrastructure, long-running processes, or WebSocket connections. The [Mastra server deployment guide](https://mastra.ai/docs/deployment/mastra-server) provides more details.
23
+
24
+ ### Monorepo
25
+
26
+ Deploy a Mastra server as part of a monorepo setup, following the same approach as standalone deployment.
27
+
28
+ Read about [monorepo deployment](https://mastra.ai/docs/deployment/monorepo).
29
+
30
+ ### Mastra platform
31
+
32
+ The [Mastra platform](https://mastra.ai/docs/mastra-platform/overview) provides three products for deploying, monitoring, and managing AI applications built with the Mastra framework:
33
+
34
+ - [**Observability**](https://mastra.ai/docs/mastra-platform/observability): A standalone hosted product for searchable traces, logs, and metrics across Mastra projects and deploys
35
+ - [**Studio**](https://mastra.ai/docs/mastra-platform/studio): A hosted visual environment for testing agents and running workflows, plus inspecting traces
36
+ - [**Server**](https://mastra.ai/docs/mastra-platform/server): A production deployment target that runs your Mastra application as an API server
37
+
38
+ Learn more in the [Mastra platform overview](https://mastra.ai/docs/mastra-platform/overview).
39
+
40
+ ### Cloud Providers
41
+
42
+ Mastra applications can be deployed to cloud providers and serverless platforms. Mastra includes optional built-in deployers for Vercel, Netlify, and Cloudflare to automate the build and deployment process.
43
+
44
+ Use this option for auto-scaling, minimal infrastructure management, or when you're already using one of these platforms.
45
+
46
+ - [Amazon EC2](https://mastra.ai/guides/deployment/amazon-ec2)
47
+ - [AWS Lambda](https://mastra.ai/guides/deployment/aws-lambda)
48
+ - [Azure App Services](https://mastra.ai/guides/deployment/azure-app-services)
49
+ - [Cloudflare](https://mastra.ai/guides/deployment/cloudflare)
50
+ - [Digital Ocean](https://mastra.ai/guides/deployment/digital-ocean)
51
+ - [Kubernetes](https://mastra.ai/guides/deployment/kubernetes)
52
+ - [Netlify](https://mastra.ai/guides/deployment/netlify)
53
+ - [Vercel](https://mastra.ai/guides/deployment/vercel)
54
+
55
+ ### Sandbox
56
+
57
+ Deploy a Mastra server into an ephemeral workspace sandbox (such as Vercel Sandbox or E2B) and get a live public URL in seconds.
58
+
59
+ 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).
60
+
61
+ ### Web Framework
62
+
63
+ 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.
64
+
65
+ Use these guides when adding Mastra to an existing Next.js or Astro application.
66
+
67
+ - [With Next.js on Vercel](https://mastra.ai/docs/deployment/web-framework)
68
+ - [With Astro on Vercel](https://mastra.ai/docs/deployment/web-framework)
69
+ - [With Astro on Netlify](https://mastra.ai/docs/deployment/web-framework)
70
+
71
+ ## Workflow runners
72
+
73
+ Mastra workflows run using the built-in execution engine by default. For production workloads requiring managed infrastructure, workflows can also be deployed to specialized platforms like [Inngest](https://www.inngest.com) that provide step memoization, automatic retries, and real-time monitoring.
74
+
75
+ Visit the [Workflow Runners guide](https://mastra.ai/docs/deployment/workflow-runners) for execution options and the [Inngest deployment guide](https://mastra.ai/guides/deployment/inngest) for setup instructions.
76
+
77
+ ## Workers
78
+
79
+ For production deployments, Mastra can run workflow orchestration, cron scheduling, and background tool execution in dedicated worker processes separate from the API server. This lets you scale each concern independently and isolate failures. See [Workers](https://mastra.ai/docs/deployment/workers) for details.
@@ -0,0 +1,54 @@
1
+ > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
+
3
+ # Deploy with a web framework
4
+
5
+ When Mastra is integrated with a web framework, it deploys alongside your application using the framework's standard deployment process. Follow the instructions below to ensure your Mastra integration deploys correctly.
6
+
7
+ > **Warning:** If you're deploying to a cloud provider, remove any usage of [LibSQLStore](https://mastra.ai/reference/storage/libsql) from your Mastra configuration. LibSQLStore requires filesystem access and isn't compatible with serverless platforms.
8
+
9
+ Integration guides:
10
+
11
+ - [With Next.js](https://mastra.ai/guides/getting-started/next-js)
12
+ - [With Astro](https://mastra.ai/guides/getting-started/astro)
13
+
14
+ ## With Next.js on Vercel
15
+
16
+ If you've integrated Mastra with Next.js [by following our guide](https://mastra.ai/guides/getting-started/next-js) and plan to deploy to Vercel, add `serverExternalPackages: ["@mastra/*"]` to your `next.config.ts`:
17
+
18
+ ```typescript
19
+ import type { NextConfig } from 'next'
20
+
21
+ const nextConfig: NextConfig = {
22
+ serverExternalPackages: ['@mastra/*'],
23
+ }
24
+
25
+ export default nextConfig
26
+ ```
27
+
28
+ ## With Astro on Vercel
29
+
30
+ If you've integrated Mastra with Astro [by following our guide](https://mastra.ai/guides/getting-started/astro) and plan to deploy to Vercel, add the Vercel adapter and server output to your `astro.config.mjs`:
31
+
32
+ ```javascript
33
+ import { defineConfig } from 'astro/config'
34
+ import vercel from '@astrojs/vercel'
35
+
36
+ export default defineConfig({
37
+ adapter: vercel(),
38
+ output: 'server',
39
+ })
40
+ ```
41
+
42
+ ## With Astro on Netlify
43
+
44
+ If you've integrated Mastra with Astro [by following our guide](https://mastra.ai/guides/getting-started/astro) and plan to deploy to Netlify, add the Netlify adapter and server output to your `astro.config.mjs`:
45
+
46
+ ```javascript
47
+ import { defineConfig } from 'astro/config'
48
+ import netlify from '@astrojs/netlify'
49
+
50
+ export default defineConfig({
51
+ adapter: netlify(),
52
+ output: 'server',
53
+ })
54
+ ```
@@ -0,0 +1,17 @@
1
+ > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
+
3
+ # Workflow runners
4
+
5
+ Mastra [workflows](https://mastra.ai/docs/workflows/overview) can be executed using the built-in workflow runner or deployed to specialized workflow execution platforms that handle orchestration, monitoring, and reliability.
6
+
7
+ ## Inngest
8
+
9
+ Inngest is a developer platform for running background workflows without managing infrastructure. Mastra workflows can be deployed to Inngest, which provides step memoization, automatic retries, real-time monitoring, and suspend/resume capabilities.
10
+
11
+ Visit the [Inngest deployment guide](https://mastra.ai/guides/deployment/inngest) for setup instructions and the [Inngest workflow example](https://github.com/mastra-ai/mastra/tree/main/examples/inngest) for a complete implementation.
12
+
13
+ ## Temporal
14
+
15
+ Temporal is a durable execution platform for orchestrating long-running workflows. Mastra workflows can run on Temporal workers, with each `createStep` mapped to a Temporal activity for automatic retries and durable state.
16
+
17
+ The `@mastra/temporal` package is experimental and not ready for production use. Visit the [Temporal deployment guide](https://mastra.ai/guides/deployment/temporal) for setup instructions.
@@ -0,0 +1,102 @@
1
+ > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
+
3
+ # Deployer
4
+
5
+ The Deployer handles the deployment of standalone Mastra applications by packaging code, managing environment files, and serving applications using the Hono framework. Concrete implementations must define the deploy method for specific deployment targets.
6
+
7
+ ## Usage example
8
+
9
+ If you want to create a custom deployer, you can extend the abstract `Deployer` class and implement the `deploy` method with your specific deployment logic. Here's an example:
10
+
11
+ ```typescript
12
+ import { Deployer } from '@mastra/deployer'
13
+
14
+ class CustomDeployer extends Deployer {
15
+ constructor() {
16
+ super({ name: 'custom-deployer' })
17
+ }
18
+
19
+ async deploy(outputDirectory: string): Promise<void> {
20
+ // Prepare the output directory
21
+ await this.prepare(outputDirectory)
22
+
23
+ // Bundle the application
24
+ await this._bundle('server.ts', 'mastra.ts', outputDirectory)
25
+
26
+ // Custom deployment logic
27
+ }
28
+ }
29
+ ```
30
+
31
+ ## Parameters
32
+
33
+ ### Constructor parameters
34
+
35
+ **args** (`object`): Configuration options for the Deployer.
36
+
37
+ **args.name** (`string`): A unique name for the deployer instance.
38
+
39
+ ### deploy Parameters
40
+
41
+ **outputDirectory** (`string`): The directory where the bundled and deployment-ready application will be output.
42
+
43
+ ## Methods
44
+
45
+ **getEnvFiles** (`() => Promise<string[]>`): Returns a list of environment files to be used during deployment. By default, it looks for '.env.production' and '.env' files.
46
+
47
+ **deploy** (`(outputDirectory: string) => Promise<void>`): Abstract method that must be implemented by subclasses. Handles the deployment process to the specified output directory.
48
+
49
+ ## Inherited methods from bundler
50
+
51
+ The Deployer class inherits the following key methods from the Bundler class:
52
+
53
+ **prepare** (`(outputDirectory: string) => Promise<void>`): Prepares the output directory by cleaning it and creating necessary subdirectories.
54
+
55
+ **writePackageJson** (`(outputDirectory: string, dependencies: Map<string, string>) => Promise<void>`): Generates a package.json file in the output directory with the specified dependencies.
56
+
57
+ **\_bundle** (`(serverFile: string, mastraEntryFile: string, outputDirectory: string, bundleLocation?: string) => Promise<void>`): Bundles the application using the specified server and Mastra entry files.
58
+
59
+ ## Core concepts
60
+
61
+ ### Deployment Lifecycle
62
+
63
+ The Deployer abstract class implements a structured deployment lifecycle:
64
+
65
+ 1. **Initialization**: The deployer is initialized with a name and creates a Deps instance for dependency management.
66
+ 2. **Environment Setup**: The `getEnvFiles` method identifies environment files (.env.production, .env) to be used during deployment.
67
+ 3. **Preparation**: The `prepare` method (inherited from Bundler) cleans the output directory and creates necessary subdirectories.
68
+ 4. **Bundling**: The `_bundle` method (inherited from Bundler) packages the application code and its dependencies.
69
+ 5. **Deployment**: The abstract `deploy` method is implemented by subclasses to handle the actual deployment process.
70
+
71
+ ### Environment File Management
72
+
73
+ The Deployer class includes built-in support for environment file management through the `getEnvFiles` method. This method:
74
+
75
+ - Looks for environment files in a predefined order (.env.production, .env)
76
+ - Uses the FileService to find the first existing file
77
+ - Returns an array of found environment files
78
+ - Returns an empty array if no environment files are found
79
+
80
+ ```typescript
81
+ getEnvFiles(): Promise<string[]> {
82
+ const possibleFiles = ['.env.production', '.env.local', '.env'];
83
+
84
+ try {
85
+ const fileService = new FileService();
86
+ const envFile = fileService.getFirstExistingFile(possibleFiles);
87
+
88
+ return Promise.resolve([envFile]);
89
+ } catch {}
90
+
91
+ return Promise.resolve([]);
92
+ }
93
+ ```
94
+
95
+ ### Bundling and Deployment Relationship
96
+
97
+ The Deployer class extends the Bundler class, establishing a clear relationship between bundling and deployment:
98
+
99
+ 1. **Bundling as a Prerequisite**: Bundling is a prerequisite step for deployment, where the application code is packaged into a deployable format.
100
+ 2. **Shared Infrastructure**: Both bundling and deployment share common infrastructure like dependency management and file system operations.
101
+ 3. **Specialized Deployment Logic**: While bundling focuses on code packaging, deployment adds environment-specific logic for deploying the bundled code.
102
+ 4. **Extensibility**: The abstract `deploy` method allows for creating specialized deployers for different target environments.
@@ -0,0 +1,14 @@
1
+ const require_index_CLddUTqr = require("./index-CLddUTqr-C8lMvBz9.cjs");
2
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@standard-community/standard-json/0.3.5/66cfaacd123cb91a4622503e450d47277c5e66dafdfc7e9d4c4d1c8f5b17d18e/node_modules/@standard-community/standard-json/dist/effect-QlVUlMFu.js
3
+ async function getToJsonSchemaFn() {
4
+ try {
5
+ const { JSONSchema } = await import("effect");
6
+ return (schema) => JSONSchema.make(schema);
7
+ } catch {
8
+ throw new require_index_CLddUTqr.MissingDependencyError("effect");
9
+ }
10
+ }
11
+ //#endregion
12
+ exports.default = getToJsonSchemaFn;
13
+
14
+ //# sourceMappingURL=effect-QlVUlMFu-CWx-dnsz.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"effect-QlVUlMFu-CWx-dnsz.cjs","names":["MissingDependencyError"],"sources":["../../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@standard-community/standard-json/0.3.5/66cfaacd123cb91a4622503e450d47277c5e66dafdfc7e9d4c4d1c8f5b17d18e/node_modules/@standard-community/standard-json/dist/effect-QlVUlMFu.js"],"sourcesContent":["import { M as MissingDependencyError } from './index-CLddUTqr.js';\nimport 'quansync';\n\nasync function getToJsonSchemaFn() {\n try {\n const { JSONSchema } = await import('effect');\n return (schema) => JSONSchema.make(schema);\n } catch {\n throw new MissingDependencyError(\"effect\");\n }\n}\n\nexport { getToJsonSchemaFn as default };\n"],"x_google_ignoreList":[0],"mappings":";;AAGA,eAAe,oBAAoB;CACjC,IAAI;EACF,MAAM,EAAE,eAAe,MAAM,OAAO;EACpC,QAAQ,WAAW,WAAW,KAAK,MAAM;CAC3C,QAAQ;EACN,MAAM,IAAIA,uBAAAA,uBAAuB,QAAQ;CAC3C;AACF"}
@@ -0,0 +1,14 @@
1
+ import { t as MissingDependencyError } from "./index-CLddUTqr-Btqs8t-3.js";
2
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@standard-community/standard-json/0.3.5/66cfaacd123cb91a4622503e450d47277c5e66dafdfc7e9d4c4d1c8f5b17d18e/node_modules/@standard-community/standard-json/dist/effect-QlVUlMFu.js
3
+ async function getToJsonSchemaFn() {
4
+ try {
5
+ const { JSONSchema } = await import("effect");
6
+ return (schema) => JSONSchema.make(schema);
7
+ } catch {
8
+ throw new MissingDependencyError("effect");
9
+ }
10
+ }
11
+ //#endregion
12
+ export { getToJsonSchemaFn as default };
13
+
14
+ //# sourceMappingURL=effect-QlVUlMFu-CovUzKO9.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"effect-QlVUlMFu-CovUzKO9.js","names":[],"sources":["../../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@standard-community/standard-json/0.3.5/66cfaacd123cb91a4622503e450d47277c5e66dafdfc7e9d4c4d1c8f5b17d18e/node_modules/@standard-community/standard-json/dist/effect-QlVUlMFu.js"],"sourcesContent":["import { M as MissingDependencyError } from './index-CLddUTqr.js';\nimport 'quansync';\n\nasync function getToJsonSchemaFn() {\n try {\n const { JSONSchema } = await import('effect');\n return (schema) => JSONSchema.make(schema);\n } catch {\n throw new MissingDependencyError(\"effect\");\n }\n}\n\nexport { getToJsonSchemaFn as default };\n"],"x_google_ignoreList":[0],"mappings":";;AAGA,eAAe,oBAAoB;CACjC,IAAI;EACF,MAAM,EAAE,eAAe,MAAM,OAAO;EACpC,QAAQ,WAAW,WAAW,KAAK,MAAM;CAC3C,QAAQ;EACN,MAAM,IAAI,uBAAuB,QAAQ;CAC3C;AACF"}