@farm.js/core 0.1.25 → 0.1.27

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 (181) hide show
  1. package/dist/agent-runtime.d.mts +8 -10
  2. package/dist/agent-runtime.d.ts +8 -10
  3. package/dist/api/client.cjs +3 -3
  4. package/dist/api/client.d.mts +4 -5
  5. package/dist/api/client.d.ts +4 -5
  6. package/dist/api/client.mjs +2 -2
  7. package/dist/api/route-manager.cjs +6 -5
  8. package/dist/api/route-manager.d.mts +7 -9
  9. package/dist/api/route-manager.d.ts +7 -9
  10. package/dist/api/route-manager.mjs +5 -4
  11. package/dist/api/runtime.cjs +10 -4
  12. package/dist/api/runtime.d.mts +35 -3
  13. package/dist/api/runtime.d.ts +35 -3
  14. package/dist/api/runtime.mjs +9 -3
  15. package/dist/{api-client-Cx54IR5g.d.mts → api-client-BjMmY8OD.d.mts} +2 -3
  16. package/dist/{api-client-DykpaKcY.d.ts → api-client-CyFtZFJ4.d.ts} +2 -3
  17. package/dist/api.cjs +9 -8
  18. package/dist/api.d.mts +9 -11
  19. package/dist/api.d.ts +9 -11
  20. package/dist/api.mjs +9 -8
  21. package/dist/{app-ZuWrAMc_.d.mts → app-BfzZdjgX.d.mts} +3 -4
  22. package/dist/{app-BF-ctoxh.d.ts → app-CXK7Prrt.d.ts} +3 -4
  23. package/dist/app-markdown.cjs +12 -4
  24. package/dist/app-markdown.d.mts +9 -11
  25. package/dist/app-markdown.d.ts +9 -11
  26. package/dist/app-markdown.mjs +11 -3
  27. package/dist/{chunk-2BIJGZR3.mjs → chunk-3PTVHMLD.mjs} +1 -1
  28. package/dist/{chunk-XME4TCLB.mjs → chunk-4FHDV7VM.mjs} +2 -2
  29. package/dist/{chunk-KLSSO6YD.mjs → chunk-4UNKCNSL.mjs} +1 -1
  30. package/dist/chunk-5MKEDGLD.cjs +53 -0
  31. package/dist/{chunk-E3RDL2DA.cjs → chunk-DQMTHWPI.cjs} +61 -31
  32. package/dist/{chunk-TTVHACQV.cjs → chunk-FOT7LZEO.cjs} +1 -1
  33. package/dist/{chunk-2KI3CL3N.mjs → chunk-FPW4W3VW.mjs} +1 -1
  34. package/dist/{chunk-6K4SPQWL.cjs → chunk-HF5SIACK.cjs} +3 -3
  35. package/dist/{chunk-T2OPSH6S.mjs → chunk-HG237IEY.mjs} +12 -5
  36. package/dist/chunk-J63ZH5OQ.cjs +62 -0
  37. package/dist/{chunk-BD2U4ZL6.cjs → chunk-JQGDQO2I.cjs} +8 -8
  38. package/dist/{chunk-RR6UGYUT.mjs → chunk-JT25KHDI.mjs} +39 -9
  39. package/dist/{chunk-O5DVPF3R.cjs → chunk-KAERLFD3.cjs} +16 -11
  40. package/dist/{chunk-H7CJRJ4L.cjs → chunk-LAHZ7LZA.cjs} +16 -16
  41. package/dist/{chunk-XM4ZDVD7.mjs → chunk-MBFURXAC.mjs} +1 -1
  42. package/dist/{chunk-6VEHUKZ2.mjs → chunk-MM5D6VLP.mjs} +4 -20
  43. package/dist/chunk-MVL2RAJW.mjs +62 -0
  44. package/dist/{chunk-YA6LLTIJ.cjs → chunk-ND224OE2.cjs} +4 -20
  45. package/dist/{chunk-RYDW7GPR.cjs → chunk-NPFGGBM5.cjs} +13 -13
  46. package/dist/{chunk-VZWO3XVL.mjs → chunk-O2LV5XDG.mjs} +2 -2
  47. package/dist/chunk-O6XNAMBV.mjs +53 -0
  48. package/dist/{chunk-N2Z4ZFDE.mjs → chunk-OGHTEYXS.mjs} +22 -14
  49. package/dist/{chunk-U4MP7XTD.mjs → chunk-POXI72VV.mjs} +180 -16
  50. package/dist/{chunk-QGG336NI.mjs → chunk-Q4BHBO6V.mjs} +1 -1
  51. package/dist/{chunk-AXYTGLF3.cjs → chunk-QI7WQSMI.cjs} +4 -4
  52. package/dist/{chunk-WOI2HOGA.mjs → chunk-QQQNJS2E.mjs} +1 -1
  53. package/dist/{chunk-CFNOGDUS.cjs → chunk-TDWFCC2T.cjs} +2 -2
  54. package/dist/{chunk-R7LCG3BT.cjs → chunk-UNSKL6BI.cjs} +89 -81
  55. package/dist/{chunk-WJYCI56T.mjs → chunk-UWTQTZFN.mjs} +52 -33
  56. package/dist/{chunk-5YYJ6Q2L.mjs → chunk-WIVTGKLY.mjs} +7 -2
  57. package/dist/{chunk-65P6OGYN.cjs → chunk-WJKVTJJR.cjs} +12 -5
  58. package/dist/{chunk-OAVTUMJP.cjs → chunk-YXM74XOW.cjs} +9 -9
  59. package/dist/{chunk-QYMRIVG6.cjs → chunk-YZBV7733.cjs} +120 -101
  60. package/dist/{chunk-2ITKVAIF.cjs → chunk-ZSO5GWGD.cjs} +203 -39
  61. package/dist/{client-plugins-DPG0NeZN.d.mts → client-plugins-1GS4zubE.d.mts} +1940 -1677
  62. package/dist/{client-plugins-Fgni-_25.d.ts → client-plugins-B1Za6F5x.d.ts} +1940 -1677
  63. package/dist/client-plugins.d.mts +8 -10
  64. package/dist/client-plugins.d.ts +8 -10
  65. package/dist/client.cjs +4 -4
  66. package/dist/client.d.mts +10 -12
  67. package/dist/client.d.ts +10 -12
  68. package/dist/client.mjs +3 -3
  69. package/dist/config.d.mts +8 -10
  70. package/dist/config.d.ts +8 -10
  71. package/dist/{devtools-I7TBFOKD.mjs → devtools-6RN6KHTW.mjs} +8 -3
  72. package/dist/{devtools-6OA7FEF6.cjs → devtools-CQJ3H6MX.cjs} +9 -4
  73. package/dist/docs.cjs +11 -6
  74. package/dist/docs.mjs +10 -5
  75. package/dist/{endpoint-1zA994xL.d.ts → endpoint-CA-TNX60.d.ts} +1 -1
  76. package/dist/{endpoint-DAc96i93.d.mts → endpoint-CCHFqyTE.d.mts} +1 -1
  77. package/dist/index.cjs +26 -21
  78. package/dist/index.d.mts +16 -18
  79. package/dist/index.d.ts +16 -18
  80. package/dist/index.mjs +26 -21
  81. package/dist/{integration-api-BbaiokCC.d.ts → integration-api-0y4FXJpC.d.mts} +128 -1
  82. package/dist/{integration-api-BbaiokCC.d.mts → integration-api-BPJo5oXb.d.ts} +128 -1
  83. package/dist/integrations.d.mts +8 -10
  84. package/dist/integrations.d.ts +8 -10
  85. package/dist/internal/app-markdown-runtime.cjs +11 -3
  86. package/dist/internal/app-markdown-runtime.d.mts +9 -10
  87. package/dist/internal/app-markdown-runtime.d.ts +9 -10
  88. package/dist/internal/app-markdown-runtime.mjs +10 -2
  89. package/dist/internal/build-runtime.cjs +19 -17
  90. package/dist/internal/build-runtime.d.mts +10 -12
  91. package/dist/internal/build-runtime.d.ts +10 -12
  92. package/dist/internal/build-runtime.mjs +18 -16
  93. package/dist/internal/cli-runtime.cjs +9 -5
  94. package/dist/internal/cli-runtime.mjs +8 -4
  95. package/dist/internal/client-error-overlay.cjs +4 -4
  96. package/dist/internal/client-error-overlay.mjs +1 -1
  97. package/dist/internal/compression-runtime.d.mts +8 -10
  98. package/dist/internal/compression-runtime.d.ts +8 -10
  99. package/dist/internal/config-runtime.cjs +9 -4
  100. package/dist/internal/config-runtime.d.mts +9 -11
  101. package/dist/internal/config-runtime.d.ts +9 -11
  102. package/dist/internal/config-runtime.mjs +8 -3
  103. package/dist/internal/infra-analytics-runtime.cjs +4 -3
  104. package/dist/internal/infra-analytics-runtime.mjs +2 -1
  105. package/dist/internal/product-telemetry-runtime.cjs +2 -2
  106. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  107. package/dist/internal/production-runtime.cjs +8 -5
  108. package/dist/internal/production-runtime.d.mts +16 -16
  109. package/dist/internal/production-runtime.d.ts +16 -16
  110. package/dist/internal/production-runtime.mjs +7 -4
  111. package/dist/markdown.cjs +10 -2
  112. package/dist/markdown.d.mts +35 -153
  113. package/dist/markdown.d.ts +35 -153
  114. package/dist/markdown.mjs +9 -1
  115. package/dist/{metadata-CDnRHKVq.d.ts → metadata-7LKgQEWF.d.ts} +1 -1
  116. package/dist/{metadata-D0EF7esB.d.mts → metadata-B9mCxKgp.d.mts} +1 -1
  117. package/dist/middleware.d.mts +9 -11
  118. package/dist/middleware.d.ts +9 -11
  119. package/dist/navigation.d.mts +10 -12
  120. package/dist/navigation.d.ts +10 -12
  121. package/dist/{nitro-ZKLGOTVY.mjs → nitro-NAKCRVHX.mjs} +4 -3
  122. package/dist/{nitro-KQDU7CFE.cjs → nitro-VYDZGYFY.cjs} +4 -3
  123. package/dist/observability-BupkiN0m.d.mts +447 -0
  124. package/dist/observability-BupkiN0m.d.ts +447 -0
  125. package/dist/observability.d.mts +2 -417
  126. package/dist/observability.d.ts +2 -417
  127. package/dist/plugin.cjs +14 -12
  128. package/dist/plugin.d.mts +9 -11
  129. package/dist/plugin.d.ts +9 -11
  130. package/dist/plugin.mjs +13 -11
  131. package/dist/{production-runtime-DpCt0opU.d.ts → production-runtime-B3xnY6fI.d.ts} +1 -1
  132. package/dist/{production-runtime-x3W4wVqx.d.mts → production-runtime-DramhI0c.d.mts} +1 -1
  133. package/dist/{render-plan-D5oFRVBV.d.ts → render-plan-CpW32tOL.d.ts} +1 -1
  134. package/dist/{render-plan-tazUJalK.d.mts → render-plan-CtQB-zHS.d.mts} +1 -1
  135. package/dist/renderer-client.d.mts +6 -8
  136. package/dist/renderer-client.d.ts +6 -8
  137. package/dist/{request-CzZX0Aew.d.ts → request-BVGGeQv4.d.ts} +1 -1
  138. package/dist/{request-CXmQy5ks.d.mts → request-DlLVBKe3.d.mts} +1 -1
  139. package/dist/request.d.mts +9 -11
  140. package/dist/request.d.ts +9 -11
  141. package/dist/{route-rendering-Dw3C362T.d.ts → route-rendering-BdEldajn.d.ts} +1 -1
  142. package/dist/{route-rendering-B-qpe32B.d.mts → route-rendering-DChYLNdh.d.mts} +1 -1
  143. package/dist/{router-CLl3xHwl.d.ts → router-D0Az-1Nu.d.ts} +1 -1
  144. package/dist/{router-CafM2jlw.d.mts → router-D5htHn_M.d.mts} +1 -1
  145. package/dist/routes.d.mts +6 -8
  146. package/dist/routes.d.ts +6 -8
  147. package/dist/server-fn-client.d.mts +3 -4
  148. package/dist/server-fn-client.d.ts +3 -4
  149. package/dist/server-fn.d.mts +1 -1
  150. package/dist/server-fn.d.ts +1 -1
  151. package/dist/server-plugins.d.mts +8 -10
  152. package/dist/server-plugins.d.ts +8 -10
  153. package/dist/server-query-client.d.mts +1 -1
  154. package/dist/server-query-client.d.ts +1 -1
  155. package/dist/server-query.d.mts +1 -1
  156. package/dist/server-query.d.ts +1 -1
  157. package/dist/server.cjs +292 -141
  158. package/dist/server.d.mts +13 -15
  159. package/dist/server.d.ts +13 -15
  160. package/dist/server.mjs +278 -127
  161. package/dist/{spa-router-6sJfsMlQ.d.mts → spa-router-DVfSJZ5o.d.mts} +2 -2
  162. package/dist/{spa-router-DePr2aZ6.d.ts → spa-router-DmwP_7QL.d.ts} +2 -2
  163. package/dist/testing.cjs +6 -5
  164. package/dist/testing.d.mts +7 -9
  165. package/dist/testing.d.ts +7 -9
  166. package/dist/testing.mjs +5 -4
  167. package/dist/{utils-BPHr-1mP.d.mts → utils-B_Rmr0-n.d.mts} +1 -1
  168. package/dist/{utils-BBKC3cf3.d.ts → utils-Dv0OuLtF.d.ts} +1 -1
  169. package/dist/version.cjs +2 -2
  170. package/dist/version.mjs +1 -1
  171. package/dist/vite.cjs +14 -12
  172. package/dist/vite.d.mts +8 -10
  173. package/dist/vite.d.ts +8 -10
  174. package/dist/vite.mjs +13 -11
  175. package/package.json +1 -1
  176. package/dist/route-B0XrsrFk.d.mts +0 -128
  177. package/dist/route-DOEpbyWZ.d.ts +0 -128
  178. package/dist/{chunk-GDUYXFIS.mjs → chunk-6EG7U4NF.mjs} +3 -3
  179. package/dist/{chunk-YAOX43YI.cjs → chunk-C7OUJ6JI.cjs} +2 -2
  180. package/dist/{chunk-IXTFU4PL.cjs → chunk-NL3ZSMZB.cjs} +2 -2
  181. package/dist/{chunk-L6V3P73N.mjs → chunk-UOXGA6TO.mjs} +4 -4
