@farm.js/core 0.1.30 → 0.1.31

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 (55) hide show
  1. package/dist/app-markdown.cjs +4 -4
  2. package/dist/app-markdown.mjs +3 -3
  3. package/dist/{chunk-Q5JFU33Q.cjs → chunk-2FXWWUE5.cjs} +4 -4
  4. package/dist/{chunk-6G3ZZ2IE.mjs → chunk-5LJCOSKT.mjs} +1 -1
  5. package/dist/{chunk-S4K74WI4.mjs → chunk-6L6DQR5W.mjs} +7 -7
  6. package/dist/{chunk-YMUE7L3D.mjs → chunk-6VYZOPOT.mjs} +1 -1
  7. package/dist/{chunk-BZ3CHOFX.mjs → chunk-7QOCTYBS.mjs} +1 -1
  8. package/dist/{chunk-PQD2AI3B.mjs → chunk-AHAJGAYD.mjs} +1 -1
  9. package/dist/{chunk-XLTV4VOG.cjs → chunk-CUMINO7Z.cjs} +4 -4
  10. package/dist/{chunk-JFHKNFEO.cjs → chunk-DFLLARUK.cjs} +10 -10
  11. package/dist/{chunk-7CXKSRKL.mjs → chunk-FJZ3DQLK.mjs} +2 -2
  12. package/dist/{chunk-BZAGKCKB.cjs → chunk-FYRBX5IY.cjs} +2 -2
  13. package/dist/{chunk-HPQC2LHF.cjs → chunk-IFI5FXEZ.cjs} +80 -72
  14. package/dist/{chunk-GIWC4CFJ.cjs → chunk-IMB4PIAR.cjs} +72 -72
  15. package/dist/{chunk-ATXI6LGT.mjs → chunk-JBC2FKRW.mjs} +6 -3
  16. package/dist/{chunk-6CNX6Q3K.cjs → chunk-KJ2TIHZZ.cjs} +6 -3
  17. package/dist/{chunk-ZDILFMWN.cjs → chunk-MXDTKXO6.cjs} +13 -13
  18. package/dist/{chunk-D234YWNA.mjs → chunk-TEN4FIZU.mjs} +1 -1
  19. package/dist/{chunk-2UABTL3Y.mjs → chunk-UAFSBWNT.mjs} +2 -2
  20. package/dist/{chunk-K6V52QMI.mjs → chunk-VA62MHFV.mjs} +1 -1
  21. package/dist/{chunk-X5TXZFMN.cjs → chunk-VYZSOYR4.cjs} +1 -1
  22. package/dist/{chunk-IVLUJUT4.mjs → chunk-WG2KHOMN.mjs} +16 -8
  23. package/dist/{chunk-NXG66MR7.cjs → chunk-X7KZBF63.cjs} +3 -3
  24. package/dist/{chunk-NPPL5YDT.cjs → chunk-YVGAEAA5.cjs} +2 -2
  25. package/dist/{devtools-THVNPI2M.mjs → devtools-BPBCYOU6.mjs} +3 -3
  26. package/dist/{devtools-GGVPZHJX.cjs → devtools-EWRDHCD5.cjs} +4 -4
  27. package/dist/docs.cjs +6 -6
  28. package/dist/docs.mjs +5 -5
  29. package/dist/index.cjs +12 -12
  30. package/dist/index.mjs +11 -11
  31. package/dist/internal/app-markdown-runtime.cjs +3 -3
  32. package/dist/internal/app-markdown-runtime.mjs +2 -2
  33. package/dist/internal/build-runtime.cjs +12 -12
  34. package/dist/internal/build-runtime.mjs +11 -11
  35. package/dist/internal/cli-runtime.cjs +5 -5
  36. package/dist/internal/cli-runtime.mjs +4 -4
  37. package/dist/internal/client-error-overlay.cjs +4 -4
  38. package/dist/internal/client-error-overlay.mjs +1 -1
  39. package/dist/internal/config-runtime.cjs +4 -4
  40. package/dist/internal/config-runtime.mjs +3 -3
  41. package/dist/internal/product-telemetry-runtime.cjs +2 -2
  42. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  43. package/dist/internal/production-runtime.cjs +4 -4
  44. package/dist/internal/production-runtime.mjs +3 -3
  45. package/dist/markdown.cjs +2 -2
  46. package/dist/markdown.mjs +1 -1
  47. package/dist/plugin.cjs +8 -8
  48. package/dist/plugin.mjs +7 -7
  49. package/dist/server.cjs +25 -25
  50. package/dist/server.mjs +8 -8
  51. package/dist/version.cjs +2 -2
  52. package/dist/version.mjs +1 -1
  53. package/dist/vite.cjs +8 -8
  54. package/dist/vite.mjs +7 -7
  55. package/package.json +1 -1
@@ -10,7 +10,7 @@ var _chunkXD32KALFcjs = require('./chunk-XD32KALF.cjs');
10
10
 
11
11
 
12
12
 
13
- var _chunkZDILFMWNcjs = require('./chunk-ZDILFMWN.cjs');
13
+ var _chunkMXDTKXO6cjs = require('./chunk-MXDTKXO6.cjs');
14
14
 
15
15
 
16
16
 
@@ -20,7 +20,7 @@ var _chunkZDILFMWNcjs = require('./chunk-ZDILFMWN.cjs');
20
20
 
21
21
 
22
22
 
23
- var _chunkQ5JFU33Qcjs = require('./chunk-Q5JFU33Q.cjs');
23
+ var _chunk2FXWWUE5cjs = require('./chunk-2FXWWUE5.cjs');
24
24
 
25
25
 
26
26
 
@@ -37,7 +37,7 @@ var _chunkIK6LVLKCcjs = require('./chunk-IK6LVLKC.cjs');
37
37
 
38
38
 
39
39
 
40
- var _chunkJFHKNFEOcjs = require('./chunk-JFHKNFEO.cjs');
40
+ var _chunkDFLLARUKcjs = require('./chunk-DFLLARUK.cjs');
41
41
 
42
42
 
43
43
  var _chunkKCMTCM6Icjs = require('./chunk-KCMTCM6I.cjs');
@@ -73,7 +73,7 @@ var _chunk2SJ4RQ6Pcjs = require('./chunk-2SJ4RQ6P.cjs');
73
73
 
74
74
 
75
75
 
