@farm.js/core 0.1.43 → 0.1.45
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.
- package/dist/{agent-mcp-3KDz4hr9.d.mts → agent-mcp-CWI-awqd.d.mts} +1 -1
- package/dist/{agent-mcp-6yRebHk7.d.ts → agent-mcp-EnzWYv_X.d.ts} +1 -1
- package/dist/agent-runtime.cjs +3 -2
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/agent-runtime.mjs +2 -1
- package/dist/api/route-manager.d.mts +3 -3
- package/dist/api/route-manager.d.ts +3 -3
- package/dist/api/runtime.d.mts +2 -2
- package/dist/api/runtime.d.ts +2 -2
- package/dist/api.d.mts +3 -3
- package/dist/api.d.ts +3 -3
- package/dist/{app-8Db1zR-2.d.ts → app-CAN_2Cqo.d.ts} +4 -4
- package/dist/{app-DlTWv4cn.d.mts → app-DG3dE8v5.d.mts} +4 -4
- package/dist/{app-manifest-TRzS7ZZ9.d.mts → app-manifest-8x5VjZ0L.d.mts} +1 -1
- package/dist/{app-manifest-cO2jkG1F.d.ts → app-manifest-DazjgQya.d.ts} +1 -1
- package/dist/app-markdown.d.mts +2 -2
- package/dist/app-markdown.d.ts +2 -2
- package/dist/{chunk-YBDSTNMH.cjs → chunk-2DZOABRK.cjs} +1 -1
- package/dist/{chunk-OYSGGV6O.mjs → chunk-2NCY6O6Q.mjs} +5 -5
- package/dist/{chunk-AX7S67YV.mjs → chunk-37VKVISD.mjs} +9 -173
- package/dist/chunk-3SAWHWDH.cjs +186 -0
- package/dist/{chunk-RHGK2JEN.cjs → chunk-B6XAA7V6.cjs} +18 -182
- package/dist/{chunk-RQYTOFQM.cjs → chunk-CW6SNEN2.cjs} +2 -2
- package/dist/{chunk-T7J7E63D.cjs → chunk-E22SWCXB.cjs} +2 -2
- package/dist/{chunk-ZYWJIPKQ.mjs → chunk-FDCV5OCT.mjs} +1 -1
- package/dist/{chunk-YGZH4T2X.mjs → chunk-FHQZJJQR.mjs} +1 -1
- package/dist/chunk-GZWHCWLB.mjs +186 -0
- package/dist/{chunk-JDJAPCR2.cjs → chunk-I5IO3ASU.cjs} +92 -90
- package/dist/{chunk-XARSG2TG.mjs → chunk-IOMVXBLZ.mjs} +1 -1
- package/dist/{chunk-VLXNGUKO.mjs → chunk-JVXW76I7.mjs} +1 -1
- package/dist/{chunk-7SCCY6SI.mjs → chunk-K5DHVEXC.mjs} +3 -3
- package/dist/{chunk-BKPXWRTT.cjs → chunk-KVN3YEFF.cjs} +6 -6
- package/dist/{chunk-LVABUXLA.cjs → chunk-LPE3ED4R.cjs} +2 -2
- package/dist/{chunk-NXO75WY4.mjs → chunk-OYZGFRPA.mjs} +1 -1
- package/dist/{chunk-RACQTC7K.cjs → chunk-SIVK2SRR.cjs} +52 -52
- package/dist/{chunk-GVNCWSQV.cjs → chunk-UN4B2TXC.cjs} +4 -4
- package/dist/{chunk-4OCEMK72.mjs → chunk-VR64PHNT.mjs} +10 -8
- package/dist/{chunk-4MRQ5OKQ.mjs → chunk-WWYXIECF.mjs} +1 -1
- package/dist/{chunk-TESO7EFU.mjs → chunk-X6YOWNDZ.mjs} +2 -2
- package/dist/{chunk-VIVQERJ5.cjs → chunk-YAD64RWI.cjs} +57 -57
- package/dist/{chunk-HUMEHX24.cjs → chunk-YN2QEMMO.cjs} +2 -2
- package/dist/{client-plugins-kwQuZcWq.d.ts → client-plugins-BGS0wqzc.d.ts} +16 -15
- package/dist/{client-plugins-Cv0OJtnM.d.mts → client-plugins-nQ0tYt4l.d.mts} +16 -15
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.d.mts +5 -5
- package/dist/client.d.ts +5 -5
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/{devtools-MLB3JJMC.cjs → devtools-5Q7VRKVH.cjs} +4 -3
- package/dist/{devtools-M22FEFPK.mjs → devtools-LJ4IGYGW.mjs} +3 -2
- package/dist/docs.cjs +5 -4
- package/dist/docs.d.mts +2 -2
- package/dist/docs.d.ts +2 -2
- package/dist/docs.mjs +4 -3
- package/dist/{index-DAl0QTZS.d.ts → index-Cy26isrh.d.ts} +1 -1
- package/dist/{index-CQOp8EmB.d.mts → index-y1jgR74U.d.mts} +1 -1
- package/dist/index.cjs +13 -11
- package/dist/index.d.mts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.mjs +14 -12
- package/dist/integrations.cjs +5 -3
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/integrations.mjs +6 -4
- package/dist/internal/app-markdown-runtime.d.mts +2 -2
- package/dist/internal/app-markdown-runtime.d.ts +2 -2
- package/dist/internal/build-runtime.cjs +11 -10
- package/dist/internal/build-runtime.d.mts +3 -3
- package/dist/internal/build-runtime.d.ts +3 -3
- package/dist/internal/build-runtime.mjs +10 -9
- package/dist/internal/cli-runtime.cjs +5 -4
- package/dist/internal/cli-runtime.mjs +4 -3
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/compression-runtime.d.mts +1 -1
- package/dist/internal/compression-runtime.d.ts +1 -1
- package/dist/internal/config-runtime.cjs +4 -3
- package/dist/internal/config-runtime.d.mts +2 -2
- package/dist/internal/config-runtime.d.ts +2 -2
- package/dist/internal/config-runtime.mjs +3 -2
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +5 -11
- package/dist/internal/production-runtime.d.mts +10 -10
- package/dist/internal/production-runtime.d.ts +10 -10
- package/dist/internal/production-runtime.mjs +4 -10
- package/dist/markdown.d.mts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/middleware.d.mts +3 -3
- package/dist/middleware.d.ts +3 -3
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/plugin.cjs +7 -6
- package/dist/plugin.d.mts +3 -3
- package/dist/plugin.d.ts +3 -3
- package/dist/plugin.mjs +6 -5
- package/dist/{production-runtime-5nArjFpn.d.ts → production-runtime-BVMDgHrA.d.ts} +1 -1
- package/dist/{production-runtime-BzsF2z5F.d.mts → production-runtime-ClFA_1KQ.d.mts} +1 -1
- package/dist/{render-plan-B9yQorV4.d.mts → render-plan-CoSovy_O.d.mts} +1 -1
- package/dist/{render-plan-fg6E_HvL.d.ts → render-plan-y2DefWf8.d.ts} +1 -1
- package/dist/renderer-client.d.mts +3 -3
- package/dist/renderer-client.d.ts +3 -3
- package/dist/{request-gz8vFK0n.d.ts → request-aG5Wovm5.d.ts} +1 -1
- package/dist/{request-C4j_g-BH.d.mts → request-cNM09Q7e.d.mts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{route-rendering-DamyKVi3.d.ts → route-rendering-B3uQmCWX.d.ts} +1 -1
- package/dist/{route-rendering-iTTOwz1f.d.mts → route-rendering-EyInfsjI.d.mts} +1 -1
- package/dist/{router-OVjDqVo8.d.ts → router-DNUf-Bg1.d.ts} +1 -1
- package/dist/{router-EoSzHlos.d.mts → router-Devibh4r.d.mts} +1 -1
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/{rsc-pipeline-YCDRJME4.cjs → rsc-pipeline-4ZJ6GUVQ.cjs} +5 -4
- package/dist/{rsc-pipeline-LK4K5JFK.mjs → rsc-pipeline-KK6GFDET.mjs} +4 -3
- package/dist/{runtime-DDH4tiuF.d.mts → runtime-9KZb8AI5.d.mts} +1 -1
- package/dist/{runtime-CwiuozLd.d.ts → runtime-CLr9P5kn.d.ts} +1 -1
- package/dist/server-plugins.d.mts +2 -2
- package/dist/server-plugins.d.ts +2 -2
- package/dist/server.cjs +22 -21
- package/dist/server.d.mts +9 -9
- package/dist/server.d.ts +9 -9
- package/dist/server.mjs +8 -7
- package/dist/{spa-router-Br4qFCWf.d.mts → spa-router-BIxh4IY-.d.mts} +2 -2
- package/dist/{spa-router-BsWUKH73.d.ts → spa-router-Ds6R_oe-.d.ts} +2 -2
- package/dist/{ssg-Donyfcxy.d.mts → ssg-ByrOVYdM.d.mts} +2 -2
- package/dist/{ssg-Csy2vwpi.d.ts → ssg-XnMHCyEc.d.ts} +2 -2
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/{utils-Luk72LXC.d.ts → utils-BN70ueSN.d.ts} +1 -1
- package/dist/{utils-d_k1ZZw0.d.mts → utils-BrjR5xRs.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +7 -6
- package/dist/vite.d.mts +4 -4
- package/dist/vite.d.ts +4 -4
- package/dist/vite.mjs +6 -5
- package/package.json +1 -1
|
@@ -11,13 +11,13 @@ var _chunkCGR525MJcjs = require('./chunk-CGR525MJ.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkKVN3YEFFcjs = require('./chunk-KVN3YEFF.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkYN2QEMMOcjs = require('./chunk-YN2QEMMO.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -45,7 +45,7 @@ var _chunkIK6LVLKCcjs = require('./chunk-IK6LVLKC.cjs');
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _chunkLPE3ED4Rcjs = require('./chunk-LPE3ED4R.cjs');
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
var _chunkKCMTCM6Icjs = require('./chunk-KCMTCM6I.cjs');
|
|
@@ -82,7 +82,7 @@ var _chunk2SJ4RQ6Pcjs = require('./chunk-2SJ4RQ6P.cjs');
|
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
|
|
85
|
-
var
|
|
85
|
+
var _chunkSIVK2SRRcjs = require('./chunk-SIVK2SRR.cjs');
|
|
86
86
|
|
|
87
87
|
|
|
88
88
|
var _chunk45QJHGZMcjs = require('./chunk-45QJHGZM.cjs');
|
|
@@ -109,7 +109,7 @@ var _chunk3XEMGDBFcjs = require('./chunk-3XEMGDBF.cjs');
|
|
|
109
109
|
|
|
110
110
|
|
|
111
111
|
|
|
112
|
-
var
|
|
112
|
+
var _chunkUN4B2TXCcjs = require('./chunk-UN4B2TXC.cjs');
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
var _chunkTI7UANHIcjs = require('./chunk-TI7UANHI.cjs');
|
|
@@ -186,8 +186,10 @@ var _chunkOILHPMFXcjs = require('./chunk-OILHPMFX.cjs');
|
|
|
186
186
|
|
|
187
187
|
|
|
188
188
|
|
|
189
|
+
var _chunkB6XAA7V6cjs = require('./chunk-B6XAA7V6.cjs');
|
|
189
190
|
|
|
190
|
-
|
|
191
|
+
|
|
192
|
+
var _chunk3SAWHWDHcjs = require('./chunk-3SAWHWDH.cjs');
|
|
191
193
|
|
|
192
194
|
|
|
193
195
|
|
|
@@ -222,7 +224,7 @@ var _chunk5QIKR7RRcjs = require('./chunk-5QIKR7RR.cjs');
|
|
|
222
224
|
var _chunkKNBBQHO2cjs = require('./chunk-KNBBQHO2.cjs');
|
|
223
225
|
|
|
224
226
|
|
|
225
|
-
var
|
|
227
|
+
var _chunk2DZOABRKcjs = require('./chunk-2DZOABRK.cjs');
|
|
226
228
|
|
|
227
229
|
|
|
228
230
|
var _chunkC5GUTBZKcjs = require('./chunk-C5GUTBZK.cjs');
|
|
@@ -375,7 +377,7 @@ async function compileFarmDocsManifest(docs, options) {
|
|
|
375
377
|
globalStylesheetHref: options.globalStylesheetHref,
|
|
376
378
|
isPathGuarded: options.isPathGuarded
|
|
377
379
|
});
|
|
378
|
-
const apiHandler =
|
|
380
|
+
const apiHandler = _chunkYN2QEMMOcjs.createFarmDocsAPIHandler.call(void 0, {
|
|
379
381
|
rootDir: options.root,
|
|
380
382
|
srcDir: options.srcDir,
|
|
381
383
|
docs,
|
|
@@ -1635,7 +1637,7 @@ async function findFarmConfigPath(root) {
|
|
|
1635
1637
|
_chunkS3JO3N4Hcjs.__name.call(void 0, findFarmConfigPath, "findFarmConfigPath");
|
|
1636
1638
|
function hasFarmServerRuntimePlugins(config) {
|
|
1637
1639
|
return (config.plugins || []).some((plugin) => {
|
|
1638
|
-
if (
|
|
1640
|
+
if (_chunkB6XAA7V6cjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) === false) return false;
|
|
1639
1641
|
return Boolean(
|
|
1640
1642
|
plugin.setup || plugin.init || plugin.ready || plugin.shutdown || plugin.runtime || plugin.router || plugin.render || plugin.beforeRouteMatch || plugin.afterRouteMatch || plugin.beforeRender || plugin.afterRender || plugin.onError || plugin.transformHTML
|
|
1641
1643
|
);
|
|
@@ -1648,7 +1650,7 @@ function hasFarmPluginRoutes(config) {
|
|
|
1648
1650
|
_chunkS3JO3N4Hcjs.__name.call(void 0, hasFarmPluginRoutes, "hasFarmPluginRoutes");
|
|
1649
1651
|
function farmServerRuntimePluginsMayHandlePath(config, pathname) {
|
|
1650
1652
|
return (config.plugins || []).some(
|
|
1651
|
-
(plugin) =>
|
|
1653
|
+
(plugin) => _chunkB6XAA7V6cjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false && _chunkTI7UANHIcjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, pathname)
|
|
1652
1654
|
);
|
|
1653
1655
|
}
|
|
1654
1656
|
_chunkS3JO3N4Hcjs.__name.call(void 0, farmServerRuntimePluginsMayHandlePath, "farmServerRuntimePluginsMayHandlePath");
|
|
@@ -1711,7 +1713,7 @@ async function buildUniversal(config, routeManager, apiRouteManager, serverRende
|
|
|
1711
1713
|
assertFarmDocsRuntimeSupported(config, preset);
|
|
1712
1714
|
const srcDir = config.srcDir || "src";
|
|
1713
1715
|
const distDir = config.distDir || ".farm";
|
|
1714
|
-
const deployOutputDir =
|
|
1716
|
+
const deployOutputDir = _chunkLPE3ED4Rcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
1715
1717
|
const lifecyclePluginManager = options.pluginManager;
|
|
1716
1718
|
const productionViteResultPromise = Promise.allSettled([
|
|
1717
1719
|
Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkA6WIQH5Zcjs.loadFarmProductionVite.call(void 0, ))))
|
|
@@ -1963,7 +1965,7 @@ async function mergeBuiltFontCss(outputDir, fontCssSource) {
|
|
|
1963
1965
|
}
|
|
1964
1966
|
const normalizedFontCss = typeof fontCss === "string" ? fontCss : Buffer.from(fontCss).toString("utf8");
|
|
1965
1967
|
await fs4.writeFile(fontCssPath, normalizedFontCss);
|
|
1966
|
-
await fs4.writeFile(clientCssPath,
|
|
1968
|
+
await fs4.writeFile(clientCssPath, _chunkSIVK2SRRcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
|
|
1967
1969
|
}
|
|
1968
1970
|
_chunkS3JO3N4Hcjs.__name.call(void 0, mergeBuiltFontCss, "mergeBuiltFontCss");
|
|
1969
1971
|
var _IncompleteClientBuildOutputError = class _IncompleteClientBuildOutputError extends Error {
|
|
@@ -2013,7 +2015,7 @@ function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, optio
|
|
|
2013
2015
|
const key = `${_path2.default.resolve(root)}\0${mode}\0${options.asyncOwnerIslands === true}\0${options.serverOwners === true}\0${_path2.default.resolve(modulePath)}`;
|
|
2014
2016
|
let plan = cache.get(key);
|
|
2015
2017
|
if (!plan) {
|
|
2016
|
-
plan =
|
|
2018
|
+
plan = _chunkSIVK2SRRcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
|
|
2017
2019
|
cache.set(key, plan);
|
|
2018
2020
|
}
|
|
2019
2021
|
return { ...plan, isolatedBoundaries: [...plan.isolatedBoundaries] };
|
|
@@ -2031,7 +2033,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2031
2033
|
});
|
|
2032
2034
|
pluginManager.addPlugins(config.plugins || []);
|
|
2033
2035
|
const clientPages = [];
|
|
2034
|
-
const integrationProviders =
|
|
2036
|
+
const integrationProviders = _chunkB6XAA7V6cjs.getIntegrationProviders.call(void 0, config.integrations).filter(
|
|
2035
2037
|
(provider) => provider.component || provider.type === "clerk"
|
|
2036
2038
|
);
|
|
2037
2039
|
const unsupportedIntegrationProvider = integrationProviders.find(
|
|
@@ -2042,14 +2044,14 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2042
2044
|
`[Farm.js] isolated hydration kept route-wide because integration provider "${unsupportedIntegrationProvider.name}" does not declare supportsIsolatedHydration: true.`
|
|
2043
2045
|
);
|
|
2044
2046
|
}
|
|
2045
|
-
const isolatedMode =
|
|
2047
|
+
const isolatedMode = _chunkSIVK2SRRcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
2046
2048
|
_optionalChain([config, 'access', _39 => _39.experimental, 'optionalAccess', _40 => _40.isolatedClientHydration]),
|
|
2047
2049
|
{
|
|
2048
2050
|
serverComponents: _chunkPDU4P2ICcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _41 => _41.experimental, 'optionalAccess', _42 => _42.serverComponents])) === "rsc",
|
|
2049
2051
|
hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
|
|
2050
2052
|
}
|
|
2051
2053
|
);
|
|
2052
|
-
const planOptions =
|
|
2054
|
+
const planOptions = _chunkSIVK2SRRcjs.getFarmClientHydrationPlanOptions.call(void 0,
|
|
2053
2055
|
config.renderer,
|
|
2054
2056
|
Boolean(unsupportedIntegrationProvider)
|
|
2055
2057
|
);
|
|
@@ -2100,7 +2102,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2100
2102
|
};
|
|
2101
2103
|
}
|
|
2102
2104
|
});
|
|
2103
|
-
const layoutAppliesToRoute =
|
|
2105
|
+
const layoutAppliesToRoute = _chunkUN4B2TXCcjs.routeBoundaryCoversDirectory;
|
|
2104
2106
|
const routeDirectory = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (route) => _nullishCoalesce(route.directory, () => ( route.pattern)), "routeDirectory");
|
|
2105
2107
|
const adapterOwnsDocsRuntime = Boolean(
|
|
2106
2108
|
_chunkPSV6XKPOcjs.isReactRenderer.call(void 0, config.renderer) && _optionalChain([config, 'access', _45 => _45.docs, 'optionalAccess', _46 => _46.enabled]) && _optionalChain([config, 'access', _47 => _47.docs, 'access', _48 => _48.adapter, 'optionalAccess', _49 => _49.server]) && config.docs.adapter.react
|
|
@@ -2111,7 +2113,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2111
2113
|
), "isAdapterDocsRoute");
|
|
2112
2114
|
const syntheticDocsEntry = _optionalChain([config, 'access', _52 => _52.docs, 'optionalAccess', _53 => _53.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
|
|
2113
2115
|
const syntheticDocsPatterns = syntheticDocsEntry ? syntheticDocsEntry === "/" ? ["/", "/[...slug]"] : [syntheticDocsEntry, `${syntheticDocsEntry}/[...slug]`] : [];
|
|
2114
|
-
const markdownPagePlan =
|
|
2116
|
+
const markdownPagePlan = _chunkSIVK2SRRcjs.createMarkdownPageHydrationPlanner.call(void 0,
|
|
2115
2117
|
_chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkOHY2ZWUGcjs.resolveMdxConfig.call(void 0, config.mdx), root),
|
|
2116
2118
|
root,
|
|
2117
2119
|
isolatedMode,
|
|
@@ -2127,7 +2129,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2127
2129
|
pagePlanOptions
|
|
2128
2130
|
)
|
|
2129
2131
|
}));
|
|
2130
|
-
|
|
2132
|
+
_chunkSIVK2SRRcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
|
|
2131
2133
|
clientLayouts.map((layout) => ({
|
|
2132
2134
|
pattern: layout.pattern,
|
|
2133
2135
|
depth: layout.pattern.split("/").filter(Boolean).length,
|
|
@@ -2136,7 +2138,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2136
2138
|
[
|
|
2137
2139
|
...routePlans.map(({ route, metadata }) => ({
|
|
2138
2140
|
pattern: routeDirectory(route),
|
|
2139
|
-
depth:
|
|
2141
|
+
depth: _chunkUN4B2TXCcjs.getRouteDirectoryDepth.call(void 0, routeDirectory(route)),
|
|
2140
2142
|
metadata
|
|
2141
2143
|
})),
|
|
2142
2144
|
...syntheticDocsPatterns.map((pattern) => ({
|
|
@@ -2159,7 +2161,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2159
2161
|
for (const layout of clientLayouts) {
|
|
2160
2162
|
const matchesBuiltRoute = pageRoutes.some((route) => layoutAppliesToRoute(layout.pattern, routeDirectory(route))) || Boolean(adapterDocsEntry && layoutAppliesToRoute(layout.pattern, adapterDocsEntry));
|
|
2161
2163
|
if (matchesBuiltRoute && layout.suppressedAsyncHydration) {
|
|
2162
|
-
_chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F ${
|
|
2164
|
+
_chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F ${_chunkSIVK2SRRcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`);
|
|
2163
2165
|
}
|
|
2164
2166
|
}
|
|
2165
2167
|
if (isolatedMode === "analyze") {
|
|
@@ -2183,7 +2185,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2183
2185
|
);
|
|
2184
2186
|
if (metadata.suppressedAsyncHydration) {
|
|
2185
2187
|
_chunk5QIKR7RRcjs.logger.warn(
|
|
2186
|
-
`\u26A0\uFE0F ${
|
|
2188
|
+
`\u26A0\uFE0F ${_chunkSIVK2SRRcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
|
|
2187
2189
|
);
|
|
2188
2190
|
}
|
|
2189
2191
|
if (metadata.shouldHydrate || metadata.hasIsolatedClientBoundaries || applicableClientLayouts.length > 0) {
|
|
@@ -2208,7 +2210,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2208
2210
|
...applicableClientLayouts.filter((layout) => layout.hasIsolatedClientBoundaries).flatMap((layout) => layout.isolatedBoundaries)
|
|
2209
2211
|
],
|
|
2210
2212
|
// The server renders a server tree only below a hydrating layout.
|
|
2211
|
-
...
|
|
2213
|
+
..._chunkSIVK2SRRcjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
|
|
2212
2214
|
});
|
|
2213
2215
|
_chunk5QIKR7RRcjs.logger.info(`\u{1F4F1} Found hydratable route: ${route.pattern} -> ${route.modulePath}`);
|
|
2214
2216
|
}
|
|
@@ -2244,7 +2246,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2244
2246
|
}
|
|
2245
2247
|
const clientRouteSlots = routeSlots.filter((slot) => {
|
|
2246
2248
|
try {
|
|
2247
|
-
return
|
|
2249
|
+
return _chunkSIVK2SRRcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root).shouldHydrate;
|
|
2248
2250
|
} catch (error) {
|
|
2249
2251
|
_chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
|
|
2250
2252
|
return false;
|
|
@@ -2272,9 +2274,9 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2272
2274
|
config.renderer,
|
|
2273
2275
|
config.publicRuntimeConfig,
|
|
2274
2276
|
config.trailingSlash,
|
|
2275
|
-
|
|
2277
|
+
_chunkB6XAA7V6cjs.getIntegrationProviders.call(void 0, config.integrations),
|
|
2276
2278
|
config.basePath,
|
|
2277
|
-
|
|
2279
|
+
_chunkSIVK2SRRcjs.generateClientCachePersistenceCode.call(void 0, _chunkSIVK2SRRcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
|
|
2278
2280
|
adapterOwnsDocsRuntime ? _chunkCY2ZQ5C6cjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0,
|
|
2279
2281
|
_chunkPDU4P2ICcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _59 => _59.experimental, 'optionalAccess', _60 => _60.serverComponents])) === "islands"
|
|
2280
2282
|
);
|
|
@@ -2363,7 +2365,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2363
2365
|
}
|
|
2364
2366
|
},
|
|
2365
2367
|
plugins: [
|
|
2366
|
-
|
|
2368
|
+
_chunkSIVK2SRRcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
2367
2369
|
createFarmPrivateClientSourcemapsPlugin({
|
|
2368
2370
|
outDir: _path2.default.join(_path2.default.dirname(outputDir), FARM_CLIENT_SOURCEMAPS_DIR)
|
|
2369
2371
|
}),
|
|
@@ -2388,7 +2390,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2388
2390
|
...rendererVitePlugins,
|
|
2389
2391
|
...config.vite.plugins || [],
|
|
2390
2392
|
farmServerOnlyEntriesPlugin(),
|
|
2391
|
-
|
|
2393
|
+
_chunkSIVK2SRRcjs.farmDocsClientConfigPlugin.call(void 0,
|
|
2392
2394
|
adapterOwnsDocsRuntime ? _chunkCY2ZQ5C6cjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
|
|
2393
2395
|
),
|
|
2394
2396
|
// Plugin to redirect @farm.js/core imports to client-only exports
|
|
@@ -2450,7 +2452,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2450
2452
|
} : void 0,
|
|
2451
2453
|
// Ensure React is bundled for client
|
|
2452
2454
|
resolve: {
|
|
2453
|
-
alias:
|
|
2455
|
+
alias: _chunkSIVK2SRRcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
|
|
2454
2456
|
dedupe: [...config.renderer.dedupe || []]
|
|
2455
2457
|
},
|
|
2456
2458
|
// Optimize dependencies - exclude server-side code from client bundle
|
|
@@ -2463,7 +2465,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2463
2465
|
]
|
|
2464
2466
|
}
|
|
2465
2467
|
};
|
|
2466
|
-
await viteBuild(
|
|
2468
|
+
await viteBuild(_chunkSIVK2SRRcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite));
|
|
2467
2469
|
await mergeBuiltFontCss(outputDir);
|
|
2468
2470
|
await validateClientBuildOutput(root, srcDir, outputDir);
|
|
2469
2471
|
} finally {
|
|
@@ -3258,7 +3260,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
|
|
|
3258
3260
|
direction: {}
|
|
3259
3261
|
}, plugins = [], renderer = _chunkPSV6XKPOcjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false) {
|
|
3260
3262
|
const toImportPath = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (targetPath) => targetPath.replace(/\\/g, "/"), "toImportPath");
|
|
3261
|
-
const clientPluginEntry =
|
|
3263
|
+
const clientPluginEntry = _chunkSIVK2SRRcjs.generateFarmClientPluginEntryCode.call(void 0,
|
|
3262
3264
|
plugins,
|
|
3263
3265
|
root,
|
|
3264
3266
|
srcDir,
|
|
@@ -3269,7 +3271,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
|
|
|
3269
3271
|
import { createRoot, hydrateRoot } from "react-dom/client";` : appSetupPath ? `import React, { createRoot, hydrateRoot, configureApp as __farmConfigureApp } from ${JSON.stringify(renderer.client)};
|
|
3270
3272
|
import __farmAppSetup from ${JSON.stringify(_chunk5QIKR7RRcjs.toPosixPath.call(void 0, appSetupPath))};
|
|
3271
3273
|
__farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};`;
|
|
3272
|
-
const providerClientCode =
|
|
3274
|
+
const providerClientCode = _chunkSIVK2SRRcjs.generateFarmIntegrationProviderClientCode.call(void 0,
|
|
3273
3275
|
integrationProviders,
|
|
3274
3276
|
root,
|
|
3275
3277
|
_nullishCoalesce(renderer.componentExtensions, () => ( []))
|
|
@@ -3281,12 +3283,12 @@ __farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot
|
|
|
3281
3283
|
const hydratingLayoutPatterns = layoutRoutes.filter((layout) => layout.shouldHydrate).map((layout) => layout.pattern);
|
|
3282
3284
|
layoutRoutes.forEach((layout, index) => {
|
|
3283
3285
|
const relativePath = toImportPath(layout.modulePath);
|
|
3284
|
-
const rendersOnClient = !layout.hasIsolatedClientBoundaries && hydratingLayoutPatterns.some((pattern) =>
|
|
3286
|
+
const rendersOnClient = !layout.hasIsolatedClientBoundaries && hydratingLayoutPatterns.some((pattern) => _chunkKVN3YEFFcjs.layoutsCanCoverSamePage.call(void 0, layout.pattern, pattern));
|
|
3285
3287
|
if (rendersOnClient) {
|
|
3286
3288
|
layoutImportStatements.push(`import Layout${index} from "${relativePath}";`);
|
|
3287
3289
|
}
|
|
3288
|
-
const groupScope =
|
|
3289
|
-
const groupFields = groupScope ? `, urlPattern: ${JSON.stringify(
|
|
3290
|
+
const groupScope = _chunkUN4B2TXCcjs.getRouteGroupScope.call(void 0, layout.pattern);
|
|
3291
|
+
const groupFields = groupScope ? `, urlPattern: ${JSON.stringify(_chunkUN4B2TXCcjs.stripRouteGroups.call(void 0, layout.pattern))}, groupScope: ${JSON.stringify(groupScope)}` : "";
|
|
3290
3292
|
layoutRegistrations.push(
|
|
3291
3293
|
` { pattern: ${JSON.stringify(layout.pattern)}${groupFields}, Component: ${rendersOnClient ? `Layout${index}` : "null"}, shouldHydrate: ${JSON.stringify(layout.shouldHydrate)}, islandStrategy: ${JSON.stringify(layout.islandStrategy)} }`
|
|
3292
3294
|
);
|
|
@@ -3789,7 +3791,7 @@ function hasHydratableLayout(pathname) {
|
|
|
3789
3791
|
});
|
|
3790
3792
|
}
|
|
3791
3793
|
|
|
3792
|
-
${
|
|
3794
|
+
${_chunkSIVK2SRRcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
|
|
3793
3795
|
// Wrap a page element with applicable layouts
|
|
3794
3796
|
function wrapWithLayouts(pageElement, pathname, params) {
|
|
3795
3797
|
const layouts = getApplicableLayouts(pathname);
|
|
@@ -4936,7 +4938,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
4936
4938
|
}
|
|
4937
4939
|
const middlewareRoutes = await discoverMiddlewareRoutes(appDirs);
|
|
4938
4940
|
const instrumentationPath = _chunkKCMTCM6Icjs.resolveFarmInstrumentationFile.call(void 0, root, config.srcDir || "src");
|
|
4939
|
-
const notFoundPath =
|
|
4941
|
+
const notFoundPath = _chunkSIVK2SRRcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
|
|
4940
4942
|
if (notFoundPath) _chunk5QIKR7RRcjs.logger.info(`\u{1F4CB} Found custom 404 page: ${notFoundPath}`);
|
|
4941
4943
|
layoutRoutes.sort((a, b) => {
|
|
4942
4944
|
const depthA = a.pattern.split("/").filter(Boolean).length;
|
|
@@ -4953,13 +4955,13 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
4953
4955
|
const hasServerRuntimeIntegrations = configuredIntegrationValues.some(
|
|
4954
4956
|
(integration) => typeof integration === "object" && integration !== null && (!("serverRuntime" in integration) || integration.serverRuntime !== false)
|
|
4955
4957
|
);
|
|
4956
|
-
const hasIntegrationProviders =
|
|
4958
|
+
const hasIntegrationProviders = _chunkB6XAA7V6cjs.getIntegrationProviders.call(void 0, config.integrations).some(
|
|
4957
4959
|
(provider) => provider.component || provider.type === "clerk"
|
|
4958
4960
|
);
|
|
4959
4961
|
const hasObservabilityHandler = !!config.observability && typeof config.observability === "object" && "onEvent" in config.observability;
|
|
4960
4962
|
const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _67 => _67.mdx, 'optionalAccess', _68 => _68.components]));
|
|
4961
|
-
const hasMiddlewareConfig =
|
|
4962
|
-
const hasRouteContextConfig =
|
|
4963
|
+
const hasMiddlewareConfig = _chunkUN4B2TXCcjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
|
|
4964
|
+
const hasRouteContextConfig = _chunkLPE3ED4Rcjs.hasCustomFarmRouteContext.call(void 0, config);
|
|
4963
4965
|
const hasServerRuntimePlugins = hasFarmServerRuntimePlugins(config);
|
|
4964
4966
|
const hasPluginRoutes = hasFarmPluginRoutes(config);
|
|
4965
4967
|
const hasServerCacheConfig = hasFarmServerCacheConfig(config.cache);
|
|
@@ -4969,9 +4971,9 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
4969
4971
|
const hasConfiguredRuntimePlugins = Boolean(
|
|
4970
4972
|
hasRuntimeConfigModule && (config.plugins || []).length > 0
|
|
4971
4973
|
);
|
|
4972
|
-
if (
|
|
4974
|
+
if (_chunkYN2QEMMOcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
|
|
4973
4975
|
const adapterGuardedPaths = new Set(getFarmDocsGuardedPaths(config, middlewareRoutes));
|
|
4974
|
-
|
|
4976
|
+
_chunkYN2QEMMOcjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
|
|
4975
4977
|
config.docs,
|
|
4976
4978
|
{ root, srcDir: config.srcDir },
|
|
4977
4979
|
(pathname) => adapterGuardedPaths.has(pathname)
|
|
@@ -4980,7 +4982,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
4980
4982
|
const farmDocsCspNonceMarker = _chunk25LPIZSXcjs.createFarmCspNonce.call(void 0, config.security);
|
|
4981
4983
|
const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _69 => _69.docs, 'optionalAccess', _70 => _70.enabled]) && _chunkC5GUTBZKcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? await _chunkZTP3BJG6cjs._runWithFarmCspNonce.call(void 0,
|
|
4982
4984
|
farmDocsCspNonceMarker,
|
|
4983
|
-
async () => _optionalChain([config, 'access', _71 => _71.docs, 'access', _72 => _72.adapter, 'optionalAccess', _73 => _73.server]) ? await
|
|
4985
|
+
async () => _optionalChain([config, 'access', _71 => _71.docs, 'access', _72 => _72.adapter, 'optionalAccess', _73 => _73.server]) ? await _chunkYN2QEMMOcjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
|
|
4984
4986
|
root,
|
|
4985
4987
|
srcDir: config.srcDir,
|
|
4986
4988
|
clientEntry: FARM_CLIENT_JS_SRC_PLACEHOLDER,
|
|
@@ -5142,7 +5144,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5142
5144
|
__FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _79 => _79.env, 'optionalAccess', _80 => _80.public]) || {})
|
|
5143
5145
|
},
|
|
5144
5146
|
plugins: [
|
|
5145
|
-
|
|
5147
|
+
_chunkSIVK2SRRcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
5146
5148
|
...tailwindVitePlugin ? [tailwindVitePlugin] : [],
|
|
5147
5149
|
...rendererVitePlugins,
|
|
5148
5150
|
...config.vite.plugins || [],
|
|
@@ -5195,7 +5197,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5195
5197
|
resolve: {
|
|
5196
5198
|
alias: [
|
|
5197
5199
|
...shouldAliasReactServerToWebBuild(config.renderer, preset) ? [createFarmReactWebServerAlias(hasReactDomEdgeServerBuild(root))] : [],
|
|
5198
|
-
...Object.entries(
|
|
5200
|
+
...Object.entries(_chunkSIVK2SRRcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
|
|
5199
5201
|
([find, replacement]) => ({ find, replacement })
|
|
5200
5202
|
)
|
|
5201
5203
|
],
|
|
@@ -5203,7 +5205,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5203
5205
|
dedupe: [...config.renderer.dedupe || []]
|
|
5204
5206
|
}
|
|
5205
5207
|
};
|
|
5206
|
-
await viteBuild(
|
|
5208
|
+
await viteBuild(_chunkSIVK2SRRcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
|
|
5207
5209
|
} finally {
|
|
5208
5210
|
if (postcssConfigDir) {
|
|
5209
5211
|
try {
|
|
@@ -5251,7 +5253,7 @@ function getFarmDocsGuardedPaths(config, middlewareRoutes) {
|
|
|
5251
5253
|
config: { middleware: config.middleware, integrations: config.integrations },
|
|
5252
5254
|
middlewareRoutes
|
|
5253
5255
|
};
|
|
5254
|
-
return _chunkMY5PZYADcjs.discoverFarmDocsPages.call(void 0, contentDir, config.docs).flatMap((page) => [page.href, _chunkMY5PZYADcjs.getFarmDocsMarkdownPath.call(void 0, page.href)]).filter((pathname) =>
|
|
5256
|
+
return _chunkMY5PZYADcjs.discoverFarmDocsPages.call(void 0, contentDir, config.docs).flatMap((page) => [page.href, _chunkMY5PZYADcjs.getFarmDocsMarkdownPath.call(void 0, page.href)]).filter((pathname) => _chunkUN4B2TXCcjs.farmPathGuardCoversPage.call(void 0, guards, pathname));
|
|
5255
5257
|
}
|
|
5256
5258
|
_chunkS3JO3N4Hcjs.__name.call(void 0, getFarmDocsGuardedPaths, "getFarmDocsGuardedPaths");
|
|
5257
5259
|
function getFarmAppOwnedDocsEnginePaths(agent, applicationMetadataRoutes) {
|
|
@@ -5653,9 +5655,9 @@ function renderFarmRouteServerTree(element, extra) { return element; }`;
|
|
|
5653
5655
|
const hasGeneratedMetadataImages = metadataImageRoutes.some(
|
|
5654
5656
|
(image) => image.sourceType === "module"
|
|
5655
5657
|
);
|
|
5656
|
-
const hasMiddlewareRuntime = middlewareRoutes.length > 0 ||
|
|
5658
|
+
const hasMiddlewareRuntime = middlewareRoutes.length > 0 || _chunkUN4B2TXCcjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
|
|
5657
5659
|
const farmDocsFontAssets = _optionalChain([config, 'access', _108 => _108.docs, 'optionalAccess', _109 => _109.enabled]) ? _chunkHREOKQWTcjs.toFarmDocsPublicFontAssets.call(void 0, _chunkHREOKQWTcjs.resolveFarmDocsFontAssets.call(void 0, config.root)) : [];
|
|
5658
|
-
const integrationProviders =
|
|
5660
|
+
const integrationProviders = _chunkB6XAA7V6cjs.getIntegrationProviders.call(void 0, config.integrations);
|
|
5659
5661
|
const renderedIntegrationProviders = integrationProviders.filter(
|
|
5660
5662
|
(provider) => provider.component || provider.type === "clerk"
|
|
5661
5663
|
);
|
|
@@ -5664,7 +5666,7 @@ function renderFarmRouteServerTree(element, extra) { return element; }`;
|
|
|
5664
5666
|
`Integration provider components are not supported by the "${config.renderer.name}" renderer.`
|
|
5665
5667
|
);
|
|
5666
5668
|
}
|
|
5667
|
-
const providerServerModules =
|
|
5669
|
+
const providerServerModules = _chunkSIVK2SRRcjs.generateFarmIntegrationProviderServerModules.call(void 0,
|
|
5668
5670
|
renderedIntegrationProviders,
|
|
5669
5671
|
config.root,
|
|
5670
5672
|
_nullishCoalesce(config.renderer.componentExtensions, () => ( []))
|
|
@@ -5684,14 +5686,14 @@ function renderFarmRouteServerTree(element, extra) { return element; }`;
|
|
|
5684
5686
|
const unsupportedIntegrationProvider = renderedIntegrationProviders.find(
|
|
5685
5687
|
(provider) => provider.supportsIsolatedHydration !== true
|
|
5686
5688
|
);
|
|
5687
|
-
const isolatedHydrationMode =
|
|
5689
|
+
const isolatedHydrationMode = _chunkSIVK2SRRcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
5688
5690
|
_optionalChain([config, 'access', _112 => _112.experimental, 'optionalAccess', _113 => _113.isolatedClientHydration]),
|
|
5689
5691
|
{
|
|
5690
5692
|
serverComponents: _chunkPDU4P2ICcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _114 => _114.experimental, 'optionalAccess', _115 => _115.serverComponents])) === "rsc",
|
|
5691
5693
|
hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
|
|
5692
5694
|
}
|
|
5693
5695
|
);
|
|
5694
|
-
const hydrationPlanOptions =
|
|
5696
|
+
const hydrationPlanOptions = _chunkSIVK2SRRcjs.getFarmClientHydrationPlanOptions.call(void 0,
|
|
5695
5697
|
config.renderer,
|
|
5696
5698
|
Boolean(unsupportedIntegrationProvider)
|
|
5697
5699
|
);
|
|
@@ -5709,7 +5711,7 @@ function renderFarmRouteServerTree(element, extra) { return element; }`;
|
|
|
5709
5711
|
hydrationPlanOptions
|
|
5710
5712
|
)
|
|
5711
5713
|
}));
|
|
5712
|
-
const markdownPagePlan =
|
|
5714
|
+
const markdownPagePlan = _chunkSIVK2SRRcjs.createMarkdownPageHydrationPlanner.call(void 0,
|
|
5713
5715
|
_chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkOHY2ZWUGcjs.resolveMdxConfig.call(void 0, config.mdx), config.root),
|
|
5714
5716
|
config.root,
|
|
5715
5717
|
isolatedHydrationMode,
|
|
@@ -5727,7 +5729,7 @@ function renderFarmRouteServerTree(element, extra) { return element; }`;
|
|
|
5727
5729
|
)
|
|
5728
5730
|
])
|
|
5729
5731
|
);
|
|
5730
|
-
|
|
5732
|
+
_chunkSIVK2SRRcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
|
|
5731
5733
|
layoutHydrationPlans.map((layout) => ({
|
|
5732
5734
|
pattern: layout.pattern,
|
|
5733
5735
|
depth: layout.pattern.split("/").filter(Boolean).length,
|
|
@@ -5736,10 +5738,10 @@ function renderFarmRouteServerTree(element, extra) { return element; }`;
|
|
|
5736
5738
|
pageRoutes.map((route) => ({
|
|
5737
5739
|
// Compared by directory so a grouped layout applies only inside its group.
|
|
5738
5740
|
pattern: _nullishCoalesce(route.directory, () => ( route.pattern)),
|
|
5739
|
-
depth:
|
|
5741
|
+
depth: _chunkUN4B2TXCcjs.getRouteDirectoryDepth.call(void 0, _nullishCoalesce(route.directory, () => ( route.pattern))),
|
|
5740
5742
|
metadata: pageHydrationPlans.get(route.modulePath)
|
|
5741
5743
|
})),
|
|
5742
|
-
|
|
5744
|
+
_chunkUN4B2TXCcjs.routeBoundaryCoversDirectory
|
|
5743
5745
|
);
|
|
5744
5746
|
const providerServerImports = [
|
|
5745
5747
|
providerServerModules.hasClerkProvider ? `import { ClerkProvider as FarmClerkProvider } from "@clerk/react";` : "",
|
|
@@ -5801,7 +5803,7 @@ function renderFarmRouteServerTree(element, extra) { return element; }`;
|
|
|
5801
5803
|
module: ${varName},
|
|
5802
5804
|
shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},${clientMetadata.shouldHydrate ? `
|
|
5803
5805
|
clientModule: ${JSON.stringify(_chunk5QIKR7RRcjs.toViteModuleId.call(void 0, route.modulePath, config.root))},` : ""}
|
|
5804
|
-
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${
|
|
5806
|
+
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkSIVK2SRRcjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${renderingDirective ? `
|
|
5805
5807
|
rendering: ${JSON.stringify(renderingDirective)},` : ""}
|
|
5806
5808
|
${route.source !== void 0 ? `markdownSource: {
|
|
5807
5809
|
source: ${JSON.stringify(route.source)},
|
|
@@ -5858,12 +5860,12 @@ function renderFarmRouteServerTree(element, extra) { return element; }`;
|
|
|
5858
5860
|
errorImports.push(
|
|
5859
5861
|
`import * as ${varName} from ${toVirtualEntryImportSpecifier(errorRoute.modulePath)};`
|
|
5860
5862
|
);
|
|
5861
|
-
const groupScope =
|
|
5863
|
+
const groupScope = _chunkUN4B2TXCcjs.getRouteGroupScope.call(void 0, errorRoute.pattern);
|
|
5862
5864
|
errorRegistrations.push(`
|
|
5863
5865
|
{
|
|
5864
|
-
pattern: ${JSON.stringify(
|
|
5866
|
+
pattern: ${JSON.stringify(_chunkUN4B2TXCcjs.stripRouteGroups.call(void 0, errorRoute.pattern))},${groupScope ? `
|
|
5865
5867
|
groupScope: ${JSON.stringify(groupScope)},
|
|
5866
|
-
directoryDepth: ${
|
|
5868
|
+
directoryDepth: ${_chunkUN4B2TXCcjs.getRouteDirectoryDepth.call(void 0, errorRoute.pattern)},` : ""}
|
|
5867
5869
|
module: ${varName},
|
|
5868
5870
|
}`);
|
|
5869
5871
|
});
|
|
@@ -6059,7 +6061,7 @@ import { fileURLToPath as farmDocsFileURLToPath } from "node:url";` : "";
|
|
|
6059
6061
|
const integrationRuntimeImport = integrationRuntimeExports.length ? `import { ${integrationRuntimeExports.join(", ")} } from "@farm.js/core/integrations";` : "";
|
|
6060
6062
|
const instrumentationImport = instrumentationPath ? `import * as FarmInstrumentationModule from ${toVirtualEntryImportSpecifier(instrumentationPath)};` : "";
|
|
6061
6063
|
const nativeAuth = generateNativeAuthIntegrationSource(config.auth);
|
|
6062
|
-
const nativeMCP =
|
|
6064
|
+
const nativeMCP = _chunkKVN3YEFFcjs.generateNativeMCPPluginSource.call(void 0, config.mcp);
|
|
6063
6065
|
const integrationImports = `
|
|
6064
6066
|
${configModulePath ? `import * as FarmUserConfigModule from ${toVirtualEntryImportSpecifier(configModulePath)};` : ""}
|
|
6065
6067
|
${layerConfigImports}
|
|
@@ -6067,7 +6069,7 @@ ${integrationRuntimeImport}
|
|
|
6067
6069
|
${nativeAuth.importSource}
|
|
6068
6070
|
${nativeMCP.importSource}
|
|
6069
6071
|
`;
|
|
6070
|
-
const imageRuntime =
|
|
6072
|
+
const imageRuntime = _chunkSIVK2SRRcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
|
|
6071
6073
|
const imageRuntimeImport = imageRuntime === "none" ? "" : `import { _withFarmImageSourceClientAddress, createCloudflareImageTransformer, createFarmImageHandler } from "@farm.js/core/image/server";`;
|
|
6072
6074
|
const imageNodeRuntimeImport = imageRuntime === "node" ? `import { createNodeImageFetcher, createNodeImageUrlValidator, createSharpImageTransformer } from "@farm.js/core/image/sharp";` : "";
|
|
6073
6075
|
const apiHandlerCode = apiRoutes.length > 0 ? `
|
|
@@ -6246,7 +6248,7 @@ const farmResolvedRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs);
|
|
|
6246
6248
|
|
|
6247
6249
|
function FarmDefault404Page() {
|
|
6248
6250
|
return React.createElement(React.Fragment, null,
|
|
6249
|
-
React.createElement("style", null, ${JSON.stringify(
|
|
6251
|
+
React.createElement("style", null, ${JSON.stringify(_chunkSIVK2SRRcjs.DEFAULT_NOT_FOUND_STYLES)}),
|
|
6250
6252
|
React.createElement("main", {
|
|
6251
6253
|
className: "farm-default-not-found",
|
|
6252
6254
|
"aria-labelledby": "farm-default-not-found-title",
|
|
@@ -6339,7 +6341,7 @@ const serverRuntimeIntegrations = Object.fromEntries(
|
|
|
6339
6341
|
);
|
|
6340
6342
|
const integrationRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs, {
|
|
6341
6343
|
integrations: configuredIntegrations,
|
|
6342
|
-
${JSON.stringify(
|
|
6344
|
+
${JSON.stringify(_chunk3SAWHWDHcjs.FARM_INTEGRATION_API_BASE_PATH_KEY)}: ${JSON.stringify(_chunkKNBBQHO2cjs.resolveFarmAPIServerBasePath.call(void 0, config.api))},
|
|
6343
6345
|
});
|
|
6344
6346
|
const farmInfraAnalytics = ${hasInfraAnalyticsRuntime ? hasPluginRuntime ? "createFarmInfraAnalyticsPlugin()" : "createFarmInfraAnalyticsRecorder()" : "null"};
|
|
6345
6347
|
const configuredPlugins = [
|
|
@@ -6549,12 +6551,12 @@ function fetchFarmInnerRequest(request, context) {
|
|
|
6549
6551
|
}
|
|
6550
6552
|
const farmLocalAPIBasePath = ${JSON.stringify(_chunkKNBBQHO2cjs.resolveFarmAPIServerBasePath.call(void 0, config.api))};
|
|
6551
6553
|
const farmOpenAPIReference = ${JSON.stringify(openAPIReference)};
|
|
6552
|
-
${_optionalChain([config, 'access', _147 => _147.agent, 'optionalAccess', _148 => _148.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(
|
|
6554
|
+
${_optionalChain([config, 'access', _147 => _147.agent, 'optionalAccess', _148 => _148.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkUN4B2TXCcjs.resolveFarmApiCatalogInput.call(void 0, config))};
|
|
6553
6555
|
` : ""}${_optionalChain([config, 'access', _149 => _149.agent, 'optionalAccess', _150 => _150.manifest]) !== false ? `const farmAppManifestInput = ${JSON.stringify(
|
|
6554
|
-
|
|
6556
|
+
_chunkUN4B2TXCcjs.resolveFarmAppManifestInput.call(void 0, config, {
|
|
6555
6557
|
build: config.deploymentId,
|
|
6556
|
-
packages:
|
|
6557
|
-
webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ?
|
|
6558
|
+
packages: _chunkSIVK2SRRcjs.resolveFarmAppPackages.call(void 0, config.root),
|
|
6559
|
+
webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkSIVK2SRRcjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
|
|
6558
6560
|
})
|
|
6559
6561
|
)};
|
|
6560
6562
|
${servesDefaultMCP ? "farmAppManifestInput.defaultMCP = getFarmDefaultMCPServer;\n" : ""}// A guard written for an MCP server's path keeps its tools out of the public view.
|
|
@@ -7029,7 +7031,7 @@ function peelFarmDocumentPrefix(markup) {
|
|
|
7029
7031
|
let inner = markup.replace(/^\\s+/, "");
|
|
7030
7032
|
let hoisted = "";
|
|
7031
7033
|
const wrapper = /^<div\\b[^>]*style=["']display\\s*:\\s*contents;?\\s*["'][^>]*>/i;
|
|
7032
|
-
const hoistable = /${
|
|
7034
|
+
const hoistable = /${_chunkUN4B2TXCcjs.HOISTED_HEAD_ELEMENT.source}/i;
|
|
7033
7035
|
let match;
|
|
7034
7036
|
while ((match = wrapper.exec(inner) || hoistable.exec(inner))) {
|
|
7035
7037
|
if (!/^<div/i.test(match[0])) hoisted += match[0];
|
|
@@ -7560,7 +7562,7 @@ function createFarmAgentRobotsResponse(request) {
|
|
|
7560
7562
|
// a route guard.
|
|
7561
7563
|
const farmAgentGuardedPages = new Set(${JSON.stringify(
|
|
7562
7564
|
pageRoutes.map((route) => route.pattern).filter(
|
|
7563
|
-
(pattern) => !pattern.includes("[") &&
|
|
7565
|
+
(pattern) => !pattern.includes("[") && _chunkUN4B2TXCcjs.farmPathGuardCoversPage.call(void 0,
|
|
7564
7566
|
{
|
|
7565
7567
|
config: { middleware: config.middleware, integrations: config.integrations },
|
|
7566
7568
|
middlewareRoutes
|
|
@@ -7607,7 +7609,7 @@ ${servesDefaultMCP ? `// agent.mcp: the default read-only MCP server at /mcp, as
|
|
|
7607
7609
|
// aside for a page route that answers /mcp and for any MCP server published or
|
|
7608
7610
|
// registered at runtime, such as the docs engine's.
|
|
7609
7611
|
const farmDefaultMCPServer = ${JSON.stringify(
|
|
7610
|
-
_chunkBMOBTMDRcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root),
|
|
7612
|
+
_chunkBMOBTMDRcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunk2DZOABRKcjs.FARM_VERSION)
|
|
7611
7613
|
)};
|
|
7612
7614
|
let farmDefaultMCPRouteFree;
|
|
7613
7615
|
function getFarmDefaultMCPServer() {
|
|
@@ -8644,7 +8646,7 @@ ${hasServerRuntimeIntegrations ? `
|
|
|
8644
8646
|
// agent.manifest: /.well-known/farmjs.json (and 0.1.34's /.well-known/farmjs), the app's
|
|
8645
8647
|
// public manifest, the same document for every request.
|
|
8646
8648
|
if (
|
|
8647
|
-
[${JSON.stringify(
|
|
8649
|
+
[${JSON.stringify(_chunkUN4B2TXCcjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunkUN4B2TXCcjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
|
|
8648
8650
|
normalizeRuntimePath(routePathname),
|
|
8649
8651
|
)
|
|
8650
8652
|
) {
|
|
@@ -8656,7 +8658,7 @@ ${hasServerRuntimeIntegrations ? `
|
|
|
8656
8658
|
` : ""}
|
|
8657
8659
|
${_optionalChain([config, 'access', _167 => _167.agent, 'optionalAccess', _168 => _168.apiCatalog]) ? `
|
|
8658
8660
|
// agent.apiCatalog: list the OpenAPI and MCP surfaces at the RFC 9727 path.
|
|
8659
|
-
if (normalizeRuntimePath(routePathname) === ${JSON.stringify(
|
|
8661
|
+
if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkUN4B2TXCcjs.FARM_API_CATALOG_PATH)}) {
|
|
8660
8662
|
return applyProductionMiddlewareHeaders(
|
|
8661
8663
|
createFarmApiCatalogResponse(request.method, farmApiCatalogInput, request),
|
|
8662
8664
|
middlewareHeaders,
|
|
@@ -10107,9 +10109,9 @@ function getPhysicalPrerenderBypassReason(options) {
|
|
|
10107
10109
|
if (rewriteSources.some((source) => middlewarePatternMatches(source, pathname))) {
|
|
10108
10110
|
return "rewrite";
|
|
10109
10111
|
}
|
|
10110
|
-
if (
|
|
10111
|
-
if (
|
|
10112
|
-
if (
|
|
10112
|
+
if (_chunkUN4B2TXCcjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
|
|
10113
|
+
if (_chunkUN4B2TXCcjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
|
|
10114
|
+
if (_chunkLPE3ED4Rcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
|
|
10113
10115
|
if (farmServerRuntimePluginsMayHandlePath(config, pathname)) return "server runtime plugin";
|
|
10114
10116
|
const manifestEntry = getManifestPageEntry(routeRuntimeManifest, pathname);
|
|
10115
10117
|
if (_optionalChain([manifestEntry, 'optionalAccess', _185 => _185.rendering]) === "dynamic") return "dynamic runtime manifest";
|
|
@@ -10144,10 +10146,10 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
|
|
|
10144
10146
|
const nitroBuilder = nitroBuilderResult.value;
|
|
10145
10147
|
const isVercel = preset === "vercel" || preset === "vercel-edge";
|
|
10146
10148
|
const isCloudflareWorker = preset === "cloudflare-module";
|
|
10147
|
-
const outputDir =
|
|
10149
|
+
const outputDir = _chunkLPE3ED4Rcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
10148
10150
|
const runtimeServerOutputDir = isVercel ? _path2.default.join(outputDir, "functions", "__nitro.func") : _path2.default.join(outputDir, "server");
|
|
10149
10151
|
const ssrOutputDir = _path2.default.join(root, distDir, "ssr");
|
|
10150
|
-
const imageRuntime =
|
|
10152
|
+
const imageRuntime = _chunkSIVK2SRRcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
|
|
10151
10153
|
const hasGeneratedMetadataImages = Array.from(routeManager.getMetadataImages().values()).some(
|
|
10152
10154
|
(image) => image.sourceType === "module"
|
|
10153
10155
|
);
|
|
@@ -11009,7 +11011,7 @@ async function stageSharpRuntime(config, root, distDir, fs4, preset) {
|
|
|
11009
11011
|
try {
|
|
11010
11012
|
await copyPackage("sharp", sharpRequire);
|
|
11011
11013
|
if (!copiedPackages.has("sharp")) {
|
|
11012
|
-
throw new Error(`Farm image optimization requires sharp. ${
|
|
11014
|
+
throw new Error(`Farm image optimization requires sharp. ${_chunkSIVK2SRRcjs.SHARP_INSTALL_HINT}`);
|
|
11013
11015
|
}
|
|
11014
11016
|
} catch (error) {
|
|
11015
11017
|
await fs4.rm(stageDir, { recursive: true, force: true });
|
|
@@ -11253,7 +11255,7 @@ function createBuildTargetBaseline(config) {
|
|
|
11253
11255
|
preset,
|
|
11254
11256
|
distDir,
|
|
11255
11257
|
outputDir,
|
|
11256
|
-
outputWasDerived: outputDir ===
|
|
11258
|
+
outputWasDerived: outputDir === _chunkLPE3ED4Rcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
|
|
11257
11259
|
};
|
|
11258
11260
|
}
|
|
11259
11261
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createBuildTargetBaseline, "createBuildTargetBaseline");
|
|
@@ -11263,8 +11265,8 @@ function resolveBuildTargets(config, options, baseline) {
|
|
|
11263
11265
|
const distDir = config.distDir || ".farm";
|
|
11264
11266
|
const outputWasReplaced = config.deploy.outputDir !== baseline.outputDir;
|
|
11265
11267
|
const shouldRefreshDerivedOutput = baseline.outputWasDerived && !outputWasReplaced && (preset !== baseline.preset || distDir !== baseline.distDir);
|
|
11266
|
-
const deployTarget = preset === config.deploy.preset ? config.deploy.target :
|
|
11267
|
-
const outputDir = shouldRefreshDerivedOutput ?
|
|
11268
|
+
const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkLPE3ED4Rcjs.getDeployTargetForPreset.call(void 0, preset);
|
|
11269
|
+
const outputDir = shouldRefreshDerivedOutput ? _chunkLPE3ED4Rcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
|
|
11268
11270
|
return {
|
|
11269
11271
|
root,
|
|
11270
11272
|
preset,
|
|
@@ -11272,7 +11274,7 @@ function resolveBuildTargets(config, options, baseline) {
|
|
|
11272
11274
|
distDir,
|
|
11273
11275
|
deployTarget,
|
|
11274
11276
|
outputDir,
|
|
11275
|
-
deployOutputDir:
|
|
11277
|
+
deployOutputDir: _chunkLPE3ED4Rcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
|
|
11276
11278
|
};
|
|
11277
11279
|
}
|
|
11278
11280
|
_chunkS3JO3N4Hcjs.__name.call(void 0, resolveBuildTargets, "resolveBuildTargets");
|
|
@@ -11310,7 +11312,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
11310
11312
|
};
|
|
11311
11313
|
config = {
|
|
11312
11314
|
...config,
|
|
11313
|
-
images:
|
|
11315
|
+
images: _chunkSIVK2SRRcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
|
|
11314
11316
|
root: targets.root,
|
|
11315
11317
|
preset: targets.preset
|
|
11316
11318
|
})
|
|
@@ -11338,7 +11340,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
11338
11340
|
root,
|
|
11339
11341
|
rendererBuild.signal
|
|
11340
11342
|
);
|
|
11341
|
-
const farmApp =
|
|
11343
|
+
const farmApp = _chunkSIVK2SRRcjs.createFarmApp.call(void 0, config, projectModuleServer);
|
|
11342
11344
|
await farmApp.initialize();
|
|
11343
11345
|
const routeManager = farmApp.getRouteManager();
|
|
11344
11346
|
const serverRenderer = farmApp.getServerRenderer();
|
|
@@ -11445,7 +11447,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
11445
11447
|
ssr: true,
|
|
11446
11448
|
buildLifetime
|
|
11447
11449
|
});
|
|
11448
|
-
const viteConfig =
|
|
11450
|
+
const viteConfig = _chunkSIVK2SRRcjs.mergeFarmViteConfig.call(void 0,
|
|
11449
11451
|
{
|
|
11450
11452
|
root,
|
|
11451
11453
|
appType: "custom",
|
|
@@ -11457,7 +11459,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
11457
11459
|
},
|
|
11458
11460
|
plugins: [
|
|
11459
11461
|
...rendererVitePlugins,
|
|
11460
|
-
|
|
11462
|
+
_chunkSIVK2SRRcjs.farmFontImportsPlugin.call(void 0, {
|
|
11461
11463
|
root,
|
|
11462
11464
|
basePath: config.basePath,
|
|
11463
11465
|
publicDir: config.publicDir
|
|
@@ -11469,7 +11471,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
11469
11471
|
hmr: false
|
|
11470
11472
|
},
|
|
11471
11473
|
resolve: {
|
|
11472
|
-
alias:
|
|
11474
|
+
alias: _chunkSIVK2SRRcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
|
|
11473
11475
|
dedupe: [...config.renderer.dedupe || []]
|
|
11474
11476
|
},
|
|
11475
11477
|
optimizeDeps: {
|
|
@@ -11598,7 +11600,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
|
|
|
11598
11600
|
if (pluginManager) {
|
|
11599
11601
|
nitroConfig = await pluginManager.runHookSerial("beforeNitroBuild", nitroConfig);
|
|
11600
11602
|
}
|
|
11601
|
-
const outputDir =
|
|
11603
|
+
const outputDir = _chunkLPE3ED4Rcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
11602
11604
|
const serverOutputDir = _path2.default.join(outputDir, "server");
|
|
11603
11605
|
const publicOutputDir = _path2.default.join(outputDir, "public");
|
|
11604
11606
|
const { mkdir, cp } = await import("fs/promises");
|
|
@@ -11669,7 +11671,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
|
|
|
11669
11671
|
root,
|
|
11670
11672
|
preset,
|
|
11671
11673
|
distDir,
|
|
11672
|
-
outputDir:
|
|
11674
|
+
outputDir: _chunkLPE3ED4Rcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
|
|
11673
11675
|
});
|
|
11674
11676
|
}
|
|
11675
11677
|
}
|