@@ -7,7 +7,7 @@ var _chunkMT763TDWcjs = require('./chunk-MT763TDW.cjs');
7
7
 
8
8
 
9
9
 
10
- var _chunkRYDW7GPRcjs = require('./chunk-RYDW7GPR.cjs');
10
+ var _chunkNPFGGBM5cjs = require('./chunk-NPFGGBM5.cjs');
11
11
 
12
12
 
13
13
 
@@ -17,7 +17,7 @@ var _chunkRYDW7GPRcjs = require('./chunk-RYDW7GPR.cjs');
17
17
 
18
18
 
19
19
 
20
- var _chunkAXYTGLF3cjs = require('./chunk-AXYTGLF3.cjs');
20
+ var _chunkQI7WQSMIcjs = require('./chunk-QI7WQSMI.cjs');
21
21
 
22
22
 
23
23
 
@@ -25,7 +25,7 @@ var _chunkAXYTGLF3cjs = require('./chunk-AXYTGLF3.cjs');
25
25
  var _chunkMWWVKDW3cjs = require('./chunk-MWWVKDW3.cjs');
26
26
 
27
27
 
28
- var _chunkYA6LLTIJcjs = require('./chunk-YA6LLTIJ.cjs');
28
+ var _chunkND224OE2cjs = require('./chunk-ND224OE2.cjs');
29
29
 
30
30
 
31
31
  var _chunkIK6LVLKCcjs = require('./chunk-IK6LVLKC.cjs');
@@ -34,7 +34,7 @@ var _chunkIK6LVLKCcjs = require('./chunk-IK6LVLKC.cjs');
34
34
 
35
35
 
36
36
 
37
- var _chunkO5DVPF3Rcjs = require('./chunk-O5DVPF3R.cjs');
37
+ var _chunkKAERLFD3cjs = require('./chunk-KAERLFD3.cjs');
38
38
 
39
39
 
40
40
  var _chunkKCMTCM6Icjs = require('./chunk-KCMTCM6I.cjs');
@@ -69,7 +69,8 @@ var _chunk2SJ4RQ6Pcjs = require('./chunk-2SJ4RQ6P.cjs');
69
69
 
70
70
 
71
71
 
72
- var _chunkR7LCG3BTcjs = require('./chunk-R7LCG3BT.cjs');
72
+
73
+ var _chunkUNSKL6BIcjs = require('./chunk-UNSKL6BI.cjs');
73
74
 
74
75
 
75
76
 
@@ -79,7 +80,7 @@ var _chunkDW34V5SMcjs = require('./chunk-DW34V5SM.cjs');
79
80
 
80
81
 
81
82
 
82
- var _chunk65P6OGYNcjs = require('./chunk-65P6OGYN.cjs');
83
+ var _chunkWJKVTJJRcjs = require('./chunk-WJKVTJJR.cjs');
83
84
 
84
85
 