76
- var _chunkGIWC4CFJcjs = require('./chunk-GIWC4CFJ.cjs');
76
+ var _chunkIMB4PIARcjs = require('./chunk-IMB4PIAR.cjs');
77
77
 
78
78
 
79
79
 
@@ -83,7 +83,7 @@ var _chunkCTV2TTNPcjs = require('./chunk-CTV2TTNP.cjs');
83
83
 
84
84
 
85
85
 
86
- var _chunkNPPL5YDTcjs = require('./chunk-NPPL5YDT.cjs');
86
+ var _chunkYVGAEAA5cjs = require('./chunk-YVGAEAA5.cjs');
87
87
 
88
88
 
89
89
  var _chunkCXP5U3RWcjs = require('./chunk-CXP5U3RW.cjs');
@@ -115,7 +115,7 @@ var _chunkVPTDD5XFcjs = require('./chunk-VPTDD5XF.cjs');
115
115
  var _chunkPSV6XKPOcjs = require('./chunk-PSV6XKPO.cjs');
116
116
 
117
117
 
118
- var _chunkXLTV4VOGcjs = require('./chunk-XLTV4VOG.cjs');
118
+ var _chunkCUMINO7Zcjs = require('./chunk-CUMINO7Z.cjs');
119
119
 
120
120
 
121
121
 
@@ -127,14 +127,14 @@ var _chunk6EXBPJ24cjs = require('./chunk-6EXBPJ24.cjs');
127
127
  var _chunkVEKFLAQMcjs = require('./chunk-VEKFLAQM.cjs');
128
128
 
129
129
 
130
- var _chunkNXG66MR7cjs = require('./chunk-NXG66MR7.cjs');
130
+ var _chunkX7KZBF63cjs = require('./chunk-X7KZBF63.cjs');
131
131
 
132
132
 
133
133
 
134
134
  var _chunkOHY2ZWUGcjs = require('./chunk-OHY2ZWUG.cjs');
135
135
 
136
136
 
137
- var _chunk6CNX6Q3Kcjs = require('./chunk-6CNX6Q3K.cjs');
137
+ var _chunkKJ2TIHZZcjs = require('./chunk-KJ2TIHZZ.cjs');
138
138
 
139
139
 
140
140
 
@@ -282,7 +282,7 @@ function getDocsTitle(docs) {
282
282
  }
283
283
  _chunkS3JO3N4Hcjs.__name.call(void 0, getDocsTitle, "getDocsTitle");
284
284
  function loadPages(contentDir, docs) {
285
- return _chunkQ5JFU33Qcjs.discoverFarmDocsPages.call(void 0, contentDir, docs).map((page) => _chunkQ5JFU33Qcjs.loadFarmDocsPage.call(void 0, contentDir, docs, page.slug)).filter((page) => Boolean(page)).sort((a, b) => a.href.localeCompare(b.href));
285
+ return _chunk2FXWWUE5cjs.discoverFarmDocsPages.call(void 0, contentDir, docs).map((page) => _chunk2FXWWUE5cjs.loadFarmDocsPage.call(void 0, contentDir, docs, page.slug)).filter((page) => Boolean(page)).sort((a, b) => a.href.localeCompare(b.href));
286
286
  }
287
287
  _chunkS3JO3N4Hcjs.__name.call(void 0, loadPages, "loadPages");
