@farm.js/core 0.1.18 → 0.1.19

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 (63) hide show
  1. package/dist/app-markdown.cjs +4 -4
  2. package/dist/app-markdown.mjs +3 -3
  3. package/dist/{chunk-EN7WTEAY.mjs → chunk-2ANEVVF7.mjs} +1 -1
  4. package/dist/{chunk-3XG26Z3J.mjs → chunk-2GNATDDE.mjs} +1 -1
  5. package/dist/{chunk-ZCNJKLA2.mjs → chunk-7BC6GAL7.mjs} +1 -1
  6. package/dist/{chunk-J2OP5GG3.cjs → chunk-A777V5WU.cjs} +28 -28
  7. package/dist/{chunk-E2BMSZ2W.cjs → chunk-AH7HOAQ3.cjs} +2 -2
  8. package/dist/{chunk-TWGMSEHX.cjs → chunk-BBVSJVBZ.cjs} +88 -13
  9. package/dist/{chunk-AWRISO2H.cjs → chunk-E2ROOWQC.cjs} +30 -4
  10. package/dist/{chunk-KPNVGRBL.mjs → chunk-FVZGEVTO.mjs} +7 -7
  11. package/dist/{chunk-WZMNW2IW.cjs → chunk-GPVTX3HT.cjs} +2 -2
  12. package/dist/{chunk-DHDVMXYK.mjs → chunk-HALDNTIV.mjs} +30 -4
  13. package/dist/{chunk-5QOEPUYE.mjs → chunk-HSDL2AUR.mjs} +1 -1
  14. package/dist/{chunk-BSTRERPP.cjs → chunk-I5YBCWQ6.cjs} +2 -2
  15. package/dist/{chunk-TYQUSXUG.cjs → chunk-ISTFC3MZ.cjs} +4 -4
  16. package/dist/{chunk-TNBAYAWO.mjs → chunk-L4DVIHOC.mjs} +1 -1
  17. package/dist/{chunk-XWAYMDLB.mjs → chunk-MVUREHPN.mjs} +1 -1
  18. package/dist/{chunk-6VQIKZZO.mjs → chunk-N255VYFP.mjs} +1 -1
  19. package/dist/{chunk-GNEO2XOF.cjs → chunk-NBAHDVOJ.cjs} +4 -4
  20. package/dist/{chunk-UN5GHC5V.cjs → chunk-NSFC3LHB.cjs} +68 -68
  21. package/dist/{chunk-SXHV42UQ.mjs → chunk-OFEY6KHO.mjs} +88 -13
  22. package/dist/{chunk-OIEOCXKG.cjs → chunk-OYDRPBBV.cjs} +2 -2
  23. package/dist/{chunk-76DG3LF3.mjs → chunk-PGQBL5DN.mjs} +1 -1
  24. package/dist/{chunk-UTBVHYS3.mjs → chunk-QBPKKQTD.mjs} +2 -2
  25. package/dist/{chunk-NWOD6NIT.cjs → chunk-RFYO7QUD.cjs} +1 -1
  26. package/dist/{chunk-B4CH33IG.cjs → chunk-S27FMYAM.cjs} +13 -13
  27. package/dist/{chunk-NV3A5DXM.cjs → chunk-U5BMPGS3.cjs} +10 -10
  28. package/dist/{chunk-QGVJVSNX.mjs → chunk-V4AICMQA.mjs} +2 -2
  29. package/dist/{chunk-GYKJCFTS.mjs → chunk-WZXN4R5Y.mjs} +24 -13
  30. package/dist/{chunk-IKNRN4VS.cjs → chunk-XDGMADQM.cjs} +100 -89
  31. package/dist/{devtools-OUIPHVV6.cjs → devtools-5KGPDVKL.cjs} +4 -4
  32. package/dist/{devtools-UFVTMQX5.mjs → devtools-FY5R7TQ4.mjs} +3 -3
  33. package/dist/docs.cjs +6 -6
  34. package/dist/docs.mjs +5 -5
  35. package/dist/index.cjs +15 -15
  36. package/dist/index.mjs +14 -14
  37. package/dist/internal/app-markdown-runtime.cjs +3 -3
  38. package/dist/internal/app-markdown-runtime.mjs +2 -2
  39. package/dist/internal/build-runtime.cjs +14 -14
  40. package/dist/internal/build-runtime.mjs +13 -13
  41. package/dist/internal/cli-runtime.cjs +8 -8
  42. package/dist/internal/cli-runtime.mjs +7 -7
  43. package/dist/internal/client-error-overlay.cjs +4 -4
  44. package/dist/internal/client-error-overlay.mjs +1 -1
  45. package/dist/internal/config-runtime.cjs +4 -4
  46. package/dist/internal/config-runtime.mjs +3 -3
  47. package/dist/internal/product-telemetry-runtime.cjs +2 -2
  48. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  49. package/dist/internal/production-runtime.cjs +4 -4
  50. package/dist/internal/production-runtime.mjs +3 -3
  51. package/dist/markdown.cjs +2 -2
  52. package/dist/markdown.mjs +1 -1
  53. package/dist/plugin.cjs +10 -10
  54. package/dist/plugin.mjs +9 -9
  55. package/dist/{schema-dev-notice-2IE2F2XI.mjs → schema-dev-notice-O67CPXJ6.mjs} +1 -1
  56. package/dist/{schema-dev-notice-MXSZMVDG.cjs → schema-dev-notice-Y7MQEFGN.cjs} +3 -3
  57. package/dist/server.cjs +25 -25
  58. package/dist/server.mjs +11 -11
  59. package/dist/version.cjs +2 -2
  60. package/dist/version.mjs +1 -1
  61. package/dist/vite.cjs +10 -10
  62. package/dist/vite.mjs +9 -9
  63. package/package.json +1 -1
@@ -7,7 +7,7 @@ var _chunkMT763TDWcjs = require('./chunk-MT763TDW.cjs');
7
7
 
8
8
 