85
86
  var _chunkCXP5U3RWcjs = require('./chunk-CXP5U3RW.cjs');
@@ -111,7 +112,7 @@ var _chunkVPTDD5XFcjs = require('./chunk-VPTDD5XF.cjs');
111
112
  var _chunkPSV6XKPOcjs = require('./chunk-PSV6XKPO.cjs');
112
113
 
113
114
 
114
- var _chunkE3RDL2DAcjs = require('./chunk-E3RDL2DA.cjs');
115
+ var _chunkDQMTHWPIcjs = require('./chunk-DQMTHWPI.cjs');
115
116
 
116
117
 
117
118
 
@@ -123,14 +124,14 @@ var _chunk6EXBPJ24cjs = require('./chunk-6EXBPJ24.cjs');
123
124
  var _chunkVEKFLAQMcjs = require('./chunk-VEKFLAQM.cjs');
124
125
 
125
126
 
126
- var _chunk6K4SPQWLcjs = require('./chunk-6K4SPQWL.cjs');
127
+ var _chunkHF5SIACKcjs = require('./chunk-HF5SIACK.cjs');
127
128
 
128
129
 
129
130
 
130
131
  var _chunkOHY2ZWUGcjs = require('./chunk-OHY2ZWUG.cjs');
131
132
 
132
133
 
133
- var _chunk2ITKVAIFcjs = require('./chunk-2ITKVAIF.cjs');
134
+ var _chunkZSO5GWGDcjs = require('./chunk-ZSO5GWGD.cjs');
134
135
 
135
136
 
136
137
 
@@ -144,7 +145,7 @@ var _chunkZ5HIWVDPcjs = require('./chunk-Z5HIWVDP.cjs');
144
145
  var _chunkWM6HL7E7cjs = require('./chunk-WM6HL7E7.cjs');
145
146
 
146
147
 
147
- var _chunkBD2U4ZL6cjs = require('./chunk-BD2U4ZL6.cjs');
148
+ var _chunkJQGDQO2Icjs = require('./chunk-JQGDQO2I.cjs');
148
149
 
149
150
 
150
151
  var _chunkIQXFRNY2cjs = require('./chunk-IQXFRNY2.cjs');
@@ -278,7 +279,7 @@ function getDocsTitle(docs) {
278
279
  }
279
280
  _chunkS3JO3N4Hcjs.__name.call(void 0, getDocsTitle, "getDocsTitle");
280
281
  function loadPages(contentDir, docs) {
281
- return _chunkAXYTGLF3cjs.discoverFarmDocsPages.call(void 0, contentDir, docs).map((page) => _chunkAXYTGLF3cjs.loadFarmDocsPage.call(void 0, contentDir, docs, page.slug)).filter((page) => Boolean(page)).sort((a, b) => a.href.localeCompare(b.href));
282
+ return _chunkQI7WQSMIcjs.discoverFarmDocsPages.call(void 0, contentDir, docs).map((page) => _chunkQI7WQSMIcjs.loadFarmDocsPage.call(void 0, contentDir, docs, page.slug)).filter((page) => Boolean(page)).sort((a, b) => a.href.localeCompare(b.href));
282
283
  }
283
284
  _chunkS3JO3N4Hcjs.__name.call(void 0, loadPages, "loadPages");