288
288
  function findSocialImagePath(html) {
@@ -303,14 +303,14 @@ async function addHandlerRoute(routes, pathname, handler, absolutePaths) {
303
303
  }
304
304
  _chunkS3JO3N4Hcjs.__name.call(void 0, addHandlerRoute, "addHandlerRoute");
305
305
  async function compileFarmDocsManifest(docs, options) {
306
- const contentDir = _chunkQ5JFU33Qcjs.resolveFarmDocsContentDir.call(void 0, docs, options);
306
+ const contentDir = _chunk2FXWWUE5cjs.resolveFarmDocsContentDir.call(void 0, docs, options);
307
307
  const pages = loadPages(contentDir, docs);
308
308
  const absolutePaths = [
309
309
  _path2.default.resolve(options.root),
310
310
  _path2.default.resolve(contentDir),
311
311
  docs.configPath || ""
312
312
  ];
313
- const handler = _chunkQ5JFU33Qcjs.createFarmDocsHandler.call(void 0, docs, {
313
+ const handler = _chunk2FXWWUE5cjs.createFarmDocsHandler.call(void 0, docs, {
314
314
  root: options.root,
315
315
  srcDir: options.srcDir,
316
316
  clientEntry: options.clientEntry,
@@ -318,7 +318,7 @@ async function compileFarmDocsManifest(docs, options) {
318
318
  fontStylesheetHref: options.fontStylesheetHref,
319
319
  globalStylesheetHref: options.globalStylesheetHref
320
320
  });
321
- const apiHandler = _chunkZDILFMWNcjs.createFarmDocsAPIHandler.call(void 0, {
321
+ const apiHandler = _chunkMXDTKXO6cjs.createFarmDocsAPIHandler.call(void 0, {
322
322
  rootDir: options.root,
323
323
  srcDir: options.srcDir,
324
324
  docs
@@ -410,7 +410,7 @@ async function compileFarmDocsManifest(docs, options) {
410
410
  post: await compileResponse(postResponse, absolutePaths),
411
411
  search: {
412
412
  pages: pages.map((page) => ({
413
- ..._chunkQ5JFU33Qcjs.toFarmDocsMarkdownPage.call(void 0, page),
413
+ ..._chunk2FXWWUE5cjs.toFarmDocsMarkdownPage.call(void 0, page),
414
414
  sourcePath: `farm-docs:${page.slug || "index"}`
415
415
  })),
416
416
  search: _nullishCoalesce(searchConfig, () => ( true)),
@@ -1536,7 +1536,7 @@ function hasFarmPluginRoutes(config) {
1536
1536
  _chunkS3JO3N4Hcjs.__name.call(void 0, hasFarmPluginRoutes, "hasFarmPluginRoutes");
1537
1537
  function farmServerRuntimePluginsMayHandlePath(config, pathname) {
1538
1538
  return (config.plugins || []).some(
1539
- (plugin) => _chunkZ5HIWVDPcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false && _chunkGIWC4CFJcjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, pathname)
1539
+ (plugin) => _chunkZ5HIWVDPcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false && _chunkIMB4PIARcjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, pathname)
1540
1540
  );
1541
1541
  }
1542
1542
  _chunkS3JO3N4Hcjs.__name.call(void 0, farmServerRuntimePluginsMayHandlePath, "farmServerRuntimePluginsMayHandlePath");
@@ -1598,7 +1598,7 @@ async function buildUniversal(config, routeManager, apiRouteManager, serverRende
1598
1598
  assertFarmDocsRuntimeSupported(config, preset);
1599
1599
  const srcDir = config.srcDir || "src";
1600
1600
  const distDir = config.distDir || ".farm";
1601
- const deployOutputDir = _chunkJFHKNFEOcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
1601
+ const deployOutputDir = _chunkDFLLARUKcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
1602
1602
  const lifecyclePluginManager = options.pluginManager;
1603
1603
  const productionViteResultPromise = Promise.allSettled([
1604
1604
  Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkA6WIQH5Zcjs.loadFarmProductionVite.call(void 0, ))))
@@ -1617,7 +1617,7 @@ async function buildUniversal(config, routeManager, apiRouteManager, serverRende
1617
1617
  const routeRuntimeManifestResultPromise = Promise.allSettled([routeRuntimeManifestPromise]);
1618
1618
  const pageRoutes = [];
1619
1619
  for (const [pattern, entry] of routeManager.getRoutes()) {
1620
- const markdownSourcePath = entry.markdownSourcePath || (_chunkNXG66MR7cjs.isFarmMarkdownPageFile.call(void 0, entry.modulePath) ? entry.modulePath : void 0);
1620
+ const markdownSourcePath = entry.markdownSourcePath || (_chunkX7KZBF63cjs.isFarmMarkdownPageFile.call(void 0, entry.modulePath) ? entry.modulePath : void 0);
1621
1621
  pageRoutes.push({
1622
1622
  pattern,
1623
1623
  modulePath: entry.modulePath,
@@ -1846,7 +1846,7 @@ async function mergeBuiltFontCss(outputDir, fontCssSource) {
1846
1846
  }
1847
1847
  const normalizedFontCss = typeof fontCss === "string" ? fontCss : Buffer.from(fontCss).toString("utf8");
1848
1848
  await fs.writeFile(fontCssPath, normalizedFontCss);
1849
- await fs.writeFile(clientCssPath, _chunkGIWC4CFJcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
1849
+ await fs.writeFile(clientCssPath, _chunkIMB4PIARcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
1850
1850
  }
1851
1851
  _chunkS3JO3N4Hcjs.__name.call(void 0, mergeBuiltFontCss, "mergeBuiltFontCss");
1852
1852
  var _IncompleteClientBuildOutputError = class _IncompleteClientBuildOutputError extends Error {
@@ -1896,7 +1896,7 @@ function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, optio
1896
1896
  const key = `${_path2.default.resolve(root)}\0${mode}\0${options.asyncOwnerIslands === true}\0${_path2.default.resolve(modulePath)}`;
1897
1897
  let plan = cache.get(key);
1898
1898
  if (!plan) {
1899
- plan = _chunkGIWC4CFJcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
1899
+ plan = _chunkIMB4PIARcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
1900
1900
  cache.set(key, plan);
1901
1901
  }
1902
1902
  return { ...plan, isolatedBoundaries: [...plan.isolatedBoundaries] };
@@ -1925,14 +1925,14 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
1925
1925
  `[Farm.js] isolated hydration kept route-wide because integration provider "${unsupportedIntegrationProvider.name}" does not declare supportsIsolatedHydration: true.`
1926
1926
  );
1927
1927
  }
1928
- const isolatedMode = _chunkGIWC4CFJcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
1928
+ const isolatedMode = _chunkIMB4PIARcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
1929
1929
  _optionalChain([config, 'access', _35 => _35.experimental, 'optionalAccess', _36 => _36.isolatedClientHydration]),
1930
1930
  {
1931
1931
  serverComponents: _optionalChain([config, 'access', _37 => _37.experimental, 'optionalAccess', _38 => _38.serverComponents]) === true,
1932
1932
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
1933
1933
  }
1934
1934
  );
1935
- const planOptions = _chunkGIWC4CFJcjs.getFarmClientHydrationPlanOptions.call(void 0,
1935
+ const planOptions = _chunkIMB4PIARcjs.getFarmClientHydrationPlanOptions.call(void 0,
1936
1936
  config.renderer,
1937
1937
  Boolean(unsupportedIntegrationProvider)
1938
1938
  );
@@ -1989,7 +1989,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
1989
1989
  ), "isAdapterDocsRoute");
1990
1990
  const syntheticDocsEntry = _optionalChain([config, 'access', _46 => _46.docs, 'optionalAccess', _47 => _47.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
1991
1991
  const syntheticDocsPatterns = syntheticDocsEntry ? syntheticDocsEntry === "/" ? ["/", "/[...slug]"] : [syntheticDocsEntry, `${syntheticDocsEntry}/[...slug]`] : [];
1992
- const markdownPagePlan = _chunkGIWC4CFJcjs.createMarkdownPageHydrationPlanner.call(void 0,
1992
+ const markdownPagePlan = _chunkIMB4PIARcjs.createMarkdownPageHydrationPlanner.call(void 0,
1993
1993
  _chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkOHY2ZWUGcjs.resolveMdxConfig.call(void 0, config.mdx), root),
1994
1994
  root,
1995
1995
  isolatedMode,
@@ -1997,7 +1997,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
1997
1997
  );
1998
1998
  const routePlans = pageRoutes.map((route) => ({
1999
1999
  route,
2000
- metadata: _chunkNXG66MR7cjs.isFarmMarkdownPageFile.call(void 0, route.modulePath) ? markdownPagePlan() : getCachedClientModuleHydrationPlan(
2000
+ metadata: _chunkX7KZBF63cjs.isFarmMarkdownPageFile.call(void 0, route.modulePath) ? markdownPagePlan() : getCachedClientModuleHydrationPlan(
2001
2001
  route.modulePath,
2002
2002
  root,
2003
2003
  isolatedMode,
@@ -2005,7 +2005,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2005
2005
  planOptions
2006
2006
  )
2007
2007
  }));
2008
- _chunkGIWC4CFJcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
2008
+ _chunkIMB4PIARcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
2009
2009
  clientLayouts.map((layout) => ({
2010
2010
  pattern: layout.pattern,
2011
2011
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -2037,7 +2037,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2037
2037
  for (const layout of clientLayouts) {
2038
2038
  const matchesBuiltRoute = pageRoutes.some((route) => layoutAppliesToRoute(layout.pattern, route.pattern)) || Boolean(adapterDocsEntry && layoutAppliesToRoute(layout.pattern, adapterDocsEntry));
2039
2039
  if (matchesBuiltRoute && layout.suppressedAsyncHydration) {
2040
- _chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F ${_chunkGIWC4CFJcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`);
2040
+ _chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F ${_chunkIMB4PIARcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`);
2041
2041
  }
2042
2042
  }
2043
2043
  if (isolatedMode === "analyze") {
@@ -2061,7 +2061,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2061
2061
  );
2062
2062
  if (metadata.suppressedAsyncHydration) {
2063
2063
  _chunk5QIKR7RRcjs.logger.warn(
2064
- `\u26A0\uFE0F ${_chunkGIWC4CFJcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
2064
+ `\u26A0\uFE0F ${_chunkIMB4PIARcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
2065
2065
  );
2066
2066
  }
2067
2067
  if (metadata.shouldHydrate || metadata.hasIsolatedClientBoundaries || applicableClientLayouts.length > 0) {
@@ -2120,7 +2120,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2120
2120
  }
2121
2121
  const clientRouteSlots = routeSlots.filter((slot) => {
2122
2122
  try {
2123
- return _chunkGIWC4CFJcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root).shouldHydrate;
2123
+ return _chunkIMB4PIARcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root).shouldHydrate;
2124
2124
  } catch (error) {
2125
2125
  _chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
2126
2126
  return false;
@@ -2150,7 +2150,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2150
2150
  config.trailingSlash,
2151
2151
  _chunkZ5HIWVDPcjs.getIntegrationProviders.call(void 0, config.integrations),
2152
2152
  config.basePath,
2153
- _chunkGIWC4CFJcjs.generateClientCachePersistenceCode.call(void 0, _chunkGIWC4CFJcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
2153
+ _chunkIMB4PIARcjs.generateClientCachePersistenceCode.call(void 0, _chunkIMB4PIARcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
2154
2154
  adapterOwnsDocsRuntime ? _chunk75WGQVQAcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
2155
2155
  );
2156
2156
  await fs.writeFile(clientEntryPath, clientHydrationCode);
@@ -2167,7 +2167,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2167
2167
  const postcssConfigPath = _path2.default.join(clientEntryDir, "postcss.config.cjs");
2168
2168
  await fs.writeFile(postcssConfigPath, "module.exports = { plugins: [] };\n");
2169
2169
  postcssSearchPath = clientEntryDir;
2170
- tailwindVitePlugin = await _chunkGIWC4CFJcjs.loadTailwindVitePlugin.call(void 0, {
2170
+ tailwindVitePlugin = await _chunkIMB4PIARcjs.loadTailwindVitePlugin.call(void 0, {
2171
2171
  builder: productionVite.builder,
2172
2172
  announce: true
2173
2173
  });
@@ -2236,7 +2236,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2236
2236
  }
2237
2237
  },
2238
2238
  plugins: [
2239
- _chunkGIWC4CFJcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
2239
+ _chunkIMB4PIARcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
2240
2240
  ...tailwindVitePlugin ? [tailwindVitePlugin] : [],
2241
2241
  ...rendererVitePlugins,
2242
2242
  ...config.vite.plugins || [],
@@ -2297,7 +2297,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2297
2297
  } : void 0,
2298
2298
  // Ensure React is bundled for client
2299
2299
  resolve: {
2300
- alias: _chunkGIWC4CFJcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
2300
+ alias: _chunkIMB4PIARcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
2301
2301
  dedupe: [...config.renderer.dedupe || []]
2302
2302
  },
2303
2303
  // Optimize dependencies - exclude server-side code from client bundle
@@ -2310,7 +2310,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2310
2310
  ]
2311
2311
  }
2312
2312
  };
2313
- await viteBuild(_chunkGIWC4CFJcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite));
2313
+ await viteBuild(_chunkIMB4PIARcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite));
2314
2314
  await mergeBuiltFontCss(outputDir);
2315
2315
  await validateClientBuildOutput(root, srcDir, outputDir);
2316
2316
  } finally {
@@ -3069,7 +3069,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
3069
3069
  direction: {}
3070
3070
  }, plugins = [], renderer = _chunkPSV6XKPOcjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule) {
3071
3071
  const toImportPath = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (targetPath) => targetPath.replace(/\\/g, "/"), "toImportPath");
3072
- const clientPluginEntry = _chunkGIWC4CFJcjs.generateFarmClientPluginEntryCode.call(void 0,
3072
+ const clientPluginEntry = _chunkIMB4PIARcjs.generateFarmClientPluginEntryCode.call(void 0,
3073
3073
  plugins,
3074
3074
  root,
3075
3075
  srcDir,
@@ -3080,7 +3080,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
3080
3080
  import { createRoot, hydrateRoot } from "react-dom/client";` : appSetupPath ? `import React, { createRoot, hydrateRoot, configureApp as __farmConfigureApp } from ${JSON.stringify(renderer.client)};
3081
3081
  import __farmAppSetup from ${JSON.stringify(_chunk5QIKR7RRcjs.toPosixPath.call(void 0, appSetupPath))};
3082
3082
  __farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};`;
3083
- const providerClientCode = _chunkGIWC4CFJcjs.generateFarmIntegrationProviderClientCode.call(void 0,
3083
+ const providerClientCode = _chunkIMB4PIARcjs.generateFarmIntegrationProviderClientCode.call(void 0,
3084
3084
  integrationProviders,
3085
3085
  root,
3086
3086
  _nullishCoalesce(renderer.componentExtensions, () => ( []))
@@ -3565,7 +3565,7 @@ function hasHydratableLayout(pathname) {
3565
3565
  });
3566
3566
  }
3567
3567
 
3568
- ${_chunkGIWC4CFJcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
3568
+ ${_chunkIMB4PIARcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
3569
3569
  // Wrap a page element with applicable layouts
3570
3570
  function wrapWithLayouts(pageElement, pathname, params) {
3571
3571
  const layouts = getApplicableLayouts(pathname);
@@ -4480,7 +4480,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4480
4480
  _path2.default.join(postcssConfigDir, "postcss.config.cjs"),
4481
4481
  "module.exports = { plugins: [] };\n"
4482
4482
  );
4483
- tailwindVitePlugin = await _chunkGIWC4CFJcjs.loadTailwindVitePlugin.call(void 0, {
4483
+ tailwindVitePlugin = await _chunkIMB4PIARcjs.loadTailwindVitePlugin.call(void 0, {
4484
4484
  builder: productionVite.builder,
4485
4485
  label: "for SSR"
4486
4486
  });
@@ -4576,7 +4576,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4576
4576
  }
4577
4577
  const middlewareRoutes = await discoverMiddlewareRoutes(appDirs);
4578
4578
  const instrumentationPath = _chunkKCMTCM6Icjs.resolveFarmInstrumentationFile.call(void 0, root, config.srcDir || "src");
4579
- const notFoundPath = _chunkGIWC4CFJcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
4579
+ const notFoundPath = _chunkIMB4PIARcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
4580
4580
  if (notFoundPath) _chunk5QIKR7RRcjs.logger.info(`\u{1F4CB} Found custom 404 page: ${notFoundPath}`);
4581
4581
  layoutRoutes.sort((a, b) => {
4582
4582
  const depthA = a.pattern.split("/").filter(Boolean).length;
@@ -4599,7 +4599,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4599
4599
  const hasObservabilityHandler = !!config.observability && typeof config.observability === "object" && "onEvent" in config.observability;
4600
4600
  const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _56 => _56.mdx, 'optionalAccess', _57 => _57.components]));
4601
4601
  const hasMiddlewareConfig = hasFarmMiddlewareConfig(config.middleware);
4602
- const hasRouteContextConfig = _chunkJFHKNFEOcjs.hasCustomFarmRouteContext.call(void 0, config);
4602
+ const hasRouteContextConfig = _chunkDFLLARUKcjs.hasCustomFarmRouteContext.call(void 0, config);
4603
4603
  const hasServerRuntimePlugins = hasFarmServerRuntimePlugins(config);
4604
4604
  const hasPluginRoutes = hasFarmPluginRoutes(config);
4605
4605
  const configModulePath = hasServerRuntimeIntegrations || hasObservabilityHandler || hasMdxComponentConfig || hasMiddlewareConfig || hasRouteContextConfig || hasServerRuntimePlugins || hasPluginRoutes || hasIntegrationProviders ? await findFarmConfigPath(root) : null;
@@ -4608,7 +4608,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4608
4608
  const hasConfiguredRuntimePlugins = Boolean(
4609
4609
  hasRuntimeConfigModule && (config.plugins || []).length > 0
4610
4610
  );
4611
- 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 _chunkZDILFMWNcjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
4611
+ 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 _chunkMXDTKXO6cjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
4612
4612
  root,
4613
4613
  srcDir: config.srcDir,
4614
4614
  clientEntry: FARM_CLIENT_JS_SRC_PLACEHOLDER,
@@ -4758,7 +4758,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4758
4758
  __FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _68 => _68.env, 'optionalAccess', _69 => _69.public]) || {})
4759
4759
  },
4760
4760
  plugins: [
4761
- _chunkGIWC4CFJcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
4761
+ _chunkIMB4PIARcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
4762
4762
  ...tailwindVitePlugin ? [tailwindVitePlugin] : [],
4763
4763
  ...rendererVitePlugins,
4764
4764
  ...config.vite.plugins || [],
@@ -4805,7 +4805,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4805
4805
  resolve: {
4806
4806
  alias: [
4807
4807
  ...shouldAliasReactServerToWebBuild(config.renderer, preset) ? [createFarmReactWebServerAlias(hasReactDomEdgeServerBuild(root))] : [],
4808
- ...Object.entries(_chunkGIWC4CFJcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
4808
+ ...Object.entries(_chunkIMB4PIARcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
4809
4809
  ([find, replacement]) => ({ find, replacement })
4810
4810
  )
4811
4811
  ],
@@ -4813,7 +4813,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4813
4813
  dedupe: [...config.renderer.dedupe || []]
4814
4814
  }
4815
4815
  };
4816
- await viteBuild(_chunkGIWC4CFJcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
4816
+ await viteBuild(_chunkIMB4PIARcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
4817
4817
  } finally {
4818
4818
  if (postcssConfigDir) {
4819
4819
  try {
@@ -5232,7 +5232,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
5232
5232
  `Integration provider components are not supported by the "${config.renderer.name}" renderer.`
5233
5233
  );
5234
5234
  }
5235
- const providerServerModules = _chunkGIWC4CFJcjs.generateFarmIntegrationProviderServerModules.call(void 0,
5235
+ const providerServerModules = _chunkIMB4PIARcjs.generateFarmIntegrationProviderServerModules.call(void 0,
5236
5236
  renderedIntegrationProviders,
5237
5237
  config.root,
5238
5238
  _nullishCoalesce(config.renderer.componentExtensions, () => ( []))
@@ -5252,14 +5252,14 @@ function isolateFarmRouteServerPage(element) { return element; }`;
5252
5252
  const unsupportedIntegrationProvider = renderedIntegrationProviders.find(
5253
5253
  (provider) => provider.supportsIsolatedHydration !== true
5254
5254
  );
5255
- const isolatedHydrationMode = _chunkGIWC4CFJcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
5255
+ const isolatedHydrationMode = _chunkIMB4PIARcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
5256
5256
  _optionalChain([config, 'access', _88 => _88.experimental, 'optionalAccess', _89 => _89.isolatedClientHydration]),
5257
5257
  {
5258
5258
  serverComponents: _optionalChain([config, 'access', _90 => _90.experimental, 'optionalAccess', _91 => _91.serverComponents]) === true,
5259
5259
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
5260
5260
  }
5261
5261
  );
5262
- const hydrationPlanOptions = _chunkGIWC4CFJcjs.getFarmClientHydrationPlanOptions.call(void 0,
5262
+ const hydrationPlanOptions = _chunkIMB4PIARcjs.getFarmClientHydrationPlanOptions.call(void 0,
5263
5263
  config.renderer,
5264
5264
  Boolean(unsupportedIntegrationProvider)
5265
5265
  );
@@ -5274,7 +5274,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
5274
5274
  hydrationPlanOptions
5275
5275
  )
5276
5276
  }));
5277
- const markdownPagePlan = _chunkGIWC4CFJcjs.createMarkdownPageHydrationPlanner.call(void 0,
5277
+ const markdownPagePlan = _chunkIMB4PIARcjs.createMarkdownPageHydrationPlanner.call(void 0,
5278
5278
  _chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkOHY2ZWUGcjs.resolveMdxConfig.call(void 0, config.mdx), config.root),
5279
5279
  config.root,
5280
5280
  isolatedHydrationMode,
@@ -5283,7 +5283,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
5283
5283
  const pageHydrationPlans = new Map(
5284
5284
  pageRoutes.map((route) => [
5285
5285
  route.modulePath,
5286
- _chunkNXG66MR7cjs.isFarmMarkdownPageFile.call(void 0, route.modulePath) ? markdownPagePlan() : getCachedClientModuleHydrationPlan(
5286
+ _chunkX7KZBF63cjs.isFarmMarkdownPageFile.call(void 0, route.modulePath) ? markdownPagePlan() : getCachedClientModuleHydrationPlan(
5287
5287
  route.modulePath,
5288
5288
  config.root,
5289
5289
  isolatedHydrationMode,
@@ -5292,7 +5292,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
5292
5292
  )
5293
5293
  ])
5294
5294
  );
5295
- _chunkGIWC4CFJcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
5295
+ _chunkIMB4PIARcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
5296
5296
  layoutHydrationPlans.map((layout) => ({
5297
5297
  pattern: layout.pattern,
5298
5298
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -5333,7 +5333,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
5333
5333
  }).map(({ route }) => route);
5334
5334
  orderedPageRoutes.forEach((route, index) => {
5335
5335
  const varName = `pageRoute${index}`;
5336
- if (_chunkNXG66MR7cjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) {
5336
+ if (_chunkX7KZBF63cjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) {
5337
5337
  pageRegistrations.push(`
5338
5338
  {
5339
5339
  pattern: ${JSON.stringify(route.pattern)},
@@ -5776,7 +5776,7 @@ const farmResolvedRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs);
5776
5776
 
5777
5777
  function FarmDefault404Page() {
5778
5778
  return React.createElement(React.Fragment, null,
5779
- React.createElement("style", null, ${JSON.stringify(_chunkGIWC4CFJcjs.DEFAULT_NOT_FOUND_STYLES)}),
5779
+ React.createElement("style", null, ${JSON.stringify(_chunkIMB4PIARcjs.DEFAULT_NOT_FOUND_STYLES)}),
5780
5780
  React.createElement("main", {
5781
5781
  className: "farm-default-not-found",
5782
5782
  "aria-labelledby": "farm-default-not-found-title",
@@ -5987,6 +5987,9 @@ const farmDocsHandler = ${_optionalChain([config, 'access', _117 => _117.docs, '
5987
5987
  contentDir: farmDocsResolvedConfig.contentDir || farmDocsResolvedConfig.config?.contentDir,
5988
5988
  }, {
5989
5989
  rootDir: farmDocsRuntimeRoot,
5990
+ // A production build's content cannot change, so the adapter reads its
5991
+ // navigation once instead of scanning the content directory per request.
5992
+ immutableContent: true,
5990
5993
  clientEntry: "/__farm_client_js_src__",
5991
5994
  // Font CSS is merged into the client stylesheet; farm-fonts.css only exists when the
5992
5995
  // app has fonts, so linking it separately 404'd for apps without them.
@@ -6015,7 +6018,7 @@ const apiRoutes = ${apiRoutes.length > 0 ? "mergePluginAPIRoutes(" : ""}[${apiRe
6015
6018
  ]${apiRoutes.length > 0 ? `, configuredPlugins, ${JSON.stringify(apiRoutes.map(({ path: path7, methods }) => ({ path: path7, methods })))}, { bodySizeLimit: ${JSON.stringify(config.server.bodySizeLimit)} })` : ""};
6016
6019
  const farmLocalAPIBasePath = ${JSON.stringify(_chunkWPYFSQKKcjs.resolveFarmAPIServerBasePath.call(void 0, config.api))};
6017
6020
  const farmOpenAPIReference = ${JSON.stringify(openAPIReference)};
6018
- ${_optionalChain([config, 'access', _121 => _121.agent, 'optionalAccess', _122 => _122.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkNPPL5YDTcjs.resolveFarmApiCatalogInput.call(void 0, config))};
6021
+ ${_optionalChain([config, 'access', _121 => _121.agent, 'optionalAccess', _122 => _122.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkYVGAEAA5cjs.resolveFarmApiCatalogInput.call(void 0, config))};
6019
6022
  ` : ""}
6020
6023
  function isFarmLocalAPIPathname(pathname) {
6021
6024
  return farmLocalAPIBasePath !== "/" &&
@@ -6455,7 +6458,7 @@ function peelFarmDocumentPrefix(markup) {
6455
6458
  let inner = markup.replace(/^\\s+/, "");
6456
6459
  let hoisted = "";
6457
6460
  const wrapper = /^<div\\b[^>]*style=["']display\\s*:\\s*contents["'][^>]*>/i;
6458
- const hoistable = /${_chunkGIWC4CFJcjs.HOISTED_HEAD_ELEMENT.source}/i;
6461
+ const hoistable = /${_chunkIMB4PIARcjs.HOISTED_HEAD_ELEMENT.source}/i;
6459
6462
  let match;
6460
6463
  while ((match = wrapper.exec(inner) || hoistable.exec(inner))) {
6461
6464
  if (!/^<div/i.test(match[0])) hoisted += match[0];
@@ -7775,7 +7778,7 @@ async function handleFarmRequestInContext(
7775
7778
  ` : ""}
7776
7779
  ${_optionalChain([config, 'access', _137 => _137.agent, 'optionalAccess', _138 => _138.apiCatalog]) ? `
7777
7780
  // agent.apiCatalog: list the OpenAPI and MCP surfaces at the RFC 9727 path.
7778
- if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkNPPL5YDTcjs.FARM_API_CATALOG_PATH)}) {
7781
+ if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkYVGAEAA5cjs.FARM_API_CATALOG_PATH)}) {
7779
7782
  return applyProductionMiddlewareHeaders(
7780
7783
  createFarmApiCatalogResponse(request.method, farmApiCatalogInput, request),
7781
7784
  middlewareHeaders,
@@ -9091,7 +9094,7 @@ function getPhysicalPrerenderBypassReason(options) {
9091
9094
  }
9092
9095
  if (appMiddlewareMayHandlePath(middlewareRoutes, pathname)) return "app middleware";
9093
9096
  if (configMiddlewareMayHandlePath(config.middleware, pathname)) return "configured middleware";
9094
- if (_chunkJFHKNFEOcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
9097
+ if (_chunkDFLLARUKcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
9095
9098
  if (farmServerRuntimePluginsMayHandlePath(config, pathname)) return "server runtime plugin";
9096
9099
  const manifestEntry = getManifestPageEntry(routeRuntimeManifest, pathname);
9097
9100
  if (_optionalChain([manifestEntry, 'optionalAccess', _158 => _158.rendering]) === "dynamic") return "dynamic runtime manifest";
@@ -9117,7 +9120,7 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
9117
9120
  const nitroBuilder = nitroBuilderResult.value;
9118
9121
  const isVercel = preset === "vercel" || preset === "vercel-edge";
9119
9122
  const isCloudflareWorker = preset === "cloudflare-module";
9120
- const outputDir = _chunkJFHKNFEOcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
9123
+ const outputDir = _chunkDFLLARUKcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
9121
9124
  const runtimeServerOutputDir = isVercel ? _path2.default.join(outputDir, "functions", "__nitro.func") : _path2.default.join(outputDir, "server");
9122
9125
  const ssrOutputDir = _path2.default.join(root, distDir, "ssr");
9123
9126
  const imageRuntime = resolveImageRuntime(config, preset);
@@ -9415,6 +9418,11 @@ function toFarmNodeResponse(request, response) {
9415
9418
  baseURL: "/"
9416
9419
  }
9417
9420
  ],
9421
+ // A self-hosted Node server sends static files itself, so precompress them
9422
+ // with gzip and let Nitro serve that by Accept-Encoding. Brotli at Nitro's
9423
+ // fixed top quality cost a docs app ~20 s of build CPU for a small further
9424
+ // saving. Serverless and edge targets sit behind a CDN that compresses.
9425
+ ...preset === "node-server" ? { compressPublicAssets: { gzip: true } } : {},
9418
9426
  ...prerenderRoutes.length > 0 ? {
9419
9427
  prerender: {
9420
9428
  crawlLinks: false,
@@ -9515,7 +9523,7 @@ function toFarmNodeResponse(request, response) {
9515
9523
  if (_optionalChain([config, 'access', _178 => _178.md, 'optionalAccess', _179 => _179.enabled])) {
9516
9524
  nitroInstance.hooks.hook("prerender:generate", (route) => {
9517
9525
  if (!route.contents || !_optionalChain([route, 'access', _180 => _180.contentType, 'optionalAccess', _181 => _181.toLowerCase, 'call', _182 => _182(), 'access', _183 => _183.includes, 'call', _184 => _184("html")])) return;
9518
- const alternatePath = _chunk6CNX6Q3Kcjs.getFarmMarkdownAlternatePath.call(void 0, config.md, route.route);
9526
+ const alternatePath = _chunkKJ2TIHZZcjs.getFarmMarkdownAlternatePath.call(void 0, config.md, route.route);
9519
9527
  if (!alternatePath) return;
9520
9528
  const routeRule = nitroInstance.options.routeRules[route.route] || {};
9521
9529
  const alternate = `<${alternatePath}>; rel="alternate"; type="text/markdown"`;
@@ -9536,7 +9544,7 @@ function toFarmNodeResponse(request, response) {
9536
9544
  if (config.security.csp && config.security.csp.nonce) {
9537
9545
  nitroInstance.hooks.hook("prerender:generate", async (route) => {
9538
9546
  if (!route.contents || !_optionalChain([route, 'access', _185 => _185.contentType, 'optionalAccess', _186 => _186.toLowerCase, 'call', _187 => _187(), 'access', _188 => _188.includes, 'call', _189 => _189("html")])) return;
9539
- const staticCsp = await _chunkXLTV4VOGcjs.applyFarmCspHashesToHtml.call(void 0, route.contents, config.security);
9547
+ const staticCsp = await _chunkCUMINO7Zcjs.applyFarmCspHashesToHtml.call(void 0, route.contents, config.security);
9540
9548
  if (!staticCsp) return;
9541
9549
  route.contents = staticCsp.html;
9542
9550
  const routeRule = nitroInstance.options.routeRules[route.route] || {};
@@ -9803,7 +9811,7 @@ async function copyFarmDocsContentForVercel(config, root, nitroFuncDir, fs) {
9803
9811
  const docsContentDir = resolveBuildDocsContentDir(config, root);
9804
9812
  if (!docsContentDir) return;
9805
9813
  const bundledContentDir = _path2.default.join(nitroFuncDir, "farm-docs-content");
9806
- const lastModifiedManifest = _chunkQ5JFU33Qcjs.createFarmDocsLastModifiedManifest.call(void 0, docsContentDir, {
9814
+ const lastModifiedManifest = _chunk2FXWWUE5cjs.createFarmDocsLastModifiedManifest.call(void 0, docsContentDir, {
9807
9815
  fallback: "now"
9808
9816
  });
9809
9817
  await fs.rm(bundledContentDir, { recursive: true, force: true });
@@ -9813,7 +9821,7 @@ async function copyFarmDocsContentForVercel(config, root, nitroFuncDir, fs) {
9813
9821
  force: true
9814
9822
  });
9815
9823
  await fs.writeFile(
9816
- _path2.default.join(bundledContentDir, _chunkQ5JFU33Qcjs.FARM_DOCS_LAST_MODIFIED_MANIFEST),
9824
+ _path2.default.join(bundledContentDir, _chunk2FXWWUE5cjs.FARM_DOCS_LAST_MODIFIED_MANIFEST),
9817
9825
  `${JSON.stringify(lastModifiedManifest, null, 2)}
9818
9826
  `
9819
9827
  );
@@ -9890,7 +9898,7 @@ async function stageSharpRuntime(config, root, distDir, fs, preset) {
9890
9898
  try {
9891
9899
  await copyPackage("sharp", sharpRequire);
9892
9900
  if (!copiedPackages.has("sharp")) {
9893
- throw new Error(`Farm image optimization requires sharp. ${_chunkGIWC4CFJcjs.SHARP_INSTALL_HINT}`);
9901
+ throw new Error(`Farm image optimization requires sharp. ${_chunkIMB4PIARcjs.SHARP_INSTALL_HINT}`);
9894
9902
  }
9895
9903
  } catch (error) {
9896
9904
  await fs.rm(stageDir, { recursive: true, force: true });
@@ -10104,7 +10112,7 @@ function createBuildTargetBaseline(config) {
10104
10112
  preset,
10105
10113
  distDir,
10106
10114
  outputDir,
10107
- outputWasDerived: outputDir === _chunkJFHKNFEOcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
10115
+ outputWasDerived: outputDir === _chunkDFLLARUKcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
10108
10116
  };
10109
10117
  }
10110
10118
  _chunkS3JO3N4Hcjs.__name.call(void 0, createBuildTargetBaseline, "createBuildTargetBaseline");
@@ -10114,8 +10122,8 @@ function resolveBuildTargets(config, options, baseline) {
10114
10122
  const distDir = config.distDir || ".farm";
10115
10123
  const outputWasReplaced = config.deploy.outputDir !== baseline.outputDir;
10116
10124
  const shouldRefreshDerivedOutput = baseline.outputWasDerived && !outputWasReplaced && (preset !== baseline.preset || distDir !== baseline.distDir);
10117
- const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkJFHKNFEOcjs.getDeployTargetForPreset.call(void 0, preset);
10118
- const outputDir = shouldRefreshDerivedOutput ? _chunkJFHKNFEOcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
10125
+ const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkDFLLARUKcjs.getDeployTargetForPreset.call(void 0, preset);
10126
+ const outputDir = shouldRefreshDerivedOutput ? _chunkDFLLARUKcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
10119
10127
  return {
10120
10128
  root,
10121
10129
  preset,
@@ -10123,7 +10131,7 @@ function resolveBuildTargets(config, options, baseline) {
10123
10131
  distDir,
10124
10132
  deployTarget,
10125
10133
  outputDir,
10126
- deployOutputDir: _chunkJFHKNFEOcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
10134
+ deployOutputDir: _chunkDFLLARUKcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
10127
10135
  };
10128
10136
  }
10129
10137
  _chunkS3JO3N4Hcjs.__name.call(void 0, resolveBuildTargets, "resolveBuildTargets");
@@ -10132,7 +10140,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
10132
10140
  const targetBaseline = createBuildTargetBaseline(config);
10133
10141
  let targets;
10134
10142
  const productionViteResultPromise = options.universal === false ? void 0 : Promise.allSettled([Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkA6WIQH5Zcjs.loadFarmProductionVite.call(void 0, ))))]);
10135
- const pluginManager = new (0, _chunkGIWC4CFJcjs.PluginManager)({
10143
+ const pluginManager = new (0, _chunkIMB4PIARcjs.PluginManager)({
10136
10144
  config,
10137
10145
  isDev: false,
10138
10146
  isProd: true
@@ -10161,7 +10169,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
10161
10169
  };
10162
10170
  config = {
10163
10171
  ...config,
10164
- images: _chunkGIWC4CFJcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
10172
+ images: _chunkIMB4PIARcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
10165
10173
  root: targets.root,
10166
10174
  preset: targets.preset
10167
10175
  })
@@ -10189,7 +10197,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
10189
10197
  root,
10190
10198
  rendererBuild.signal
10191
10199
  );
10192
- const farmApp = _chunkGIWC4CFJcjs.createFarmApp.call(void 0, config, projectModuleServer);
10200
+ const farmApp = _chunkIMB4PIARcjs.createFarmApp.call(void 0, config, projectModuleServer);
10193
10201
  await farmApp.initialize();
10194
10202
  const routeManager = farmApp.getRouteManager();
10195
10203
  const serverRenderer = farmApp.getServerRenderer();
@@ -10200,7 +10208,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
10200
10208
  plugins: config.plugins,
10201
10209
  extraRoutes: [
10202
10210
  ..._optionalChain([config, 'access', _196 => _196.openapi, 'optionalAccess', _197 => _197.enabled]) && config.openapi.route ? [config.openapi.route] : [],
10203
- ..._chunkQ5JFU33Qcjs.getFarmDocsRouteTypeEntries.call(void 0, config.docs)
10211
+ ..._chunk2FXWWUE5cjs.getFarmDocsRouteTypeEntries.call(void 0, config.docs)
10204
10212
  ],
10205
10213
  suppressLintOnLink: config.suppressLintOnLink,
10206
10214
  componentExtensions: config.renderer.componentExtensions,
@@ -10296,7 +10304,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
10296
10304
  ssr: true,
10297
10305
  buildLifetime
10298
10306
  });
10299
- const viteConfig = _chunkGIWC4CFJcjs.mergeFarmViteConfig.call(void 0,
10307
+ const viteConfig = _chunkIMB4PIARcjs.mergeFarmViteConfig.call(void 0,
10300
10308
  {
10301
10309
  root,
10302
10310
  appType: "custom",
@@ -10308,7 +10316,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
10308
10316
  },
10309
10317
  plugins: [
10310
10318
  ...rendererVitePlugins,
10311
- _chunkGIWC4CFJcjs.farmFontImportsPlugin.call(void 0, {
10319
+ _chunkIMB4PIARcjs.farmFontImportsPlugin.call(void 0, {
10312
10320
  root,
10313
10321
  basePath: config.basePath,
10314
10322
  publicDir: config.publicDir
@@ -10320,7 +10328,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
10320
10328
  hmr: false
10321
10329
  },
10322
10330
  resolve: {
10323
- alias: _chunkGIWC4CFJcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
10331
+ alias: _chunkIMB4PIARcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
10324
10332
  dedupe: [...config.renderer.dedupe || []]
10325
10333
  },
10326
10334
  optimizeDeps: {
@@ -10441,7 +10449,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
10441
10449
  if (pluginManager) {
10442
10450
  nitroConfig = await pluginManager.runHookSerial("beforeNitroBuild", nitroConfig);
10443
10451
  }
10444
- const outputDir = _chunkJFHKNFEOcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
10452
+ const outputDir = _chunkDFLLARUKcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
10445
10453
  const serverOutputDir = _path2.default.join(outputDir, "server");
10446
10454
  const publicOutputDir = _path2.default.join(outputDir, "public");
10447
10455
  const { mkdir, cp } = await import("fs/promises");
@@ -10512,7 +10520,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
10512
10520
  root,
10513
10521
  preset,
10514
10522
  distDir,
10515
- outputDir: _chunkJFHKNFEOcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
10523
+ outputDir: _chunkDFLLARUKcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
10516
10524
  });
10517
10525
  }
10518
10526
  }