9
9
 
10
- var _chunkB4CH33IGcjs = require('./chunk-B4CH33IG.cjs');
10
+ var _chunkS27FMYAMcjs = require('./chunk-S27FMYAM.cjs');
11
11
 
12
12
 
13
13
 
@@ -17,7 +17,7 @@ var _chunkB4CH33IGcjs = require('./chunk-B4CH33IG.cjs');
17
17
 
18
18
 
19
19
 
20
- var _chunkGNEO2XOFcjs = require('./chunk-GNEO2XOF.cjs');
20
+ var _chunkNBAHDVOJcjs = require('./chunk-NBAHDVOJ.cjs');
21
21
 
22
22
 
23
23
 
@@ -31,7 +31,7 @@ var _chunkYA6LLTIJcjs = require('./chunk-YA6LLTIJ.cjs');
31
31
 
32
32
 
33
33
 
34
- var _chunkNV3A5DXMcjs = require('./chunk-NV3A5DXM.cjs');
34
+ var _chunkU5BMPGS3cjs = require('./chunk-U5BMPGS3.cjs');
35
35
 
36
36
 
37
37
  var _chunkRTHIVJ2Gcjs = require('./chunk-RTHIVJ2G.cjs');
@@ -64,13 +64,13 @@ var _chunk2SJ4RQ6Pcjs = require('./chunk-2SJ4RQ6P.cjs');
64
64
 
65
65
 
66
66
 
67
- var _chunkIKNRN4VScjs = require('./chunk-IKNRN4VS.cjs');
67
+ var _chunkXDGMADQMcjs = require('./chunk-XDGMADQM.cjs');
68
68
 
69
69
 
70
70
 
71
71
 
72
72
 
73
- var _chunkWZMNW2IWcjs = require('./chunk-WZMNW2IW.cjs');
73
+ var _chunkGPVTX3HTcjs = require('./chunk-GPVTX3HT.cjs');
74
74
 
75
75
 
76
76
  var _chunkCXP5U3RWcjs = require('./chunk-CXP5U3RW.cjs');
@@ -97,7 +97,7 @@ var _chunkY4YMF2NQcjs = require('./chunk-Y4YMF2NQ.cjs');
97
97
  var _chunkTFAXUHWXcjs = require('./chunk-TFAXUHWX.cjs');
98
98
 
99
99
 
100
- var _chunkTYQUSXUGcjs = require('./chunk-TYQUSXUG.cjs');
100
+ var _chunkISTFC3MZcjs = require('./chunk-ISTFC3MZ.cjs');
101
101
 
102
102
 
103
103
 
@@ -109,7 +109,7 @@ var _chunk6EXBPJ24cjs = require('./chunk-6EXBPJ24.cjs');
109
109
  var _chunkVEKFLAQMcjs = require('./chunk-VEKFLAQM.cjs');
110
110
 
111
111
 
112
- var _chunkE2BMSZ2Wcjs = require('./chunk-E2BMSZ2W.cjs');
112
+ var _chunkAH7HOAQ3cjs = require('./chunk-AH7HOAQ3.cjs');
113
113
 
114
114
 
115
115
 
@@ -258,7 +258,7 @@ function getDocsTitle(docs) {
258
258
  }
259
259
  _chunkS3JO3N4Hcjs.__name.call(void 0, getDocsTitle, "getDocsTitle");
260
260
  function loadPages(contentDir, docs) {
261
- return _chunkGNEO2XOFcjs.discoverFarmDocsPages.call(void 0, contentDir, docs).map((page) => _chunkGNEO2XOFcjs.loadFarmDocsPage.call(void 0, contentDir, docs, page.slug)).filter((page) => Boolean(page)).sort((a, b) => a.href.localeCompare(b.href));
261
+ return _chunkNBAHDVOJcjs.discoverFarmDocsPages.call(void 0, contentDir, docs).map((page) => _chunkNBAHDVOJcjs.loadFarmDocsPage.call(void 0, contentDir, docs, page.slug)).filter((page) => Boolean(page)).sort((a, b) => a.href.localeCompare(b.href));
262
262
  }
263
263
  _chunkS3JO3N4Hcjs.__name.call(void 0, loadPages, "loadPages");