284
285
  function findSocialImagePath(html) {
@@ -299,14 +300,14 @@ async function addHandlerRoute(routes, pathname, handler, absolutePaths) {
299
300
  }
300
301
  _chunkS3JO3N4Hcjs.__name.call(void 0, addHandlerRoute, "addHandlerRoute");
301
302
  async function compileFarmDocsManifest(docs, options) {
302
- const contentDir = _chunkAXYTGLF3cjs.resolveFarmDocsContentDir.call(void 0, docs, options);
303
+ const contentDir = _chunkQI7WQSMIcjs.resolveFarmDocsContentDir.call(void 0, docs, options);
303
304
  const pages = loadPages(contentDir, docs);
304
305
  const absolutePaths = [
305
306
  _path2.default.resolve(options.root),
306
307
  _path2.default.resolve(contentDir),
307
308
  docs.configPath || ""
308
309
  ];
309
- const handler = _chunkAXYTGLF3cjs.createFarmDocsHandler.call(void 0, docs, {
310
+ const handler = _chunkQI7WQSMIcjs.createFarmDocsHandler.call(void 0, docs, {
310
311
  root: options.root,
311
312
  srcDir: options.srcDir,
312
313
  clientEntry: options.clientEntry,
@@ -314,7 +315,7 @@ async function compileFarmDocsManifest(docs, options) {
314
315
  fontStylesheetHref: options.fontStylesheetHref,
315
316
  globalStylesheetHref: options.globalStylesheetHref
316
317
  });
317
- const apiHandler = _chunkRYDW7GPRcjs.createFarmDocsAPIHandler.call(void 0, {
318
+ const apiHandler = _chunkNPFGGBM5cjs.createFarmDocsAPIHandler.call(void 0, {
318
319
  rootDir: options.root,
319
320
  srcDir: options.srcDir,
320
321
  docs
@@ -406,7 +407,7 @@ async function compileFarmDocsManifest(docs, options) {
406
407
  post: await compileResponse(postResponse, absolutePaths),
407
408
  search: {
408
409
  pages: pages.map((page) => ({
409
- ..._chunkAXYTGLF3cjs.toFarmDocsMarkdownPage.call(void 0, page),
410
+ ..._chunkQI7WQSMIcjs.toFarmDocsMarkdownPage.call(void 0, page),
410
411
  sourcePath: `farm-docs:${page.slug || "index"}`
411
412
  })),
412
413
  search: _nullishCoalesce(searchConfig, () => ( true)),
@@ -1486,7 +1487,7 @@ function hasFarmPluginRoutes(config) {
1486
1487
  _chunkS3JO3N4Hcjs.__name.call(void 0, hasFarmPluginRoutes, "hasFarmPluginRoutes");
1487
1488
  function farmServerRuntimePluginsMayHandlePath(config, pathname) {
1488
1489
  return (config.plugins || []).some(
1489
- (plugin) => _chunkZ5HIWVDPcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false && _chunkR7LCG3BTcjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, pathname)
1490
+ (plugin) => _chunkZ5HIWVDPcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false && _chunkUNSKL6BIcjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, pathname)
1490
1491
  );
1491
1492
  }
1492
1493
  _chunkS3JO3N4Hcjs.__name.call(void 0, farmServerRuntimePluginsMayHandlePath, "farmServerRuntimePluginsMayHandlePath");
@@ -1548,7 +1549,7 @@ async function buildUniversal(config, routeManager, apiRouteManager, serverRende
1548
1549
  assertFarmDocsRuntimeSupported(config, preset);
1549
1550
  const srcDir = config.srcDir || "src";
1550
1551
  const distDir = config.distDir || ".farm";
1551
- const deployOutputDir = _chunkO5DVPF3Rcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
1552
+ const deployOutputDir = _chunkKAERLFD3cjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
1552
1553
  const lifecyclePluginManager = options.pluginManager;
1553
1554
  const productionViteResultPromise = Promise.allSettled([
1554
1555
  Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkA6WIQH5Zcjs.loadFarmProductionVite.call(void 0, ))))
@@ -1567,7 +1568,7 @@ async function buildUniversal(config, routeManager, apiRouteManager, serverRende
1567
1568
  const routeRuntimeManifestResultPromise = Promise.allSettled([routeRuntimeManifestPromise]);
1568
1569
  const pageRoutes = [];
1569
1570
  for (const [pattern, entry] of routeManager.getRoutes()) {
1570
- const markdownSourcePath = entry.markdownSourcePath || (_chunk6K4SPQWLcjs.isFarmMarkdownPageFile.call(void 0, entry.modulePath) ? entry.modulePath : void 0);
1571
+ const markdownSourcePath = entry.markdownSourcePath || (_chunkHF5SIACKcjs.isFarmMarkdownPageFile.call(void 0, entry.modulePath) ? entry.modulePath : void 0);
1571
1572
  pageRoutes.push({
1572
1573
  pattern,
1573
1574
  modulePath: entry.modulePath,
@@ -1796,7 +1797,7 @@ async function mergeBuiltFontCss(outputDir, fontCssSource) {
1796
1797
  }
1797
1798
  const normalizedFontCss = typeof fontCss === "string" ? fontCss : Buffer.from(fontCss).toString("utf8");
1798
1799
  await fs.writeFile(fontCssPath, normalizedFontCss);
1799
- await fs.writeFile(clientCssPath, _chunkR7LCG3BTcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
1800
+ await fs.writeFile(clientCssPath, _chunkUNSKL6BIcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
1800
1801
  }
1801
1802
  _chunkS3JO3N4Hcjs.__name.call(void 0, mergeBuiltFontCss, "mergeBuiltFontCss");
1802
1803
  var _IncompleteClientBuildOutputError = class _IncompleteClientBuildOutputError extends Error {
@@ -1846,7 +1847,7 @@ function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, optio
1846
1847
  const key = `${_path2.default.resolve(root)}\0${mode}\0${options.asyncOwnerIslands === true}\0${_path2.default.resolve(modulePath)}`;
1847
1848
  let plan = cache.get(key);
1848
1849
  if (!plan) {
1849
- plan = _chunkR7LCG3BTcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
1850
+ plan = _chunkUNSKL6BIcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
1850
1851
  cache.set(key, plan);
1851
1852
  }
1852
1853
  return { ...plan, isolatedBoundaries: [...plan.isolatedBoundaries] };
@@ -1875,14 +1876,14 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
1875
1876
  `[Farm.js] isolated hydration kept route-wide because integration provider "${unsupportedIntegrationProvider.name}" does not declare supportsIsolatedHydration: true.`
1876
1877
  );
1877
1878
  }
1878
- const isolatedMode = _chunkR7LCG3BTcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
1879
+ const isolatedMode = _chunkUNSKL6BIcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
1879
1880
  _optionalChain([config, 'access', _35 => _35.experimental, 'optionalAccess', _36 => _36.isolatedClientHydration]),
1880
1881
  {
1881
1882
  serverComponents: _optionalChain([config, 'access', _37 => _37.experimental, 'optionalAccess', _38 => _38.serverComponents]) === true,
1882
1883
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
1883
1884
  }
1884
1885
  );
1885
- const planOptions = _chunkR7LCG3BTcjs.getFarmClientHydrationPlanOptions.call(void 0,
1886
+ const planOptions = _chunkUNSKL6BIcjs.getFarmClientHydrationPlanOptions.call(void 0,
1886
1887
  config.renderer,
1887
1888
  Boolean(unsupportedIntegrationProvider)
1888
1889
  );
@@ -1939,7 +1940,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
1939
1940
  ), "isAdapterDocsRoute");
1940
1941
  const syntheticDocsEntry = _optionalChain([config, 'access', _46 => _46.docs, 'optionalAccess', _47 => _47.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
1941
1942
  const syntheticDocsPatterns = syntheticDocsEntry ? syntheticDocsEntry === "/" ? ["/", "/[...slug]"] : [syntheticDocsEntry, `${syntheticDocsEntry}/[...slug]`] : [];
1942
- const markdownPagePlan = _chunkR7LCG3BTcjs.createMarkdownPageHydrationPlanner.call(void 0,
1943
+ const markdownPagePlan = _chunkUNSKL6BIcjs.createMarkdownPageHydrationPlanner.call(void 0,
1943
1944
  _chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkOHY2ZWUGcjs.resolveMdxConfig.call(void 0, config.mdx), root),
1944
1945
  root,
1945
1946
  isolatedMode,
@@ -1947,7 +1948,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
1947
1948
  );
1948
1949
  const routePlans = pageRoutes.map((route) => ({
1949
1950
  route,
1950
- metadata: _chunk6K4SPQWLcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath) ? markdownPagePlan() : getCachedClientModuleHydrationPlan(
1951
+ metadata: _chunkHF5SIACKcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath) ? markdownPagePlan() : getCachedClientModuleHydrationPlan(
1951
1952
  route.modulePath,
1952
1953
  root,
1953
1954
  isolatedMode,
@@ -1955,7 +1956,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
1955
1956
  planOptions
1956
1957
  )
1957
1958
  }));
1958
- _chunkR7LCG3BTcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
1959
+ _chunkUNSKL6BIcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
1959
1960
  clientLayouts.map((layout) => ({
1960
1961
  pattern: layout.pattern,
1961
1962
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -1987,7 +1988,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
1987
1988
  for (const layout of clientLayouts) {
1988
1989
  const matchesBuiltRoute = pageRoutes.some((route) => layoutAppliesToRoute(layout.pattern, route.pattern)) || Boolean(adapterDocsEntry && layoutAppliesToRoute(layout.pattern, adapterDocsEntry));
1989
1990
  if (matchesBuiltRoute && layout.suppressedAsyncHydration) {
1990
- _chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F ${_chunkR7LCG3BTcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`);
1991
+ _chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F ${_chunkUNSKL6BIcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`);
1991
1992
  }
1992
1993
  }
1993
1994
  if (isolatedMode === "analyze") {
@@ -2011,7 +2012,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2011
2012
  );
2012
2013
  if (metadata.suppressedAsyncHydration) {
2013
2014
  _chunk5QIKR7RRcjs.logger.warn(
2014
- `\u26A0\uFE0F ${_chunkR7LCG3BTcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
2015
+ `\u26A0\uFE0F ${_chunkUNSKL6BIcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
2015
2016
  );
2016
2017
  }
2017
2018
  if (metadata.shouldHydrate || metadata.hasIsolatedClientBoundaries || applicableClientLayouts.length > 0) {
@@ -2070,7 +2071,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2070
2071
  }
2071
2072
  const clientRouteSlots = routeSlots.filter((slot) => {
2072
2073
  try {
2073
- return _chunkR7LCG3BTcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root).shouldHydrate;
2074
+ return _chunkUNSKL6BIcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root).shouldHydrate;
2074
2075
  } catch (error) {
2075
2076
  _chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
2076
2077
  return false;
@@ -2100,7 +2101,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2100
2101
  config.trailingSlash,
2101
2102
  _chunkZ5HIWVDPcjs.getIntegrationProviders.call(void 0, config.integrations),
2102
2103
  config.basePath,
2103
- _chunkR7LCG3BTcjs.generateClientCachePersistenceCode.call(void 0, _chunkR7LCG3BTcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
2104
+ _chunkUNSKL6BIcjs.generateClientCachePersistenceCode.call(void 0, _chunkUNSKL6BIcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
2104
2105
  adapterOwnsDocsRuntime ? _chunk75WGQVQAcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
2105
2106
  );
2106
2107
  await fs.writeFile(clientEntryPath, clientHydrationCode);
@@ -2117,7 +2118,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2117
2118
  const postcssConfigPath = _path2.default.join(clientEntryDir, "postcss.config.cjs");
2118
2119
  await fs.writeFile(postcssConfigPath, "module.exports = { plugins: [] };\n");
2119
2120
  postcssSearchPath = clientEntryDir;
2120
- tailwindVitePlugin = await _chunkR7LCG3BTcjs.loadTailwindVitePlugin.call(void 0, {
2121
+ tailwindVitePlugin = await _chunkUNSKL6BIcjs.loadTailwindVitePlugin.call(void 0, {
2121
2122
  builder: productionVite.builder,
2122
2123
  announce: true
2123
2124
  });
@@ -2186,7 +2187,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2186
2187
  }
2187
2188
  },
2188
2189
  plugins: [
2189
- _chunkR7LCG3BTcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
2190
+ _chunkUNSKL6BIcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
2190
2191
  ...tailwindVitePlugin ? [tailwindVitePlugin] : [],
2191
2192
  ...rendererVitePlugins,
2192
2193
  ...config.vite.plugins || [],
@@ -2247,7 +2248,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2247
2248
  } : void 0,
2248
2249
  // Ensure React is bundled for client
2249
2250
  resolve: {
2250
- alias: _chunkR7LCG3BTcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
2251
+ alias: _chunkUNSKL6BIcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
2251
2252
  dedupe: [...config.renderer.dedupe || []]
2252
2253
  },
2253
2254
  // Optimize dependencies - exclude server-side code from client bundle
@@ -2260,7 +2261,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2260
2261
  ]
2261
2262
  }
2262
2263
  };
2263
- await viteBuild(_chunkR7LCG3BTcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite));
2264
+ await viteBuild(_chunkUNSKL6BIcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite));
2264
2265
  await mergeBuiltFontCss(outputDir);
2265
2266
  await validateClientBuildOutput(root, srcDir, outputDir);
2266
2267
  } finally {
@@ -3019,7 +3020,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
3019
3020
  direction: {}
3020
3021
  }, plugins = [], renderer = _chunkPSV6XKPOcjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule) {
3021
3022
  const toImportPath = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (targetPath) => targetPath.replace(/\\/g, "/"), "toImportPath");
3022
- const clientPluginEntry = _chunkR7LCG3BTcjs.generateFarmClientPluginEntryCode.call(void 0,
3023
+ const clientPluginEntry = _chunkUNSKL6BIcjs.generateFarmClientPluginEntryCode.call(void 0,
3023
3024
  plugins,
3024
3025
  root,
3025
3026
  srcDir,
@@ -3030,7 +3031,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
3030
3031
  import { createRoot, hydrateRoot } from "react-dom/client";` : appSetupPath ? `import React, { createRoot, hydrateRoot, configureApp as __farmConfigureApp } from ${JSON.stringify(renderer.client)};
3031
3032
  import __farmAppSetup from ${JSON.stringify(_chunk5QIKR7RRcjs.toPosixPath.call(void 0, appSetupPath))};
3032
3033
  __farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};`;
3033
- const providerClientCode = _chunkR7LCG3BTcjs.generateFarmIntegrationProviderClientCode.call(void 0,
3034
+ const providerClientCode = _chunkUNSKL6BIcjs.generateFarmIntegrationProviderClientCode.call(void 0,
3034
3035
  integrationProviders,
3035
3036
  root,
3036
3037
  _nullishCoalesce(renderer.componentExtensions, () => ( []))
@@ -3515,7 +3516,7 @@ function hasHydratableLayout(pathname) {
3515
3516
  });
3516
3517
  }
3517
3518
 
3518
- ${_chunkR7LCG3BTcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
3519
+ ${_chunkUNSKL6BIcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
3519
3520
  // Wrap a page element with applicable layouts
3520
3521
  function wrapWithLayouts(pageElement, pathname, params) {
3521
3522
  const layouts = getApplicableLayouts(pathname);
@@ -4430,7 +4431,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4430
4431
  _path2.default.join(postcssConfigDir, "postcss.config.cjs"),
4431
4432
  "module.exports = { plugins: [] };\n"
4432
4433
  );
4433
- tailwindVitePlugin = await _chunkR7LCG3BTcjs.loadTailwindVitePlugin.call(void 0, {
4434
+ tailwindVitePlugin = await _chunkUNSKL6BIcjs.loadTailwindVitePlugin.call(void 0, {
4434
4435
  builder: productionVite.builder,
4435
4436
  label: "for SSR"
4436
4437
  });
@@ -4526,7 +4527,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4526
4527
  }
4527
4528
  const middlewareRoutes = await discoverMiddlewareRoutes(appDirs);
4528
4529
  const instrumentationPath = _chunkKCMTCM6Icjs.resolveFarmInstrumentationFile.call(void 0, root, config.srcDir || "src");
4529
- const notFoundPath = _chunkR7LCG3BTcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
4530
+ const notFoundPath = _chunkUNSKL6BIcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
4530
4531
  if (notFoundPath) _chunk5QIKR7RRcjs.logger.info(`\u{1F4CB} Found custom 404 page: ${notFoundPath}`);
4531
4532
  layoutRoutes.sort((a, b) => {
4532
4533
  const depthA = a.pattern.split("/").filter(Boolean).length;
@@ -4549,7 +4550,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4549
4550
  const hasObservabilityHandler = !!config.observability && typeof config.observability === "object" && "onEvent" in config.observability;
4550
4551
  const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _56 => _56.mdx, 'optionalAccess', _57 => _57.components]));
4551
4552
  const hasMiddlewareConfig = hasFarmMiddlewareConfig(config.middleware);
4552
- const hasRouteContextConfig = _chunkO5DVPF3Rcjs.hasCustomFarmRouteContext.call(void 0, config);
4553
+ const hasRouteContextConfig = _chunkKAERLFD3cjs.hasCustomFarmRouteContext.call(void 0, config);
4553
4554
  const hasServerRuntimePlugins = hasFarmServerRuntimePlugins(config);
4554
4555
  const hasPluginRoutes = hasFarmPluginRoutes(config);
4555
4556
  const configModulePath = hasServerRuntimeIntegrations || hasObservabilityHandler || hasMdxComponentConfig || hasMiddlewareConfig || hasRouteContextConfig || hasServerRuntimePlugins || hasPluginRoutes || hasIntegrationProviders ? await findFarmConfigPath(root) : null;
@@ -4558,7 +4559,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4558
4559
  const hasConfiguredRuntimePlugins = Boolean(
4559
4560
  hasRuntimeConfigModule && (config.plugins || []).length > 0
4560
4561
  );
4561
- const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _58 => _58.docs, 'optionalAccess', _59 => _59.enabled]) && _chunkC5GUTBZKcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? _optionalChain([config, 'access', _60 => _60.docs, 'access', _61 => _61.adapter, 'optionalAccess', _62 => _62.server]) ? await _chunkRYDW7GPRcjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
4562
+ const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _58 => _58.docs, 'optionalAccess', _59 => _59.enabled]) && _chunkC5GUTBZKcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? _optionalChain([config, 'access', _60 => _60.docs, 'access', _61 => _61.adapter, 'optionalAccess', _62 => _62.server]) ? await _chunkNPFGGBM5cjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
4562
4563
  root,
4563
4564
  srcDir: config.srcDir,
4564
4565
  clientEntry: FARM_CLIENT_JS_SRC_PLACEHOLDER,
@@ -4708,7 +4709,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4708
4709
  __FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _68 => _68.env, 'optionalAccess', _69 => _69.public]) || {})
4709
4710
  },
4710
4711
  plugins: [
4711
- _chunkR7LCG3BTcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
4712
+ _chunkUNSKL6BIcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
4712
4713
  ...tailwindVitePlugin ? [tailwindVitePlugin] : [],
4713
4714
  ...rendererVitePlugins,
4714
4715
  ...config.vite.plugins || [],
@@ -4768,7 +4769,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4768
4769
  resolve: {
4769
4770
  alias: [
4770
4771
  ...shouldAliasReactServerToWebBuild(config.renderer, preset) ? [createFarmReactWebServerAlias(hasReactDomEdgeServerBuild(root))] : [],
4771
- ...Object.entries(_chunkR7LCG3BTcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
4772
+ ...Object.entries(_chunkUNSKL6BIcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
4772
4773
  ([find, replacement]) => ({ find, replacement })
4773
4774
  )
4774
4775
  ],
@@ -4776,7 +4777,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4776
4777
  dedupe: [...config.renderer.dedupe || []]
4777
4778
  }
4778
4779
  };
4779
- await viteBuild(_chunkR7LCG3BTcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
4780
+ await viteBuild(_chunkUNSKL6BIcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
4780
4781
  } finally {
4781
4782
  if (postcssConfigDir) {
4782
4783
  try {
@@ -5153,7 +5154,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
5153
5154
  `Integration provider components are not supported by the "${config.renderer.name}" renderer.`
5154
5155
  );
5155
5156
  }
5156
- const providerServerModules = _chunkR7LCG3BTcjs.generateFarmIntegrationProviderServerModules.call(void 0,
5157
+ const providerServerModules = _chunkUNSKL6BIcjs.generateFarmIntegrationProviderServerModules.call(void 0,
5157
5158
  renderedIntegrationProviders,
5158
5159
  config.root,
5159
5160
  _nullishCoalesce(config.renderer.componentExtensions, () => ( []))
@@ -5173,14 +5174,14 @@ function isolateFarmRouteServerPage(element) { return element; }`;
5173
5174
  const unsupportedIntegrationProvider = renderedIntegrationProviders.find(
5174
5175
  (provider) => provider.supportsIsolatedHydration !== true
5175
5176
  );
5176
- const isolatedHydrationMode = _chunkR7LCG3BTcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
5177
+ const isolatedHydrationMode = _chunkUNSKL6BIcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
5177
5178
  _optionalChain([config, 'access', _89 => _89.experimental, 'optionalAccess', _90 => _90.isolatedClientHydration]),
5178
5179
  {
5179
5180
  serverComponents: _optionalChain([config, 'access', _91 => _91.experimental, 'optionalAccess', _92 => _92.serverComponents]) === true,
5180
5181
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
5181
5182
  }
5182
5183
  );
5183
- const hydrationPlanOptions = _chunkR7LCG3BTcjs.getFarmClientHydrationPlanOptions.call(void 0,
5184
+ const hydrationPlanOptions = _chunkUNSKL6BIcjs.getFarmClientHydrationPlanOptions.call(void 0,
5184
5185
  config.renderer,
5185
5186
  Boolean(unsupportedIntegrationProvider)
5186
5187
  );
@@ -5195,7 +5196,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
5195
5196
  hydrationPlanOptions
5196
5197
  )
5197
5198
  }));
5198
- const markdownPagePlan = _chunkR7LCG3BTcjs.createMarkdownPageHydrationPlanner.call(void 0,
5199
+ const markdownPagePlan = _chunkUNSKL6BIcjs.createMarkdownPageHydrationPlanner.call(void 0,
5199
5200
  _chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkOHY2ZWUGcjs.resolveMdxConfig.call(void 0, config.mdx), config.root),
5200
5201
  config.root,
5201
5202
  isolatedHydrationMode,
@@ -5204,7 +5205,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
5204
5205
  const pageHydrationPlans = new Map(
5205
5206
  pageRoutes.map((route) => [
5206
5207
  route.modulePath,
5207
- _chunk6K4SPQWLcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath) ? markdownPagePlan() : getCachedClientModuleHydrationPlan(
5208
+ _chunkHF5SIACKcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath) ? markdownPagePlan() : getCachedClientModuleHydrationPlan(
5208
5209
  route.modulePath,
5209
5210
  config.root,
5210
5211
  isolatedHydrationMode,
@@ -5213,7 +5214,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
5213
5214
  )
5214
5215
  ])
5215
5216
  );
5216
- _chunkR7LCG3BTcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
5217
+ _chunkUNSKL6BIcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
5217
5218
  layoutHydrationPlans.map((layout) => ({
5218
5219
  pattern: layout.pattern,
5219
5220
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -5254,7 +5255,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
5254
5255
  }).map(({ route }) => route);
5255
5256
  orderedPageRoutes.forEach((route, index) => {
5256
5257
  const varName = `pageRoute${index}`;
5257
- if (_chunk6K4SPQWLcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) {
5258
+ if (_chunkHF5SIACKcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) {
5258
5259
  pageRegistrations.push(`
5259
5260
  {
5260
5261
  pattern: ${JSON.stringify(route.pattern)},
@@ -5696,7 +5697,7 @@ const farmResolvedRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs);
5696
5697
 
5697
5698
  function FarmDefault404Page() {
5698
5699
  return React.createElement(React.Fragment, null,
5699
- React.createElement("style", null, ${JSON.stringify(_chunkR7LCG3BTcjs.DEFAULT_NOT_FOUND_STYLES)}),
5700
+ React.createElement("style", null, ${JSON.stringify(_chunkUNSKL6BIcjs.DEFAULT_NOT_FOUND_STYLES)}),
5700
5701
  React.createElement("main", {
5701
5702
  className: "farm-default-not-found",
5702
5703
  "aria-labelledby": "farm-default-not-found-title",
@@ -5935,7 +5936,7 @@ const apiRoutes = ${apiRoutes.length > 0 ? "mergePluginAPIRoutes(" : ""}[${apiRe
5935
5936
  ]${apiRoutes.length > 0 ? `, configuredPlugins, ${JSON.stringify(apiRoutes.map(({ path: path7, methods }) => ({ path: path7, methods })))}, { bodySizeLimit: ${JSON.stringify(config.server.bodySizeLimit)} })` : ""};
5936
5937
  const farmLocalAPIBasePath = ${JSON.stringify(_chunkWPYFSQKKcjs.resolveFarmAPIServerBasePath.call(void 0, config.api))};
5937
5938
  const farmOpenAPIReference = ${JSON.stringify(openAPIReference)};
5938
- ${_optionalChain([config, 'access', _122 => _122.agent, 'optionalAccess', _123 => _123.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunk65P6OGYNcjs.resolveFarmApiCatalogInput.call(void 0, config))};
5939
+ ${_optionalChain([config, 'access', _122 => _122.agent, 'optionalAccess', _123 => _123.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkWJKVTJJRcjs.resolveFarmApiCatalogInput.call(void 0, config))};
5939
5940
  ` : ""}
5940
5941
  function isFarmLocalAPIPathname(pathname) {
5941
5942
  return farmLocalAPIBasePath !== "/" &&
@@ -6326,12 +6327,13 @@ function stripFarmDocumentWrappers(markup) {
6326
6327
  }
6327
6328
 
6328
6329
  // Farm's display:contents wrappers, and the head elements React 19 hoists in front of them
6329
- // (charset, viewport, preloads, titles) when the layout's <html> is not the render root.
6330
+ // (charset, viewport, preloads, titles, async scripts, precedence styles) when the layout's
6331
+ // <html> is not the render root. The hoistable pattern is shared with the dev renderer.
6330
6332
  function peelFarmDocumentPrefix(markup) {
6331
6333
  let inner = markup.replace(/^\\s+/, "");
6332
6334
  let hoisted = "";
6333
6335
  const wrapper = /^<div\\b[^>]*style=["']display\\s*:\\s*contents["'][^>]*>/i;
6334
- const hoistable = /^(?:<(?:meta|link|base)\\b[^>]*>|<title\\b[^>]*>[\\s\\S]*?<\\/title>)/i;
6336
+ const hoistable = /${_chunkUNSKL6BIcjs.HOISTED_HEAD_ELEMENT.source}/i;
6335
6337
  let match;
6336
6338
  while ((match = wrapper.exec(inner) || hoistable.exec(inner))) {
6337
6339
  if (!/^<div/i.test(match[0])) hoisted += match[0];
@@ -6843,7 +6845,7 @@ async function handleApplicationMetadataRouteRequest(request, routePathname) {
6843
6845
  const body = isLlmsFull && !(value instanceof Response)
6844
6846
  ? await renderFarmLlmsFullTxt(value, { origin: url.origin, readMarkdown: llmsContext.markdown })
6845
6847
  : value;
6846
- return createFarmMetadataRouteResponse(match.metadata.kind, body, routeModule, { method });
6848
+ return createFarmMetadataRouteResponse(match.metadata.kind, body, routeModule, { method, request });
6847
6849
  } catch (error) {
6848
6850
  console.error("Metadata route render failed:", error);
6849
6851
  return new Response("Internal Server Error", {
@@ -7562,6 +7564,7 @@ async function handleFarmRequestInContext(
7562
7564
  routeExists: (targetPathname) =>
7563
7565
  Boolean(matchPageRoute(getFarmRoutePathname(targetPathname))),
7564
7566
  renderPage: (targetRequest) => handleFarmRequest(targetRequest, adapterContext),
7567
+ apiServerBasePath: farmLocalAPIBasePath,
7565
7568
  });
7566
7569
  if (markdownResponse) {
7567
7570
  return applyProductionMiddlewareHeaders(markdownResponse, middlewareHeaders);
@@ -7646,9 +7649,9 @@ async function handleFarmRequestInContext(
7646
7649
  ` : ""}
7647
7650
  ${_optionalChain([config, 'access', _138 => _138.agent, 'optionalAccess', _139 => _139.apiCatalog]) ? `
7648
7651
  // agent.apiCatalog: list the OpenAPI and MCP surfaces at the RFC 9727 path.
7649
- if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunk65P6OGYNcjs.FARM_API_CATALOG_PATH)}) {
7652
+ if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkWJKVTJJRcjs.FARM_API_CATALOG_PATH)}) {
7650
7653
  return applyProductionMiddlewareHeaders(
7651
- createFarmApiCatalogResponse(request.method, farmApiCatalogInput),
7654
+ createFarmApiCatalogResponse(request.method, farmApiCatalogInput, request),
7652
7655
  middlewareHeaders,
7653
7656
  );
7654
7657
  }
@@ -7670,26 +7673,34 @@ async function handleFarmRequestInContext(
7670
7673
  if (farmGeneratedLlmsKind) {
7671
7674
  const llmsContext = createFarmLlmsTxtContext(request, farmGeneratedLlmsKind === "llms-full");
7672
7675
  const llmsOrigin = new URL(request.url).origin;
7673
- const renderLlmsFull = () =>
7676
+ // A page that times out is left out, the shared render is not reused, and
7677
+ // the partial response is not cacheable.
7678
+ let llmsComplete = true;
7679
+ const renderLlmsFull = (shared) =>
7674
7680
  renderFarmLlmsFullTxt(llmsContext.defaults, {
7675
7681
  origin: llmsOrigin,
7676
7682
  readMarkdown: llmsContext.markdown,
7683
+ onIncomplete: () => {
7684
+ llmsComplete = false;
7685
+ if (shared) shared.incomplete();
7686
+ },
7677
7687
  });
7678
7688
  // HEAD reads no pages, so it neither waits for nor fills the shared render.
7679
7689
  const llmsBody = farmGeneratedLlmsKind !== "llms-full"
7680
7690
  ? llmsContext.defaults
7681
7691
  : request.method.toUpperCase() === "HEAD"
7682
7692
  ? await renderLlmsFull()
7683
- : await farmLlmsFullRenderer(llmsOrigin, renderLlmsFull);
7684
- return applyProductionMiddlewareHeaders(
7685
- createFarmMetadataRouteResponse(
7686
- farmGeneratedLlmsKind,
7687
- llmsBody,
7688
- { revalidate: farmLlmsTxtConfig.revalidate },
7689
- { method: request.method },
7690
- ),
7691
- middlewareHeaders,
7693
+ : await farmLlmsFullRenderer(llmsOrigin, renderLlmsFull, (complete) => {
7694
+ llmsComplete = complete;
7695
+ });
7696
+ const llmsResponse = createFarmMetadataRouteResponse(
7697
+ farmGeneratedLlmsKind,
7698
+ llmsBody,
7699
+ { revalidate: llmsComplete ? farmLlmsTxtConfig.revalidate : 0 },
7700
+ { method: request.method, request },
7692
7701
  );
7702
+ if (!llmsComplete) llmsResponse.headers.set("cache-control", "no-store");
7703
+ return applyProductionMiddlewareHeaders(llmsResponse, middlewareHeaders);
7693
7704
  }
7694
7705
  ` : ""}
7695
7706
 
@@ -8954,7 +8965,7 @@ function getPhysicalPrerenderBypassReason(options) {
8954
8965
  }
8955
8966
  if (appMiddlewareMayHandlePath(middlewareRoutes, pathname)) return "app middleware";
8956
8967
  if (configMiddlewareMayHandlePath(config.middleware, pathname)) return "configured middleware";
8957
- if (_chunkO5DVPF3Rcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
8968
+ if (_chunkKAERLFD3cjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
8958
8969
  if (farmServerRuntimePluginsMayHandlePath(config, pathname)) return "server runtime plugin";
8959
8970
  const manifestEntry = getManifestPageEntry(routeRuntimeManifest, pathname);
8960
8971
  if (_optionalChain([manifestEntry, 'optionalAccess', _159 => _159.rendering]) === "dynamic") return "dynamic runtime manifest";
@@ -8980,7 +8991,7 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
8980
8991
  const nitroBuilder = nitroBuilderResult.value;
8981
8992
  const isVercel = preset === "vercel" || preset === "vercel-edge";
8982
8993
  const isCloudflareWorker = preset === "cloudflare-module";
8983
- const outputDir = _chunkO5DVPF3Rcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
8994
+ const outputDir = _chunkKAERLFD3cjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
8984
8995
  const runtimeServerOutputDir = isVercel ? _path2.default.join(outputDir, "functions", "__nitro.func") : _path2.default.join(outputDir, "server");
8985
8996
  const ssrOutputDir = _path2.default.join(root, distDir, "ssr");
8986
8997
  const imageRuntime = resolveImageRuntime(config, preset);
@@ -9232,7 +9243,12 @@ export default async function farmNitroEventHandler(event) {
9232
9243
  preset,
9233
9244
  ...farmNodeServerEntryPath ? { entry: farmNodeServerEntryPath } : {},
9234
9245
  rootDir: root,
9235
- serverDir: root,
9246
+ // Farm registers every handler, task, and plugin explicitly. Scanning the
9247
+ // project root would bundle an app's own `middleware/`, `api/`, `routes/`,
9248
+ // `plugins/`, or `tasks/` folder, or a root `server.ts` (common without a
9249
+ // `src` directory), as Nitro handlers outside Farm's aliases.
9250
+ serverDir: false,
9251
+ serverEntry: false,
9236
9252
  buildDir: _path2.default.join(root, distDir, ".nitro"),
9237
9253
  alias: resolveNitroInternalRuntimeAliases(root),
9238
9254
  compatibilityDate: "2024-12-01",
@@ -9338,16 +9354,19 @@ export default async function farmNitroEventHandler(event) {
9338
9354
  if (_optionalChain([config, 'access', _179 => _179.md, 'optionalAccess', _180 => _180.enabled])) {
9339
9355
  nitroInstance.hooks.hook("prerender:generate", (route) => {
9340
9356
  if (!route.contents || !_optionalChain([route, 'access', _181 => _181.contentType, 'optionalAccess', _182 => _182.toLowerCase, 'call', _183 => _183(), 'access', _184 => _184.includes, 'call', _185 => _185("html")])) return;
9341
- const alternatePath = _chunk2ITKVAIFcjs.getFarmMarkdownAlternatePath.call(void 0, config.md, route.route);
9357
+ const alternatePath = _chunkZSO5GWGDcjs.getFarmMarkdownAlternatePath.call(void 0, config.md, route.route);
9342
9358
  if (!alternatePath) return;
9343
9359
  const routeRule = nitroInstance.options.routeRules[route.route] || {};
9344
- nitroInstance.options.routeRules[route.route] = {
9345
- ...routeRule,
9346
- headers: {
9347
- ...routeRule.headers,
9348
- Link: `<${alternatePath}>; rel="alternate"; type="text/markdown"`
9349
- }
9350
- };
9360
+ const alternate = `<${alternatePath}>; rel="alternate"; type="text/markdown"`;
9361
+ const headers = { ...routeRule.headers };
9362
+ let link;
9363
+ for (const key of Object.keys(headers)) {
9364
+ if (key.toLowerCase() !== "link") continue;
9365
+ link = link ? `${link}, ${headers[key]}` : headers[key];
9366
+ delete headers[key];
9367
+ }
9368
+ headers.Link = !link ? alternate : link.includes(alternate) ? link : `${link}, ${alternate}`;
9369
+ nitroInstance.options.routeRules[route.route] = { ...routeRule, headers };
9351
9370
  });
9352
9371
  nitroInstance.hooks.hook("prerender:done", () => {
9353
9372
  nitroInstance.routing.sync();
@@ -9356,7 +9375,7 @@ export default async function farmNitroEventHandler(event) {
9356
9375
  if (config.security.csp && config.security.csp.nonce) {
9357
9376
  nitroInstance.hooks.hook("prerender:generate", async (route) => {
9358
9377
  if (!route.contents || !_optionalChain([route, 'access', _186 => _186.contentType, 'optionalAccess', _187 => _187.toLowerCase, 'call', _188 => _188(), 'access', _189 => _189.includes, 'call', _190 => _190("html")])) return;
9359
- const staticCsp = await _chunkE3RDL2DAcjs.applyFarmCspHashesToHtml.call(void 0, route.contents, config.security);
9378
+ const staticCsp = await _chunkDQMTHWPIcjs.applyFarmCspHashesToHtml.call(void 0, route.contents, config.security);
9360
9379
  if (!staticCsp) return;
9361
9380
  route.contents = staticCsp.html;
9362
9381
  const routeRule = nitroInstance.options.routeRules[route.route] || {};
@@ -9426,13 +9445,13 @@ export default async function farmNitroEventHandler(event) {
9426
9445
  }
9427
9446
  if (prerenderRoutes.length > 0) {
9428
9447
  _chunk5QIKR7RRcjs.logger.info(`\u{1F4C4} Pre-rendering ${prerenderRoutes.length} SSG page(s)`);
9429
- const previousPrerender = process.env[_chunkYA6LLTIJcjs.FARM_PRERENDER_ENV];
9430
- process.env[_chunkYA6LLTIJcjs.FARM_PRERENDER_ENV] = "1";
9448
+ const previousPrerender = process.env[_chunkND224OE2cjs.FARM_PRERENDER_ENV];
9449
+ process.env[_chunkND224OE2cjs.FARM_PRERENDER_ENV] = "1";
9431
9450
  try {
9432
9451
  await nitroBuilder.prerender(nitroInstance);
9433
9452
  } finally {
9434
- if (previousPrerender === void 0) delete process.env[_chunkYA6LLTIJcjs.FARM_PRERENDER_ENV];
9435
- else process.env[_chunkYA6LLTIJcjs.FARM_PRERENDER_ENV] = previousPrerender;
9453
+ if (previousPrerender === void 0) delete process.env[_chunkND224OE2cjs.FARM_PRERENDER_ENV];
9454
+ else process.env[_chunkND224OE2cjs.FARM_PRERENDER_ENV] = previousPrerender;
9436
9455
  }
9437
9456
  }
9438
9457
  const sharpRuntimeStagePromise = imageRuntime === "node" ? stageSharpRuntime(config, root, distDir, fs, preset) : Promise.resolve(null);
@@ -9623,7 +9642,7 @@ async function copyFarmDocsContentForVercel(config, root, nitroFuncDir, fs) {
9623
9642
  const docsContentDir = resolveBuildDocsContentDir(config, root);
9624
9643
  if (!docsContentDir) return;
9625
9644
  const bundledContentDir = _path2.default.join(nitroFuncDir, "farm-docs-content");
9626
- const lastModifiedManifest = _chunkAXYTGLF3cjs.createFarmDocsLastModifiedManifest.call(void 0, docsContentDir, {
9645
+ const lastModifiedManifest = _chunkQI7WQSMIcjs.createFarmDocsLastModifiedManifest.call(void 0, docsContentDir, {
9627
9646
  fallback: "now"
9628
9647
  });
9629
9648
  await fs.rm(bundledContentDir, { recursive: true, force: true });
@@ -9633,7 +9652,7 @@ async function copyFarmDocsContentForVercel(config, root, nitroFuncDir, fs) {
9633
9652
  force: true
9634
9653
  });
9635
9654
  await fs.writeFile(
9636
- _path2.default.join(bundledContentDir, _chunkAXYTGLF3cjs.FARM_DOCS_LAST_MODIFIED_MANIFEST),
9655
+ _path2.default.join(bundledContentDir, _chunkQI7WQSMIcjs.FARM_DOCS_LAST_MODIFIED_MANIFEST),
9637
9656
  `${JSON.stringify(lastModifiedManifest, null, 2)}
9638
9657
  `
9639
9658
  );
@@ -9710,7 +9729,7 @@ async function stageSharpRuntime(config, root, distDir, fs, preset) {
9710
9729
  try {
9711
9730
  await copyPackage("sharp", sharpRequire);
9712
9731
  if (!copiedPackages.has("sharp")) {
9713
- throw new Error(`Farm image optimization requires sharp. ${_chunkR7LCG3BTcjs.SHARP_INSTALL_HINT}`);
9732
+ throw new Error(`Farm image optimization requires sharp. ${_chunkUNSKL6BIcjs.SHARP_INSTALL_HINT}`);
9714
9733
  }
9715
9734
  } catch (error) {
9716
9735
  await fs.rm(stageDir, { recursive: true, force: true });
@@ -9924,7 +9943,7 @@ function createBuildTargetBaseline(config) {
9924
9943
  preset,
9925
9944
  distDir,
9926
9945
  outputDir,
9927
- outputWasDerived: outputDir === _chunkO5DVPF3Rcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
9946
+ outputWasDerived: outputDir === _chunkKAERLFD3cjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
9928
9947
  };
9929
9948
  }
9930
9949
  _chunkS3JO3N4Hcjs.__name.call(void 0, createBuildTargetBaseline, "createBuildTargetBaseline");
@@ -9934,8 +9953,8 @@ function resolveBuildTargets(config, options, baseline) {
9934
9953
  const distDir = config.distDir || ".farm";
9935
9954
  const outputWasReplaced = config.deploy.outputDir !== baseline.outputDir;
9936
9955
  const shouldRefreshDerivedOutput = baseline.outputWasDerived && !outputWasReplaced && (preset !== baseline.preset || distDir !== baseline.distDir);
9937
- const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkO5DVPF3Rcjs.getDeployTargetForPreset.call(void 0, preset);
9938
- const outputDir = shouldRefreshDerivedOutput ? _chunkO5DVPF3Rcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
9956
+ const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkKAERLFD3cjs.getDeployTargetForPreset.call(void 0, preset);
9957
+ const outputDir = shouldRefreshDerivedOutput ? _chunkKAERLFD3cjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
9939
9958
  return {
9940
9959
  root,
9941
9960
  preset,
@@ -9943,7 +9962,7 @@ function resolveBuildTargets(config, options, baseline) {
9943
9962
  distDir,
9944
9963
  deployTarget,
9945
9964
  outputDir,
9946
- deployOutputDir: _chunkO5DVPF3Rcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
9965
+ deployOutputDir: _chunkKAERLFD3cjs.resolveDeployOutputPath.call(void 0, root, outputDir)
9947
9966
  };
9948
9967
  }
9949
9968
  _chunkS3JO3N4Hcjs.__name.call(void 0, resolveBuildTargets, "resolveBuildTargets");
@@ -9952,7 +9971,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
9952
9971
  const targetBaseline = createBuildTargetBaseline(config);
9953
9972
  let targets;
9954
9973
  const productionViteResultPromise = options.universal === false ? void 0 : Promise.allSettled([Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkA6WIQH5Zcjs.loadFarmProductionVite.call(void 0, ))))]);
9955
- const pluginManager = new (0, _chunkR7LCG3BTcjs.PluginManager)({
9974
+ const pluginManager = new (0, _chunkUNSKL6BIcjs.PluginManager)({
9956
9975
  config,
9957
9976
  isDev: false,
9958
9977
  isProd: true
@@ -9981,7 +10000,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
9981
10000
  };
9982
10001
  config = {
9983
10002
  ...config,
9984
- images: _chunkR7LCG3BTcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
10003
+ images: _chunkUNSKL6BIcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
9985
10004
  root: targets.root,
9986
10005
  preset: targets.preset
9987
10006
  })
@@ -10009,7 +10028,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
10009
10028
  root,
10010
10029
  rendererBuild.signal
10011
10030
  );
10012
- const farmApp = _chunkR7LCG3BTcjs.createFarmApp.call(void 0, config, projectModuleServer);
10031
+ const farmApp = _chunkUNSKL6BIcjs.createFarmApp.call(void 0, config, projectModuleServer);
10013
10032
  await farmApp.initialize();
10014
10033
  const routeManager = farmApp.getRouteManager();
10015
10034
  const serverRenderer = farmApp.getServerRenderer();
@@ -10020,7 +10039,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
10020
10039
  plugins: config.plugins,
10021
10040
  extraRoutes: [
10022
10041
  ..._optionalChain([config, 'access', _197 => _197.openapi, 'optionalAccess', _198 => _198.enabled]) && config.openapi.route ? [config.openapi.route] : [],
10023
- ..._chunkAXYTGLF3cjs.getFarmDocsRouteTypeEntries.call(void 0, config.docs)
10042
+ ..._chunkQI7WQSMIcjs.getFarmDocsRouteTypeEntries.call(void 0, config.docs)
10024
10043
  ],
10025
10044
  suppressLintOnLink: config.suppressLintOnLink,
10026
10045
  componentExtensions: config.renderer.componentExtensions,
@@ -10029,7 +10048,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
10029
10048
  const message = error instanceof Error ? error.message : String(error);
10030
10049
  _chunk5QIKR7RRcjs.logger.warn(`Route type generation failed (farm.d.ts may be stale): ${message}`);
10031
10050
  });
10032
- const apiRouteManager = new (0, _chunkBD2U4ZL6cjs.APIRouteManager)(
10051
+ const apiRouteManager = new (0, _chunkJQGDQO2Icjs.APIRouteManager)(
10033
10052
  _chunkVPTDD5XFcjs.getFarmAppDirectories.call(void 0, config),
10034
10053
  projectModuleServer,
10035
10054
  {
@@ -10116,7 +10135,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
10116
10135
  ssr: true,
10117
10136
  buildLifetime
10118
10137
  });
10119
- const viteConfig = _chunkR7LCG3BTcjs.mergeFarmViteConfig.call(void 0,
10138
+ const viteConfig = _chunkUNSKL6BIcjs.mergeFarmViteConfig.call(void 0,
10120
10139
  {
10121
10140
  root,
10122
10141
  appType: "custom",
@@ -10128,7 +10147,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
10128
10147
  },
10129
10148
  plugins: [
10130
10149
  ...rendererVitePlugins,
10131
- _chunkR7LCG3BTcjs.farmFontImportsPlugin.call(void 0, {
10150
+ _chunkUNSKL6BIcjs.farmFontImportsPlugin.call(void 0, {
10132
10151
  root,
10133
10152
  basePath: config.basePath,
10134
10153
  publicDir: config.publicDir
@@ -10140,7 +10159,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
10140
10159
  hmr: false
10141
10160
  },
10142
10161
  resolve: {
10143
- alias: _chunkR7LCG3BTcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
10162
+ alias: _chunkUNSKL6BIcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
10144
10163
  dedupe: [...config.renderer.dedupe || []]
10145
10164
  },
10146
10165
  optimizeDeps: {
@@ -10248,7 +10267,7 @@ function resolveLegacyPageEntry(config, root, srcDir) {
10248
10267
  _chunkS3JO3N4Hcjs.__name.call(void 0, resolveLegacyPageEntry, "resolveLegacyPageEntry");
10249
10268
  async function buildNitro(config, routeManager, apiRouteManager, serverRenderer, preset, root, distDir, pluginManager) {
10250
10269
  const [{ createNitroConfig }, { createNitro, build: nitroBuild }] = await Promise.all([
10251
- import("./nitro-KQDU7CFE.cjs"),
10270
+ import("./nitro-VYDZGYFY.cjs"),
10252
10271
  import("nitro/builder")
10253
10272
  ]);
10254
10273
  let nitroConfig = await createNitroConfig(
@@ -10261,7 +10280,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
10261
10280
  if (pluginManager) {
10262
10281
  nitroConfig = await pluginManager.runHookSerial("beforeNitroBuild", nitroConfig);
10263
10282
  }
10264
- const outputDir = _chunkO5DVPF3Rcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
10283
+ const outputDir = _chunkKAERLFD3cjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
10265
10284
  const serverOutputDir = _path2.default.join(outputDir, "server");
10266
10285
  const publicOutputDir = _path2.default.join(outputDir, "public");
10267
10286
  const { mkdir, cp } = await import("fs/promises");
@@ -10332,7 +10351,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
10332
10351
  root,
10333
10352
  preset,
10334
10353
  distDir,
10335
- outputDir: _chunkO5DVPF3Rcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
10354
+ outputDir: _chunkKAERLFD3cjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
10336
10355
  });
10337
10356
  }
10338
10357
  }