264
264
  function findSocialImagePath(html) {
@@ -279,14 +279,14 @@ async function addHandlerRoute(routes, pathname, handler, absolutePaths) {
279
279
  }
280
280
  _chunkS3JO3N4Hcjs.__name.call(void 0, addHandlerRoute, "addHandlerRoute");
281
281
  async function compileFarmDocsManifest(docs, options) {
282
- const contentDir = _chunkGNEO2XOFcjs.resolveFarmDocsContentDir.call(void 0, docs, options);
282
+ const contentDir = _chunkNBAHDVOJcjs.resolveFarmDocsContentDir.call(void 0, docs, options);
283
283
  const pages = loadPages(contentDir, docs);
284
284
  const absolutePaths = [
285
285
  _path2.default.resolve(options.root),
286
286
  _path2.default.resolve(contentDir),
287
287
  docs.configPath || ""
288
288
  ];
289
- const handler = _chunkGNEO2XOFcjs.createFarmDocsHandler.call(void 0, docs, {
289
+ const handler = _chunkNBAHDVOJcjs.createFarmDocsHandler.call(void 0, docs, {
290
290
  root: options.root,
291
291
  srcDir: options.srcDir,
292
292
  clientEntry: options.clientEntry,
@@ -294,7 +294,7 @@ async function compileFarmDocsManifest(docs, options) {
294
294
  fontStylesheetHref: options.fontStylesheetHref,
295
295
  globalStylesheetHref: options.globalStylesheetHref
296
296
  });
297
- const apiHandler = _chunkB4CH33IGcjs.createFarmDocsAPIHandler.call(void 0, {
297
+ const apiHandler = _chunkS27FMYAMcjs.createFarmDocsAPIHandler.call(void 0, {
298
298
  rootDir: options.root,
299
299
  srcDir: options.srcDir,
300
300
  docs
@@ -386,7 +386,7 @@ async function compileFarmDocsManifest(docs, options) {
386
386
  post: await compileResponse(postResponse, absolutePaths),
387
387
  search: {
388
388
  pages: pages.map((page) => ({
389
- ..._chunkGNEO2XOFcjs.toFarmDocsMarkdownPage.call(void 0, page),
389
+ ..._chunkNBAHDVOJcjs.toFarmDocsMarkdownPage.call(void 0, page),
390
390
  sourcePath: `farm-docs:${page.slug || "index"}`
391
391
  })),
392
392
  search: _nullishCoalesce(searchConfig, () => ( true)),
@@ -406,7 +406,7 @@ async function createFarmRouteRuntimeManifest(options) {
406
406
  const routes = [];
407
407
  for (const [pattern, entry] of options.routeManager.getRoutes()) {
408
408
  const routeModule = await options.routeManager.loadRouteModule(entry.modulePath);
409
- const rendering = await _chunkWZMNW2IWcjs.resolveRouteRenderingConfigFromFile.call(void 0, routeModule, entry.modulePath);
409
+ const rendering = await _chunkGPVTX3HTcjs.resolveRouteRenderingConfigFromFile.call(void 0, routeModule, entry.modulePath);
410
410
  const runtimeConfig = await options.routeManager.resolveRouteRuntimeConfig(pattern);
411
411
  routes.push({
412
412
  kind: "page",
@@ -1508,7 +1508,7 @@ function hasFarmPluginRoutes(config) {
1508
1508
  _chunkS3JO3N4Hcjs.__name.call(void 0, hasFarmPluginRoutes, "hasFarmPluginRoutes");
1509
1509
  function farmServerRuntimePluginsMayHandlePath(config, pathname) {
1510
1510
  return (config.plugins || []).some(
1511
- (plugin) => _chunkZ5HIWVDPcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false && _chunkIKNRN4VScjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, pathname)
1511
+ (plugin) => _chunkZ5HIWVDPcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false && _chunkXDGMADQMcjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, pathname)
1512
1512
  );
1513
1513
  }
1514
1514
  _chunkS3JO3N4Hcjs.__name.call(void 0, farmServerRuntimePluginsMayHandlePath, "farmServerRuntimePluginsMayHandlePath");
@@ -1570,7 +1570,7 @@ async function buildUniversal(config, routeManager, apiRouteManager, serverRende
1570
1570
  assertFarmDocsRuntimeSupported(config, preset);
1571
1571
  const srcDir = config.srcDir || "src";
1572
1572
  const distDir = config.distDir || ".farm";
1573
- const deployOutputDir = _chunkNV3A5DXMcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
1573
+ const deployOutputDir = _chunkU5BMPGS3cjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
1574
1574
  const lifecyclePluginManager = options.pluginManager;
1575
1575
  const productionViteResultPromise = Promise.allSettled([
1576
1576
  Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkA6WIQH5Zcjs.loadFarmProductionVite.call(void 0, ))))
@@ -1587,7 +1587,7 @@ async function buildUniversal(config, routeManager, apiRouteManager, serverRende
1587
1587
  const routeRuntimeManifestResultPromise = Promise.allSettled([routeRuntimeManifestPromise]);
1588
1588
  const pageRoutes = [];
1589
1589
  for (const [pattern, entry] of routeManager.getRoutes()) {
1590
- const markdownSourcePath = entry.markdownSourcePath || (_chunkE2BMSZ2Wcjs.isFarmMarkdownPageFile.call(void 0, entry.modulePath) ? entry.modulePath : void 0);
1590
+ const markdownSourcePath = entry.markdownSourcePath || (_chunkAH7HOAQ3cjs.isFarmMarkdownPageFile.call(void 0, entry.modulePath) ? entry.modulePath : void 0);
1591
1591
  pageRoutes.push({
1592
1592
  pattern,
1593
1593
  modulePath: entry.modulePath,
@@ -1811,7 +1811,7 @@ async function mergeBuiltFontCss(outputDir, fontCssSource) {
1811
1811
  }
1812
1812
  const normalizedFontCss = typeof fontCss === "string" ? fontCss : Buffer.from(fontCss).toString("utf8");
1813
1813
  await fs.writeFile(fontCssPath, normalizedFontCss);
1814
- await fs.writeFile(clientCssPath, _chunkIKNRN4VScjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
1814
+ await fs.writeFile(clientCssPath, _chunkXDGMADQMcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
1815
1815
  }
1816
1816
  _chunkS3JO3N4Hcjs.__name.call(void 0, mergeBuiltFontCss, "mergeBuiltFontCss");
1817
1817
  var _IncompleteClientBuildOutputError = class _IncompleteClientBuildOutputError extends Error {
@@ -1861,7 +1861,7 @@ function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, optio
1861
1861
  const key = `${_path2.default.resolve(root)}\0${mode}\0${options.asyncOwnerIslands === true}\0${_path2.default.resolve(modulePath)}`;
1862
1862
  let plan = cache.get(key);
1863
1863
  if (!plan) {
1864
- plan = _chunkIKNRN4VScjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
1864
+ plan = _chunkXDGMADQMcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
1865
1865
  cache.set(key, plan);
1866
1866
  }
1867
1867
  return { ...plan, isolatedBoundaries: [...plan.isolatedBoundaries] };
@@ -1890,14 +1890,14 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
1890
1890
  `[Farm.js] isolated hydration kept route-wide because integration provider "${unsupportedIntegrationProvider.name}" does not declare supportsIsolatedHydration: true.`
1891
1891
  );
1892
1892
  }
1893
- const isolatedMode = _chunkIKNRN4VScjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
1893
+ const isolatedMode = _chunkXDGMADQMcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
1894
1894
  _optionalChain([config, 'access', _31 => _31.experimental, 'optionalAccess', _32 => _32.isolatedClientHydration]),
1895
1895
  {
1896
1896
  serverComponents: _optionalChain([config, 'access', _33 => _33.experimental, 'optionalAccess', _34 => _34.serverComponents]) === true,
1897
1897
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
1898
1898
  }
1899
1899
  );
1900
- const planOptions = _chunkIKNRN4VScjs.getFarmClientHydrationPlanOptions.call(void 0,
1900
+ const planOptions = _chunkXDGMADQMcjs.getFarmClientHydrationPlanOptions.call(void 0,
1901
1901
  config.renderer,
1902
1902
  Boolean(unsupportedIntegrationProvider)
1903
1903
  );
@@ -1954,7 +1954,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
1954
1954
  ), "isAdapterDocsRoute");
1955
1955
  const syntheticDocsEntry = _optionalChain([config, 'access', _42 => _42.docs, 'optionalAccess', _43 => _43.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
1956
1956
  const syntheticDocsPatterns = syntheticDocsEntry ? syntheticDocsEntry === "/" ? ["/", "/[...slug]"] : [syntheticDocsEntry, `${syntheticDocsEntry}/[...slug]`] : [];
1957
- const markdownPagePlan = _chunkIKNRN4VScjs.createMarkdownPageHydrationPlanner.call(void 0,
1957
+ const markdownPagePlan = _chunkXDGMADQMcjs.createMarkdownPageHydrationPlanner.call(void 0,
1958
1958
  _chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkOHY2ZWUGcjs.resolveMdxConfig.call(void 0, config.mdx), root),
1959
1959
  root,
1960
1960
  isolatedMode,
@@ -1962,7 +1962,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
1962
1962
  );
1963
1963
  const routePlans = pageRoutes.map((route) => ({
1964
1964
  route,
1965
- metadata: _chunkE2BMSZ2Wcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath) ? markdownPagePlan() : getCachedClientModuleHydrationPlan(
1965
+ metadata: _chunkAH7HOAQ3cjs.isFarmMarkdownPageFile.call(void 0, route.modulePath) ? markdownPagePlan() : getCachedClientModuleHydrationPlan(
1966
1966
  route.modulePath,
1967
1967
  root,
1968
1968
  isolatedMode,
@@ -1970,7 +1970,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
1970
1970
  planOptions
1971
1971
  )
1972
1972
  }));
1973
- _chunkIKNRN4VScjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
1973
+ _chunkXDGMADQMcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
1974
1974
  clientLayouts.map((layout) => ({
1975
1975
  pattern: layout.pattern,
1976
1976
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -2002,7 +2002,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2002
2002
  for (const layout of clientLayouts) {
2003
2003
  const matchesBuiltRoute = pageRoutes.some((route) => layoutAppliesToRoute(layout.pattern, route.pattern)) || Boolean(adapterDocsEntry && layoutAppliesToRoute(layout.pattern, adapterDocsEntry));
2004
2004
  if (matchesBuiltRoute && layout.suppressedAsyncHydration) {
2005
- _chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F ${_chunkIKNRN4VScjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`);
2005
+ _chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F ${_chunkXDGMADQMcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`);
2006
2006
  }
2007
2007
  }
2008
2008
  if (isolatedMode === "analyze") {
@@ -2026,7 +2026,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2026
2026
  );
2027
2027
  if (metadata.suppressedAsyncHydration) {
2028
2028
  _chunk5QIKR7RRcjs.logger.warn(
2029
- `\u26A0\uFE0F ${_chunkIKNRN4VScjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
2029
+ `\u26A0\uFE0F ${_chunkXDGMADQMcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
2030
2030
  );
2031
2031
  }
2032
2032
  if (metadata.shouldHydrate || metadata.hasIsolatedClientBoundaries || applicableClientLayouts.length > 0) {
@@ -2085,7 +2085,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2085
2085
  }
2086
2086
  const clientRouteSlots = routeSlots.filter((slot) => {
2087
2087
  try {
2088
- return _chunkIKNRN4VScjs.getClientModuleMetadata.call(void 0, slot.modulePath, root).shouldHydrate;
2088
+ return _chunkXDGMADQMcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root).shouldHydrate;
2089
2089
  } catch (error) {
2090
2090
  _chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
2091
2091
  return false;
@@ -2115,7 +2115,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2115
2115
  config.trailingSlash,
2116
2116
  _chunkZ5HIWVDPcjs.getIntegrationProviders.call(void 0, config.integrations),
2117
2117
  config.basePath,
2118
- _chunkIKNRN4VScjs.generateClientCachePersistenceCode.call(void 0, _chunkIKNRN4VScjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache))
2118
+ _chunkXDGMADQMcjs.generateClientCachePersistenceCode.call(void 0, _chunkXDGMADQMcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache))
2119
2119
  );
2120
2120
  await fs.writeFile(clientEntryPath, clientHydrationCode);
2121
2121
  const hasScopedPostcssConfig = hasProjectPostcssConfig(root);
@@ -2204,7 +2204,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2204
2204
  }
2205
2205
  },
2206
2206
  plugins: [
2207
- _chunkIKNRN4VScjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
2207
+ _chunkXDGMADQMcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
2208
2208
  ...tailwindVitePlugin ? [tailwindVitePlugin] : [],
2209
2209
  ...rendererVitePlugins,
2210
2210
  ...config.vite.plugins || [],
@@ -2265,7 +2265,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2265
2265
  } : void 0,
2266
2266
  // Ensure React is bundled for client
2267
2267
  resolve: {
2268
- alias: _chunkIKNRN4VScjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
2268
+ alias: _chunkXDGMADQMcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
2269
2269
  dedupe: [...config.renderer.dedupe || []]
2270
2270
  },
2271
2271
  // Optimize dependencies - exclude server-side code from client bundle
@@ -2278,7 +2278,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2278
2278
  ]
2279
2279
  }
2280
2280
  };
2281
- await viteBuild(_chunkIKNRN4VScjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite));
2281
+ await viteBuild(_chunkXDGMADQMcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite));
2282
2282
  await mergeBuiltFontCss(outputDir);
2283
2283
  await validateClientBuildOutput(root, srcDir, outputDir);
2284
2284
  } finally {
@@ -3037,7 +3037,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
3037
3037
  direction: {}
3038
3038
  }, plugins = [], renderer = _chunkTFAXUHWXcjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }) {
3039
3039
  const toImportPath = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (targetPath) => targetPath.replace(/\\/g, "/"), "toImportPath");
3040
- const clientPluginEntry = _chunkIKNRN4VScjs.generateFarmClientPluginEntryCode.call(void 0,
3040
+ const clientPluginEntry = _chunkXDGMADQMcjs.generateFarmClientPluginEntryCode.call(void 0,
3041
3041
  plugins,
3042
3042
  root,
3043
3043
  srcDir,
@@ -3045,7 +3045,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
3045
3045
  );
3046
3046
  const rendererClientImports = _chunkTFAXUHWXcjs.isReactRenderer.call(void 0, renderer) ? `import React from "react";
3047
3047
  import { createRoot, hydrateRoot } from "react-dom/client";` : `import React, { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};`;
3048
- const providerClientCode = _chunkIKNRN4VScjs.generateFarmIntegrationProviderClientCode.call(void 0,
3048
+ const providerClientCode = _chunkXDGMADQMcjs.generateFarmIntegrationProviderClientCode.call(void 0,
3049
3049
  integrationProviders,
3050
3050
  root,
3051
3051
  _nullishCoalesce(renderer.componentExtensions, () => ( []))
@@ -3108,7 +3108,7 @@ function isFarmDocsPath() {
3108
3108
  return false;
3109
3109
  }
3110
3110
  `;
3111
- const docsAdapterRuntime = _chunkIKNRN4VScjs.generateFarmDocsAdapterClientRuntime.call(void 0, docsAdapterReact);
3111
+ const docsAdapterRuntime = _chunkXDGMADQMcjs.generateFarmDocsAdapterClientRuntime.call(void 0, docsAdapterReact);
3112
3112
  if (clientPages.length === 0 && clientRouteSlots.length === 0 && !providerClientCode.hasProviders) {
3113
3113
  return `
3114
3114
  // Farm.js Client Runtime (no client components)
@@ -3527,7 +3527,7 @@ function hasHydratableLayout(pathname) {
3527
3527
  });
3528
3528
  }
3529
3529
 
3530
- ${_chunkIKNRN4VScjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
3530
+ ${_chunkXDGMADQMcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
3531
3531
  // Wrap a page element with applicable layouts
3532
3532
  function wrapWithLayouts(pageElement, pathname, params) {
3533
3533
  const layouts = getApplicableLayouts(pathname);
@@ -4540,7 +4540,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4540
4540
  }
4541
4541
  const middlewareRoutes = await discoverMiddlewareRoutes(appDirs);
4542
4542
  const instrumentationPath = _chunkRTHIVJ2Gcjs.resolveFarmInstrumentationFile.call(void 0, root, config.srcDir || "src");
4543
- const notFoundPath = _chunkIKNRN4VScjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
4543
+ const notFoundPath = _chunkXDGMADQMcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
4544
4544
  if (notFoundPath) _chunk5QIKR7RRcjs.logger.info(`\u{1F4CB} Found custom 404 page: ${notFoundPath}`);
4545
4545
  layoutRoutes.sort((a, b) => {
4546
4546
  const depthA = a.pattern.split("/").filter(Boolean).length;
@@ -4563,7 +4563,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4563
4563
  const hasObservabilityHandler = !!config.observability && typeof config.observability === "object" && "onEvent" in config.observability;
4564
4564
  const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _52 => _52.mdx, 'optionalAccess', _53 => _53.components]));
4565
4565
  const hasMiddlewareConfig = hasFarmMiddlewareConfig(config.middleware);
4566
- const hasRouteContextConfig = _chunkNV3A5DXMcjs.hasCustomFarmRouteContext.call(void 0, config);
4566
+ const hasRouteContextConfig = _chunkU5BMPGS3cjs.hasCustomFarmRouteContext.call(void 0, config);
4567
4567
  const hasServerRuntimePlugins = hasFarmServerRuntimePlugins(config);
4568
4568
  const hasPluginRoutes = hasFarmPluginRoutes(config);
4569
4569
  const configModulePath = hasServerRuntimeIntegrations || hasObservabilityHandler || hasMdxComponentConfig || hasMiddlewareConfig || hasRouteContextConfig || hasServerRuntimePlugins || hasPluginRoutes || hasIntegrationProviders ? await findFarmConfigPath(root) : null;
@@ -4572,7 +4572,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4572
4572
  const hasConfiguredRuntimePlugins = Boolean(
4573
4573
  hasRuntimeConfigModule && (config.plugins || []).length > 0
4574
4574
  );
4575
- const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _54 => _54.docs, 'optionalAccess', _55 => _55.enabled]) && _chunkC5GUTBZKcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? _optionalChain([config, 'access', _56 => _56.docs, 'access', _57 => _57.adapter, 'optionalAccess', _58 => _58.server]) ? await _chunkB4CH33IGcjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
4575
+ const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _54 => _54.docs, 'optionalAccess', _55 => _55.enabled]) && _chunkC5GUTBZKcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? _optionalChain([config, 'access', _56 => _56.docs, 'access', _57 => _57.adapter, 'optionalAccess', _58 => _58.server]) ? await _chunkS27FMYAMcjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
4576
4576
  root,
4577
4577
  srcDir: config.srcDir,
4578
4578
  clientEntry: FARM_CLIENT_JS_SRC_PLACEHOLDER,
@@ -4719,7 +4719,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4719
4719
  __FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _64 => _64.env, 'optionalAccess', _65 => _65.public]) || {})
4720
4720
  },
4721
4721
  plugins: [
4722
- _chunkIKNRN4VScjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
4722
+ _chunkXDGMADQMcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
4723
4723
  ...tailwindVitePlugin ? [tailwindVitePlugin] : [],
4724
4724
  ...rendererVitePlugins,
4725
4725
  ...config.vite.plugins || [],
@@ -4778,7 +4778,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4778
4778
  resolve: {
4779
4779
  alias: [
4780
4780
  ...shouldAliasReactServerToWebBuild(config.renderer, preset) ? [createFarmReactWebServerAlias(hasReactDomEdgeServerBuild(root))] : [],
4781
- ...Object.entries(_chunkIKNRN4VScjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
4781
+ ...Object.entries(_chunkXDGMADQMcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
4782
4782
  ([find, replacement]) => ({ find, replacement })
4783
4783
  )
4784
4784
  ],
@@ -4786,7 +4786,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4786
4786
  dedupe: [...config.renderer.dedupe || []]
4787
4787
  }
4788
4788
  };
4789
- await viteBuild(_chunkIKNRN4VScjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
4789
+ await viteBuild(_chunkXDGMADQMcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
4790
4790
  } finally {
4791
4791
  if (postcssConfigDir) {
4792
4792
  try {
@@ -4994,8 +4994,8 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, generateConfiguredResponseHeadersRuntimeSo
4994
4994
  function parseRouteRenderingDirectiveFromDisk(modulePath) {
4995
4995
  try {
4996
4996
  const source = _fs.readFileSync.call(void 0, modulePath, "utf8");
4997
- const directive = _chunkWZMNW2IWcjs.parseRouteRenderingDirective.call(void 0, source);
4998
- if (_chunkWZMNW2IWcjs.findRequestBoundSourceBlockers.call(void 0, source).length === 0) return directive;
4997
+ const directive = _chunkGPVTX3HTcjs.parseRouteRenderingDirective.call(void 0, source);
4998
+ if (_chunkGPVTX3HTcjs.findRequestBoundSourceBlockers.call(void 0, source).length === 0) return directive;
4999
4999
  return { ..._nullishCoalesce(directive, () => ( { ssg: false, ppr: false, directive: "" })), requestBound: true };
5000
5000
  } catch (e22) {
5001
5001
  return void 0;
@@ -5148,7 +5148,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
5148
5148
  `Integration provider components are not supported by the "${config.renderer.name}" renderer.`
5149
5149
  );
5150
5150
  }
5151
- const providerServerModules = _chunkIKNRN4VScjs.generateFarmIntegrationProviderServerModules.call(void 0,
5151
+ const providerServerModules = _chunkXDGMADQMcjs.generateFarmIntegrationProviderServerModules.call(void 0,
5152
5152
  renderedIntegrationProviders,
5153
5153
  config.root,
5154
5154
  _nullishCoalesce(config.renderer.componentExtensions, () => ( []))
@@ -5168,14 +5168,14 @@ function isolateFarmRouteServerPage(element) { return element; }`;
5168
5168
  const unsupportedIntegrationProvider = renderedIntegrationProviders.find(
5169
5169
  (provider) => provider.supportsIsolatedHydration !== true
5170
5170
  );
5171
- const isolatedHydrationMode = _chunkIKNRN4VScjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
5171
+ const isolatedHydrationMode = _chunkXDGMADQMcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
5172
5172
  _optionalChain([config, 'access', _85 => _85.experimental, 'optionalAccess', _86 => _86.isolatedClientHydration]),
5173
5173
  {
5174
5174
  serverComponents: _optionalChain([config, 'access', _87 => _87.experimental, 'optionalAccess', _88 => _88.serverComponents]) === true,
5175
5175
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
5176
5176
  }
5177
5177
  );
5178
- const hydrationPlanOptions = _chunkIKNRN4VScjs.getFarmClientHydrationPlanOptions.call(void 0,
5178
+ const hydrationPlanOptions = _chunkXDGMADQMcjs.getFarmClientHydrationPlanOptions.call(void 0,
5179
5179
  config.renderer,
5180
5180
  Boolean(unsupportedIntegrationProvider)
5181
5181
  );
@@ -5190,7 +5190,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
5190
5190
  hydrationPlanOptions
5191
5191
  )
5192
5192
  }));
5193
- const markdownPagePlan = _chunkIKNRN4VScjs.createMarkdownPageHydrationPlanner.call(void 0,
5193
+ const markdownPagePlan = _chunkXDGMADQMcjs.createMarkdownPageHydrationPlanner.call(void 0,
5194
5194
  _chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkOHY2ZWUGcjs.resolveMdxConfig.call(void 0, config.mdx), config.root),
5195
5195
  config.root,
5196
5196
  isolatedHydrationMode,
@@ -5199,7 +5199,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
5199
5199
  const pageHydrationPlans = new Map(
5200
5200
  pageRoutes.map((route) => [
5201
5201
  route.modulePath,
5202
- _chunkE2BMSZ2Wcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath) ? markdownPagePlan() : getCachedClientModuleHydrationPlan(
5202
+ _chunkAH7HOAQ3cjs.isFarmMarkdownPageFile.call(void 0, route.modulePath) ? markdownPagePlan() : getCachedClientModuleHydrationPlan(
5203
5203
  route.modulePath,
5204
5204
  config.root,
5205
5205
  isolatedHydrationMode,
@@ -5208,7 +5208,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
5208
5208
  )
5209
5209
  ])
5210
5210
  );
5211
- _chunkIKNRN4VScjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
5211
+ _chunkXDGMADQMcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
5212
5212
  layoutHydrationPlans.map((layout) => ({
5213
5213
  pattern: layout.pattern,
5214
5214
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -5249,7 +5249,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
5249
5249
  }).map(({ route }) => route);
5250
5250
  orderedPageRoutes.forEach((route, index) => {
5251
5251
  const varName = `pageRoute${index}`;
5252
- if (_chunkE2BMSZ2Wcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) {
5252
+ if (_chunkAH7HOAQ3cjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) {
5253
5253
  pageRegistrations.push(`
5254
5254
  {
5255
5255
  pattern: ${JSON.stringify(route.pattern)},
@@ -5688,7 +5688,7 @@ const farmResolvedRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs);
5688
5688
 
5689
5689
  function FarmDefault404Page() {
5690
5690
  return React.createElement(React.Fragment, null,
5691
- React.createElement("style", null, ${JSON.stringify(_chunkIKNRN4VScjs.DEFAULT_NOT_FOUND_STYLES)}),
5691
+ React.createElement("style", null, ${JSON.stringify(_chunkXDGMADQMcjs.DEFAULT_NOT_FOUND_STYLES)}),
5692
5692
  React.createElement("main", {
5693
5693
  className: "farm-default-not-found",
5694
5694
  "aria-labelledby": "farm-default-not-found-title",
@@ -8910,7 +8910,7 @@ function getPhysicalPrerenderBypassReason(options) {
8910
8910
  }
8911
8911
  if (appMiddlewareMayHandlePath(middlewareRoutes, pathname)) return "app middleware";
8912
8912
  if (configMiddlewareMayHandlePath(config.middleware, pathname)) return "configured middleware";
8913
- if (_chunkNV3A5DXMcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
8913
+ if (_chunkU5BMPGS3cjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
8914
8914
  if (farmServerRuntimePluginsMayHandlePath(config, pathname)) return "server runtime plugin";
8915
8915
  const manifestEntry = getManifestPageEntry(routeRuntimeManifest, pathname);
8916
8916
  if (_optionalChain([manifestEntry, 'optionalAccess', _148 => _148.rendering]) === "dynamic") return "dynamic runtime manifest";
@@ -8936,7 +8936,7 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
8936
8936
  const nitroBuilder = nitroBuilderResult.value;
8937
8937
  const isVercel = preset === "vercel" || preset === "vercel-edge";
8938
8938
  const isCloudflareWorker = preset === "cloudflare-module";
8939
- const outputDir = _chunkNV3A5DXMcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
8939
+ const outputDir = _chunkU5BMPGS3cjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
8940
8940
  const runtimeServerOutputDir = isVercel ? _path2.default.join(outputDir, "functions", "__nitro.func") : _path2.default.join(outputDir, "server");
8941
8941
  const ssrOutputDir = _path2.default.join(root, distDir, "ssr");
8942
8942
  const imageRuntime = resolveImageRuntime(config, preset);
@@ -9301,7 +9301,7 @@ export default async function farmNitroEventHandler(event) {
9301
9301
  if (config.security.csp && config.security.csp.nonce) {
9302
9302
  nitroInstance.hooks.hook("prerender:generate", async (route) => {
9303
9303
  if (!route.contents || !_optionalChain([route, 'access', _173 => _173.contentType, 'optionalAccess', _174 => _174.toLowerCase, 'call', _175 => _175(), 'access', _176 => _176.includes, 'call', _177 => _177("html")])) return;
9304
- const staticCsp = await _chunkTYQUSXUGcjs.applyFarmCspHashesToHtml.call(void 0, route.contents, config.security);
9304
+ const staticCsp = await _chunkISTFC3MZcjs.applyFarmCspHashesToHtml.call(void 0, route.contents, config.security);
9305
9305
  if (!staticCsp) return;
9306
9306
  route.contents = staticCsp.html;
9307
9307
  const routeRule = nitroInstance.options.routeRules[route.route] || {};
@@ -9578,7 +9578,7 @@ async function copyFarmDocsContentForVercel(config, root, nitroFuncDir, fs) {
9578
9578
  const docsContentDir = resolveBuildDocsContentDir(config, root);
9579
9579
  if (!docsContentDir) return;
9580
9580
  const bundledContentDir = _path2.default.join(nitroFuncDir, "farm-docs-content");
9581
- const lastModifiedManifest = _chunkGNEO2XOFcjs.createFarmDocsLastModifiedManifest.call(void 0, docsContentDir, {
9581
+ const lastModifiedManifest = _chunkNBAHDVOJcjs.createFarmDocsLastModifiedManifest.call(void 0, docsContentDir, {
9582
9582
  fallback: "now"
9583
9583
  });
9584
9584
  await fs.rm(bundledContentDir, { recursive: true, force: true });
@@ -9588,7 +9588,7 @@ async function copyFarmDocsContentForVercel(config, root, nitroFuncDir, fs) {
9588
9588
  force: true
9589
9589
  });
9590
9590
  await fs.writeFile(
9591
- _path2.default.join(bundledContentDir, _chunkGNEO2XOFcjs.FARM_DOCS_LAST_MODIFIED_MANIFEST),
9591
+ _path2.default.join(bundledContentDir, _chunkNBAHDVOJcjs.FARM_DOCS_LAST_MODIFIED_MANIFEST),
9592
9592
  `${JSON.stringify(lastModifiedManifest, null, 2)}
9593
9593
  `
9594
9594
  );
@@ -9845,7 +9845,7 @@ function createBuildTargetBaseline(config) {
9845
9845
  preset,
9846
9846
  distDir,
9847
9847
  outputDir,
9848
- outputWasDerived: outputDir === _chunkNV3A5DXMcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
9848
+ outputWasDerived: outputDir === _chunkU5BMPGS3cjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
9849
9849
  };
9850
9850
  }
9851
9851
  _chunkS3JO3N4Hcjs.__name.call(void 0, createBuildTargetBaseline, "createBuildTargetBaseline");
@@ -9855,8 +9855,8 @@ function resolveBuildTargets(config, options, baseline) {
9855
9855
  const distDir = config.distDir || ".farm";
9856
9856
  const outputWasReplaced = config.deploy.outputDir !== baseline.outputDir;
9857
9857
  const shouldRefreshDerivedOutput = baseline.outputWasDerived && !outputWasReplaced && (preset !== baseline.preset || distDir !== baseline.distDir);
9858
- const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkNV3A5DXMcjs.getDeployTargetForPreset.call(void 0, preset);
9859
- const outputDir = shouldRefreshDerivedOutput ? _chunkNV3A5DXMcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
9858
+ const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkU5BMPGS3cjs.getDeployTargetForPreset.call(void 0, preset);
9859
+ const outputDir = shouldRefreshDerivedOutput ? _chunkU5BMPGS3cjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
9860
9860
  return {
9861
9861
  root,
9862
9862
  preset,
@@ -9864,7 +9864,7 @@ function resolveBuildTargets(config, options, baseline) {
9864
9864
  distDir,
9865
9865
  deployTarget,
9866
9866
  outputDir,
9867
- deployOutputDir: _chunkNV3A5DXMcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
9867
+ deployOutputDir: _chunkU5BMPGS3cjs.resolveDeployOutputPath.call(void 0, root, outputDir)
9868
9868
  };
9869
9869
  }
9870
9870
  _chunkS3JO3N4Hcjs.__name.call(void 0, resolveBuildTargets, "resolveBuildTargets");
@@ -9873,7 +9873,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
9873
9873
  const targetBaseline = createBuildTargetBaseline(config);
9874
9874
  let targets;
9875
9875
  const productionViteResultPromise = options.universal === false ? void 0 : Promise.allSettled([Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkA6WIQH5Zcjs.loadFarmProductionVite.call(void 0, ))))]);
9876
- const pluginManager = new (0, _chunkIKNRN4VScjs.PluginManager)({
9876
+ const pluginManager = new (0, _chunkXDGMADQMcjs.PluginManager)({
9877
9877
  config,
9878
9878
  isDev: false,
9879
9879
  isProd: true
@@ -9916,18 +9916,18 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
9916
9916
  const productionVite = _optionalChain([productionViteResult, 'optionalAccess', _181 => _181.value]);
9917
9917
  const createViteServer = productionVite ? productionVite.createServer : (await import("vite")).createServer;
9918
9918
  projectModuleServer = await createProjectModuleServer(createViteServer, config, root);
9919
- const farmApp = _chunkIKNRN4VScjs.createFarmApp.call(void 0, config, projectModuleServer);
9919
+ const farmApp = _chunkXDGMADQMcjs.createFarmApp.call(void 0, config, projectModuleServer);
9920
9920
  await farmApp.initialize();
9921
9921
  const routeManager = farmApp.getRouteManager();
9922
9922
  const serverRenderer = farmApp.getServerRenderer();
9923
- const typeArtifacts = _chunkWZMNW2IWcjs.generateFarmTypeArtifacts.call(void 0, {
9923
+ const typeArtifacts = _chunkGPVTX3HTcjs.generateFarmTypeArtifacts.call(void 0, {
9924
9924
  root,
9925
9925
  srcDir,
9926
9926
  layers: config.layers,
9927
9927
  plugins: config.plugins,
9928
9928
  extraRoutes: [
9929
9929
  ..._optionalChain([config, 'access', _182 => _182.openapi, 'optionalAccess', _183 => _183.enabled]) && config.openapi.route ? [config.openapi.route] : [],
9930
- ..._chunkGNEO2XOFcjs.getFarmDocsRouteTypeEntries.call(void 0, config.docs)
9930
+ ..._chunkNBAHDVOJcjs.getFarmDocsRouteTypeEntries.call(void 0, config.docs)
9931
9931
  ],
9932
9932
  suppressLintOnLink: config.suppressLintOnLink,
9933
9933
  componentExtensions: config.renderer.componentExtensions,
@@ -10017,7 +10017,7 @@ async function createProjectModuleServer(createViteServer, config, root) {
10017
10017
  const rendererVitePlugins = await _chunkTFAXUHWXcjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, root, {
10018
10018
  ssr: true
10019
10019
  });
10020
- const viteConfig = _chunkIKNRN4VScjs.mergeFarmViteConfig.call(void 0,
10020
+ const viteConfig = _chunkXDGMADQMcjs.mergeFarmViteConfig.call(void 0,
10021
10021
  {
10022
10022
  root,
10023
10023
  appType: "custom",
@@ -10029,7 +10029,7 @@ async function createProjectModuleServer(createViteServer, config, root) {
10029
10029
  },
10030
10030
  plugins: [
10031
10031
  ...rendererVitePlugins,
10032
- _chunkIKNRN4VScjs.farmFontImportsPlugin.call(void 0, {
10032
+ _chunkXDGMADQMcjs.farmFontImportsPlugin.call(void 0, {
10033
10033
  root,
10034
10034
  basePath: config.basePath,
10035
10035
  publicDir: config.publicDir
@@ -10041,7 +10041,7 @@ async function createProjectModuleServer(createViteServer, config, root) {
10041
10041
  hmr: false
10042
10042
  },
10043
10043
  resolve: {
10044
- alias: _chunkIKNRN4VScjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
10044
+ alias: _chunkXDGMADQMcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
10045
10045
  dedupe: [...config.renderer.dedupe || []]
10046
10046
  },
10047
10047
  optimizeDeps: {
@@ -10162,7 +10162,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
10162
10162
  if (pluginManager) {
10163
10163
  nitroConfig = await pluginManager.runHookSerial("beforeNitroBuild", nitroConfig);
10164
10164
  }
10165
- const outputDir = _chunkNV3A5DXMcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
10165
+ const outputDir = _chunkU5BMPGS3cjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
10166
10166
  const serverOutputDir = _path2.default.join(outputDir, "server");
10167
10167
  const publicOutputDir = _path2.default.join(outputDir, "public");
10168
10168
  const { mkdir, cp } = await import("fs/promises");
@@ -10233,7 +10233,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
10233
10233
  root,
10234
10234
  preset,
10235
10235
  distDir,
10236
- outputDir: _chunkNV3A5DXMcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
10236
+ outputDir: _chunkU5BMPGS3cjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
10237
10237
  });
10238
10238
  }
10239
10239
  }