@farm.js/core 0.1.62 → 0.1.63
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.d-BKZ3UNbt.d.mts → agent-mcp.d-CCQ-wKwg.d.mts} +1 -1
- package/dist/{agent-mcp.d-C1zr_nGS.d.ts → agent-mcp.d-DOJCBSh9.d.ts} +1 -1
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/analyzer-KEA5JVDR.cjs +15 -0
- package/dist/{analyzer-YESYU3GK.mjs → analyzer-WNPQPWFR.mjs} +2 -2
- 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-manifest.d-ntch_bvA.d.ts → app-manifest.d-BaA0omsv.d.mts} +9 -1
- package/dist/{app-manifest.d-BpvhfKRH.d.mts → app-manifest.d-poayV4lq.d.ts} +9 -1
- package/dist/app-markdown.d.mts +2 -2
- package/dist/app-markdown.d.ts +2 -2
- package/dist/{app.d-AE8_v3Db.d.ts → app.d-D4Dn03E3.d.ts} +4 -4
- package/dist/{app.d-CysWA_8v.d.mts → app.d-DdWxeIGU.d.mts} +4 -4
- package/dist/{chunk-RZNCMRD3.mjs → chunk-4DIKLG56.mjs} +1 -1
- package/dist/{chunk-ZVIEFTUA.cjs → chunk-5IKQ7BIR.cjs} +2 -2
- package/dist/{chunk-WKJQ2FJA.cjs → chunk-5L7I6AMY.cjs} +3 -3
- package/dist/{chunk-VM7X5CKC.mjs → chunk-7FFW7DC4.mjs} +29 -3
- package/dist/{chunk-JEJQGZI7.cjs → chunk-ANXU3D32.cjs} +2 -2
- package/dist/{chunk-VWW4Q3BJ.mjs → chunk-BA2IA32Q.mjs} +1 -1
- package/dist/{chunk-SG57PX7K.cjs → chunk-BTVDYS4B.cjs} +7 -2
- package/dist/{chunk-IQIKPKFP.mjs → chunk-CBDRR3J3.mjs} +96 -16
- package/dist/{chunk-OUWRNHTV.mjs → chunk-EENTT56C.mjs} +10 -10
- package/dist/{chunk-XX32BOMM.cjs → chunk-EYLC6GD6.cjs} +44 -18
- package/dist/{chunk-SM25ZC4S.cjs → chunk-FNHN3RBD.cjs} +1 -1
- package/dist/{chunk-T46NNU4D.mjs → chunk-GPKBUME5.mjs} +1 -1
- package/dist/{chunk-2JYBLE63.mjs → chunk-LA45FN37.mjs} +762 -235
- package/dist/chunk-LA6O5EL2.mjs +254 -0
- package/dist/{chunk-UWI3SJAK.cjs → chunk-LFFSDZ4Y.cjs} +3 -3
- package/dist/chunk-LWWDTBGL.cjs +254 -0
- package/dist/{chunk-ZBUAOGMY.mjs → chunk-O5FCWI6O.mjs} +1 -1
- package/dist/{chunk-RMUD75WT.cjs → chunk-PVJX4UPA.cjs} +323 -243
- package/dist/{chunk-GGNJAGGE.cjs → chunk-QN5WRQSQ.cjs} +971 -444
- package/dist/{chunk-NT3QDN2E.mjs → chunk-RFYL5OLP.mjs} +1 -1
- package/dist/{chunk-LVWGURLD.mjs → chunk-S2NUYHRY.mjs} +1 -1
- package/dist/{chunk-2WZTGPK6.mjs → chunk-SQ5O7I3L.mjs} +7 -2
- package/dist/{chunk-545WJ5UG.cjs → chunk-U6WCUVSV.cjs} +2 -2
- package/dist/{chunk-2CNKQC3G.mjs → chunk-XICXQXYE.mjs} +1 -1
- package/dist/{chunk-AJB3DHN6.cjs → chunk-Y2YBNQ3D.cjs} +2 -2
- package/dist/{chunk-EXXFSZOC.cjs → chunk-Z74NNER4.cjs} +86 -86
- package/dist/{client-component.d-Bgt3x5Fu.d.ts → client-component.d-CQLvqLAJ.d.ts} +14 -3
- package/dist/{client-component.d-BoqC2MLC.d.mts → client-component.d-CSEFlHfG.d.mts} +14 -3
- package/dist/{client-plugins.d-CWyYBxXf.d.mts → client-plugins.d-BTF0gZm4.d.mts} +10 -1
- package/dist/{client-plugins.d-BcqIy4au.d.ts → client-plugins.d-BgPUYPc9.d.ts} +10 -1
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.d.mts +6 -6
- package/dist/client.d.ts +6 -6
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/desktop.d.mts +2 -2
- package/dist/desktop.d.ts +2 -2
- package/dist/{devtools-NUVXYG7I.mjs → devtools-HDKTYIZF.mjs} +2 -2
- package/dist/{devtools-SVRSGPNC.cjs → devtools-ZHN5JLVI.cjs} +3 -3
- package/dist/docs.cjs +4 -4
- package/dist/docs.d.mts +2 -2
- package/dist/docs.d.ts +2 -2
- package/dist/docs.mjs +3 -3
- package/dist/index.cjs +12 -12
- package/dist/{index.d-nAncqTXz.d.ts → index.d-Coow7bD4.d.ts} +1 -1
- package/dist/{index.d-BDaiu2i5.d.mts → index.d-Dbjx0ku7.d.mts} +1 -1
- package/dist/index.d.mts +16 -16
- package/dist/index.d.ts +16 -16
- package/dist/index.mjs +11 -11
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- 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 +13 -13
- package/dist/internal/build-runtime.d.mts +3 -3
- package/dist/internal/build-runtime.d.ts +3 -3
- package/dist/internal/build-runtime.mjs +12 -12
- package/dist/internal/cli-runtime.cjs +3 -3
- package/dist/internal/cli-runtime.mjs +2 -2
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.d.mts +4 -4
- package/dist/internal/client-runtime.d.ts +4 -4
- 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 -4
- package/dist/internal/config-runtime.d.mts +3 -3
- package/dist/internal/config-runtime.d.ts +3 -3
- package/dist/internal/config-runtime.mjs +3 -3
- package/dist/internal/infra-analytics-runtime.cjs +8 -6
- package/dist/internal/infra-analytics-runtime.mjs +6 -4
- package/dist/internal/native-server-fns.cjs +4 -4
- package/dist/internal/native-server-fns.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +17 -211
- package/dist/internal/product-telemetry-runtime.mjs +10 -204
- package/dist/internal/production-runtime.cjs +7 -6
- package/dist/internal/production-runtime.d.mts +10 -10
- package/dist/internal/production-runtime.d.ts +10 -10
- package/dist/internal/production-runtime.mjs +7 -6
- package/dist/internal/react-cache.cjs +21 -1
- package/dist/internal/react-cache.d.mts +8 -1
- package/dist/internal/react-cache.d.ts +8 -1
- package/dist/internal/react-cache.mjs +21 -1
- 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-delegate.d-CSCm8ZxL.d.mts → navigation-delegate.d-Ca_BV0Wu.d.mts} +1 -1
- package/dist/{navigation-delegate.d-BbUHRXxG.d.ts → navigation-delegate.d-aHiPI6GL.d.ts} +1 -1
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/plugin.cjs +7 -7
- package/dist/plugin.d.mts +3 -3
- package/dist/plugin.d.ts +3 -3
- package/dist/plugin.mjs +6 -6
- package/dist/{production-runtime.d-DgT24A0f.d.ts → production-runtime.d-C0rF7a10.d.ts} +1 -1
- package/dist/{production-runtime.d-CcQiDko5.d.mts → production-runtime.d-CnAsSWgF.d.mts} +1 -1
- package/dist/{render-plan.d-CyrX6MDs.d.ts → render-plan.d-BxeITFT1.d.ts} +1 -1
- package/dist/{render-plan.d-BH9WF-JZ.d.mts → render-plan.d-Z-93m5GZ.d.mts} +1 -1
- package/dist/renderer-client.d.mts +4 -4
- package/dist/renderer-client.d.ts +4 -4
- package/dist/{request.d-CUrPnCW7.d.mts → request.d-8_fMFNEb.d.mts} +1 -1
- package/dist/{request.d-BB8M8bcD.d.ts → request.d-X7Q1vmGF.d.ts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{route-rendering.d-CYxlzaFm.d.mts → route-rendering.d-BInmBmul.d.mts} +1 -1
- package/dist/{route-rendering.d-DYqZMIf4.d.ts → route-rendering.d-BUr3Jp8S.d.ts} +1 -1
- package/dist/{router.d-7o24CD8u.d.mts → router.d-CZQmbpHx.d.mts} +1 -1
- package/dist/{router.d-DaKo507j.d.ts → router.d-crorSRiW.d.ts} +1 -1
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/{rsc-pipeline-RFLHDAKD.mjs → rsc-pipeline-3MPRULGA.mjs} +3 -3
- package/dist/{rsc-pipeline-OF2I7PCX.cjs → rsc-pipeline-RHEZNBFQ.cjs} +4 -4
- package/dist/{runtime-LBTK62AD.cjs → runtime-OZKFZQCU.cjs} +5 -5
- package/dist/{runtime-M6UJCSLA.mjs → runtime-X5UR7VHP.mjs} +3 -3
- package/dist/{runtime.d-CN73a-IL.d.ts → runtime.d-CCsjTZJW.d.ts} +1 -1
- package/dist/{runtime.d-CcNuzhX6.d.mts → runtime.d-CETtpLb-.d.mts} +1 -1
- package/dist/server-plugins.d.mts +2 -2
- package/dist/server-plugins.d.ts +2 -2
- package/dist/server.cjs +24 -24
- package/dist/server.d.mts +9 -9
- package/dist/server.d.ts +9 -9
- package/dist/server.mjs +9 -9
- package/dist/{spa-router.d-Cvgf5QP4.d.ts → spa-router.d-CCADbSqJ.d.ts} +2 -2
- package/dist/{spa-router.d-CNi77LZm.d.mts → spa-router.d-CtSHzXlC.d.mts} +2 -2
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/{utils.d-C3H-14_Y.d.ts → utils.d-CjyE-npA.d.ts} +1 -1
- package/dist/{utils.d-D8VfzZYn.d.mts → utils.d-zFPHKFFJ.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +11 -7
- package/dist/vite.d.mts +23 -5
- package/dist/vite.d.ts +23 -5
- package/dist/vite.mjs +10 -6
- package/package.json +1 -1
- package/dist/analyzer-2AHWJJR7.cjs +0 -15
- package/dist/chunk-CSLUBKGG.mjs +0 -44
- package/dist/chunk-SGBNF56S.cjs +0 -44
|
@@ -31,14 +31,14 @@ var _chunk4BS3HSY7cjs = require('./chunk-4BS3HSY7.cjs');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkLFFSDZ4Ycjs = require('./chunk-LFFSDZ4Y.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunk5IKQ7BIRcjs = require('./chunk-5IKQ7BIR.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
@@ -58,7 +58,7 @@ var _chunkIWRLV46Xcjs = require('./chunk-IWRLV46X.cjs');
|
|
|
58
58
|
var _chunkDZZHTMWMcjs = require('./chunk-DZZHTMWM.cjs');
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
var
|
|
61
|
+
var _chunk5L7I6AMYcjs = require('./chunk-5L7I6AMY.cjs');
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
var _chunkV3UOEWCBcjs = require('./chunk-V3UOEWCB.cjs');
|
|
@@ -67,7 +67,7 @@ var _chunkV3UOEWCBcjs = require('./chunk-V3UOEWCB.cjs');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkU6WCUVSVcjs = require('./chunk-U6WCUVSV.cjs');
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
var _chunkBRWIVOV4cjs = require('./chunk-BRWIVOV4.cjs');
|
|
@@ -111,7 +111,7 @@ var _chunkOCS3PSYRcjs = require('./chunk-OCS3PSYR.cjs');
|
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
114
|
-
var
|
|
114
|
+
var _chunkQN5WRQSQcjs = require('./chunk-QN5WRQSQ.cjs');
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
var _chunkR53QDV6Tcjs = require('./chunk-R53QDV6T.cjs');
|
|
@@ -144,20 +144,20 @@ var _chunk3HLQTOVUcjs = require('./chunk-3HLQTOVU.cjs');
|
|
|
144
144
|
var _chunk47JV57DAcjs = require('./chunk-47JV57DA.cjs');
|
|
145
145
|
|
|
146
146
|
|
|
147
|
-
var _chunkSGBNF56Scjs = require('./chunk-SGBNF56S.cjs');
|
|
148
147
|
|
|
149
148
|
|
|
150
149
|
|
|
151
150
|
|
|
152
151
|
|
|
152
|
+
var _chunkEYLC6GD6cjs = require('./chunk-EYLC6GD6.cjs');
|
|
153
153
|
|
|
154
154
|
|
|
155
|
-
var _chunkXX32BOMMcjs = require('./chunk-XX32BOMM.cjs');
|
|
156
155
|
|
|
157
156
|
|
|
157
|
+
var _chunkQAS7KE7Jcjs = require('./chunk-QAS7KE7J.cjs');
|
|
158
158
|
|
|
159
159
|
|
|
160
|
-
var
|
|
160
|
+
var _chunkLWWDTBGLcjs = require('./chunk-LWWDTBGL.cjs');
|
|
161
161
|
|
|
162
162
|
|
|
163
163
|
var _chunk4EBC7EMWcjs = require('./chunk-4EBC7EMW.cjs');
|
|
@@ -264,7 +264,7 @@ var _chunkQMNWKQL4cjs = require('./chunk-QMNWKQL4.cjs');
|
|
|
264
264
|
var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
|
|
265
265
|
|
|
266
266
|
|
|
267
|
-
var
|
|
267
|
+
var _chunkFNHN3RBDcjs = require('./chunk-FNHN3RBD.cjs');
|
|
268
268
|
|
|
269
269
|
|
|
270
270
|
var _chunkE552H232cjs = require('./chunk-E552H232.cjs');
|
|
@@ -416,7 +416,7 @@ async function compileFarmDocsManifest(docs, options) {
|
|
|
416
416
|
globalStylesheetHref: options.globalStylesheetHref,
|
|
417
417
|
isPathGuarded: options.isPathGuarded
|
|
418
418
|
});
|
|
419
|
-
const apiHandler =
|
|
419
|
+
const apiHandler = _chunk5IKQ7BIRcjs.createFarmDocsAPIHandler.call(void 0, {
|
|
420
420
|
rootDir: options.root,
|
|
421
421
|
srcDir: options.srcDir,
|
|
422
422
|
docs,
|
|
@@ -1875,7 +1875,7 @@ async function buildUniversal(config, routeManager, apiRouteManager, serverRende
|
|
|
1875
1875
|
assertFarmDocsRuntimeSupported(config, preset);
|
|
1876
1876
|
const srcDir = config.srcDir || "src";
|
|
1877
1877
|
const distDir = config.distDir || ".farm";
|
|
1878
|
-
const deployOutputDir =
|
|
1878
|
+
const deployOutputDir = _chunkU6WCUVSVcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
1879
1879
|
const lifecyclePluginManager = options.pluginManager;
|
|
1880
1880
|
const productionViteResultPromise = Promise.allSettled([
|
|
1881
1881
|
Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkMF3IA2AWcjs.loadFarmProductionVite.call(void 0, ))))
|
|
@@ -2148,7 +2148,7 @@ async function mergeBuiltFontCss(outputDir, fontCssSource) {
|
|
|
2148
2148
|
}
|
|
2149
2149
|
const normalizedFontCss = typeof fontCss === "string" ? fontCss : Buffer.from(fontCss).toString("utf8");
|
|
2150
2150
|
await fs4.writeFile(fontCssPath, normalizedFontCss);
|
|
2151
|
-
await fs4.writeFile(clientCssPath,
|
|
2151
|
+
await fs4.writeFile(clientCssPath, _chunkQN5WRQSQcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
|
|
2152
2152
|
}
|
|
2153
2153
|
var IncompleteClientBuildOutputError = class extends Error {
|
|
2154
2154
|
constructor(detail) {
|
|
@@ -2194,7 +2194,7 @@ function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, optio
|
|
|
2194
2194
|
const key = `${_path2.default.resolve(root)}\0${mode}\0${options.asyncOwnerIslands === true}\0${options.serverOwners === true}\0${options.serverTreeLayouts === true}\0${_path2.default.resolve(modulePath)}`;
|
|
2195
2195
|
let plan = cache.get(key);
|
|
2196
2196
|
if (!plan) {
|
|
2197
|
-
plan =
|
|
2197
|
+
plan = _chunkQN5WRQSQcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
|
|
2198
2198
|
cache.set(key, plan);
|
|
2199
2199
|
}
|
|
2200
2200
|
return { ...plan, isolatedBoundaries: [...plan.isolatedBoundaries] };
|
|
@@ -2223,14 +2223,14 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2223
2223
|
`[Farm.js] isolated hydration kept route-wide because integration provider "${unsupportedIntegrationProvider.name}" does not declare supportsIsolatedHydration: true.`
|
|
2224
2224
|
);
|
|
2225
2225
|
}
|
|
2226
|
-
const isolatedMode =
|
|
2226
|
+
const isolatedMode = _chunkQN5WRQSQcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
2227
2227
|
_optionalChain([config, 'access', _61 => _61.experimental, 'optionalAccess', _62 => _62.isolatedClientHydration]),
|
|
2228
2228
|
{
|
|
2229
2229
|
serverComponents: _chunkBPNOYILCcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _63 => _63.experimental, 'optionalAccess', _64 => _64.serverComponents])) === "rsc",
|
|
2230
2230
|
hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
|
|
2231
2231
|
}
|
|
2232
2232
|
);
|
|
2233
|
-
const planOptions =
|
|
2233
|
+
const planOptions = _chunkQN5WRQSQcjs.getFarmClientHydrationPlanOptions.call(void 0,
|
|
2234
2234
|
config.renderer,
|
|
2235
2235
|
Boolean(unsupportedIntegrationProvider)
|
|
2236
2236
|
);
|
|
@@ -2302,7 +2302,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2302
2302
|
);
|
|
2303
2303
|
const syntheticDocsEntry = _optionalChain([config, 'access', _76 => _76.docs, 'optionalAccess', _77 => _77.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
|
|
2304
2304
|
const syntheticDocsPatterns = syntheticDocsEntry ? syntheticDocsEntry === "/" ? ["/", "/[...slug]"] : [syntheticDocsEntry, `${syntheticDocsEntry}/[...slug]`] : [];
|
|
2305
|
-
const markdownPagePlan =
|
|
2305
|
+
const markdownPagePlan = _chunkQN5WRQSQcjs.createMarkdownPageHydrationPlanner.call(void 0,
|
|
2306
2306
|
_chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx), root),
|
|
2307
2307
|
root,
|
|
2308
2308
|
isolatedMode,
|
|
@@ -2318,7 +2318,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2318
2318
|
pagePlanOptions
|
|
2319
2319
|
)
|
|
2320
2320
|
}));
|
|
2321
|
-
|
|
2321
|
+
_chunkQN5WRQSQcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
|
|
2322
2322
|
clientLayouts.map((layout) => ({
|
|
2323
2323
|
pattern: layout.pattern,
|
|
2324
2324
|
depth: layout.pattern.split("/").filter(Boolean).length,
|
|
@@ -2351,7 +2351,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2351
2351
|
for (const layout of clientLayouts) {
|
|
2352
2352
|
const matchesBuiltRoute = pageRoutes.some((route) => layoutAppliesToRoute(layout.pattern, routeDirectory(route))) || docsEntries.some((docsEntry) => layoutAppliesToRoute(layout.pattern, docsEntry));
|
|
2353
2353
|
if (matchesBuiltRoute && layout.suppressedAsyncHydration) {
|
|
2354
|
-
_chunkQMNWKQL4cjs.logger.warn(`\u26A0\uFE0F ${
|
|
2354
|
+
_chunkQMNWKQL4cjs.logger.warn(`\u26A0\uFE0F ${_chunkQN5WRQSQcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`);
|
|
2355
2355
|
}
|
|
2356
2356
|
}
|
|
2357
2357
|
if (isolatedMode === "analyze") {
|
|
@@ -2375,12 +2375,12 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2375
2375
|
);
|
|
2376
2376
|
if (metadata.suppressedAsyncHydration) {
|
|
2377
2377
|
_chunkQMNWKQL4cjs.logger.warn(
|
|
2378
|
-
`\u26A0\uFE0F ${
|
|
2378
|
+
`\u26A0\uFE0F ${_chunkQN5WRQSQcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
|
|
2379
2379
|
);
|
|
2380
2380
|
}
|
|
2381
2381
|
if (metadata.shouldHydrate || metadata.hasIsolatedClientBoundaries || applicableClientLayouts.length > 0) {
|
|
2382
2382
|
const relativePath = route.modulePath.replace(root, "").replace(/^\//, "");
|
|
2383
|
-
const islandStrategy =
|
|
2383
|
+
const islandStrategy = _chunkQN5WRQSQcjs.resolveFarmRouteRootStrategy.call(void 0,
|
|
2384
2384
|
route,
|
|
2385
2385
|
metadata,
|
|
2386
2386
|
clientLayouts,
|
|
@@ -2398,7 +2398,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2398
2398
|
...applicableClientLayouts.filter((layout) => layout.hasIsolatedClientBoundaries || layout.serverTreeLayout).flatMap((layout) => layout.isolatedBoundaries)
|
|
2399
2399
|
],
|
|
2400
2400
|
// The server renders a server tree only below a hydrating layout.
|
|
2401
|
-
...
|
|
2401
|
+
..._chunkQN5WRQSQcjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
|
|
2402
2402
|
});
|
|
2403
2403
|
_chunkQMNWKQL4cjs.logger.info(`\u{1F4F1} Found hydratable route: ${route.pattern} -> ${route.modulePath}`);
|
|
2404
2404
|
}
|
|
@@ -2434,7 +2434,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2434
2434
|
}
|
|
2435
2435
|
const clientRouteSlots = routeSlots.filter((slot) => {
|
|
2436
2436
|
try {
|
|
2437
|
-
return
|
|
2437
|
+
return _chunkQN5WRQSQcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root).shouldHydrate;
|
|
2438
2438
|
} catch (error) {
|
|
2439
2439
|
_chunkQMNWKQL4cjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
|
|
2440
2440
|
return false;
|
|
@@ -2465,11 +2465,11 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2465
2465
|
config.trailingSlash,
|
|
2466
2466
|
_chunkI32V5CZLcjs.getIntegrationProviders.call(void 0, config.integrations),
|
|
2467
2467
|
config.basePath,
|
|
2468
|
-
|
|
2468
|
+
_chunkQN5WRQSQcjs.generateClientCachePersistenceCode.call(void 0, _chunkQN5WRQSQcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
|
|
2469
2469
|
adapterOwnsDocsRuntime ? _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0,
|
|
2470
2470
|
_chunkBPNOYILCcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _83 => _83.experimental, 'optionalAccess', _84 => _84.serverComponents])) === "islands",
|
|
2471
2471
|
platform,
|
|
2472
|
-
islandsMode ?
|
|
2472
|
+
islandsMode ? _chunkQN5WRQSQcjs.collectFarmServerStylesheets.call(void 0,
|
|
2473
2473
|
[
|
|
2474
2474
|
...layoutRoutes.map((layout) => layout.modulePath),
|
|
2475
2475
|
...pageRoutes.filter((route) => !isAdapterDocsRoute(route.pattern)).map((route) => route.modulePath)
|
|
@@ -2480,7 +2480,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2480
2480
|
const entryName = platform === "mobile" ? _chunkEFZGB7JCcjs.FARM_MOBILE_CLIENT_ENTRY_NAME : "farm-client";
|
|
2481
2481
|
await fs4.writeFile(clientEntryPath, clientHydrationCode);
|
|
2482
2482
|
const clientInput = { [entryName]: clientEntryPath };
|
|
2483
|
-
if (platform === "web" &&
|
|
2483
|
+
if (platform === "web" && _chunkQN5WRQSQcjs.canBootFarmIslandsClient.call(void 0, config)) {
|
|
2484
2484
|
const clientBootPath = _path2.default.join(clientEntryDir, "farm-client-boot.tsx");
|
|
2485
2485
|
await fs4.writeFile(
|
|
2486
2486
|
clientBootPath,
|
|
@@ -2552,7 +2552,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2552
2552
|
}
|
|
2553
2553
|
},
|
|
2554
2554
|
plugins: [
|
|
2555
|
-
|
|
2555
|
+
_chunkQN5WRQSQcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
2556
2556
|
createFarmPrivateClientSourcemapsPlugin({
|
|
2557
2557
|
outDir: _path2.default.join(
|
|
2558
2558
|
_path2.default.dirname(outputDir),
|
|
@@ -2584,7 +2584,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2584
2584
|
...rendererVitePlugins,
|
|
2585
2585
|
...config.vite.plugins || [],
|
|
2586
2586
|
farmServerOnlyEntriesPlugin({ platform }),
|
|
2587
|
-
|
|
2587
|
+
_chunkQN5WRQSQcjs.farmDocsClientConfigPlugin.call(void 0,
|
|
2588
2588
|
adapterOwnsDocsRuntime ? _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
|
|
2589
2589
|
),
|
|
2590
2590
|
// Plugin to redirect @farm.js/core imports to client-only exports
|
|
@@ -2646,7 +2646,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2646
2646
|
} : void 0,
|
|
2647
2647
|
// Ensure React is bundled for client
|
|
2648
2648
|
resolve: {
|
|
2649
|
-
alias:
|
|
2649
|
+
alias: _chunkQN5WRQSQcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
|
|
2650
2650
|
dedupe: [...config.renderer.dedupe || []]
|
|
2651
2651
|
},
|
|
2652
2652
|
// Optimize dependencies - exclude server-side code from client bundle
|
|
@@ -2659,7 +2659,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2659
2659
|
]
|
|
2660
2660
|
}
|
|
2661
2661
|
};
|
|
2662
|
-
await viteBuild(
|
|
2662
|
+
await viteBuild(_chunkQN5WRQSQcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite));
|
|
2663
2663
|
if (platform === "mobile") {
|
|
2664
2664
|
await fs4.rm(_path2.default.join(outputDir, `${entryName}.css`), { force: true });
|
|
2665
2665
|
if (!await _chunkEFZGB7JCcjs.hasFarmMobileClientEntry.call(void 0, _path2.default.dirname(outputDir), outputDir)) {
|
|
@@ -2758,7 +2758,7 @@ async function fetchFarmNavigationDocument(url, headers, recover = true, signal)
|
|
|
2758
2758
|
return response;
|
|
2759
2759
|
}
|
|
2760
2760
|
|
|
2761
|
-
${streamNavigations ?
|
|
2761
|
+
${streamNavigations ? _chunkQN5WRQSQcjs.FARM_NAVIGATION_STREAM_READER_SOURCE : ""}
|
|
2762
2762
|
|
|
2763
2763
|
function clearFarmPrefetchCacheOnDeploymentMismatch(router, error) {
|
|
2764
2764
|
if (error?.name === "FarmDeploymentMismatchError") {
|
|
@@ -3516,7 +3516,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
|
|
|
3516
3516
|
direction: {}
|
|
3517
3517
|
}, plugins = [], renderer = _chunkRD623KW4cjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false, platform, serverStylesheets = []) {
|
|
3518
3518
|
const toImportPath = (targetPath) => targetPath.replace(/\\/g, "/");
|
|
3519
|
-
const clientPluginEntry =
|
|
3519
|
+
const clientPluginEntry = _chunkQN5WRQSQcjs.generateFarmClientPluginEntryCode.call(void 0,
|
|
3520
3520
|
plugins,
|
|
3521
3521
|
root,
|
|
3522
3522
|
srcDir,
|
|
@@ -3528,7 +3528,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
|
|
|
3528
3528
|
import { createRoot, hydrateRoot } from "react-dom/client";` : appSetupPath ? `import React, { createRoot, hydrateRoot, configureApp as __farmConfigureApp } from ${JSON.stringify(renderer.client)};
|
|
3529
3529
|
import __farmAppSetup from ${JSON.stringify(_chunkQMNWKQL4cjs.toPosixPath.call(void 0, appSetupPath))};
|
|
3530
3530
|
__farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};`;
|
|
3531
|
-
const providerClientCode =
|
|
3531
|
+
const providerClientCode = _chunkQN5WRQSQcjs.generateFarmIntegrationProviderClientCode.call(void 0,
|
|
3532
3532
|
integrationProviders,
|
|
3533
3533
|
root,
|
|
3534
3534
|
_nullishCoalesce(renderer.componentExtensions, () => ( []))
|
|
@@ -4085,7 +4085,7 @@ function hasHydratableLayout(pathname) {
|
|
|
4085
4085
|
});
|
|
4086
4086
|
}
|
|
4087
4087
|
|
|
4088
|
-
${
|
|
4088
|
+
${_chunkQN5WRQSQcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
|
|
4089
4089
|
// Wrap a page element with applicable layouts
|
|
4090
4090
|
function wrapWithLayouts(pageElement, pathname, params) {
|
|
4091
4091
|
const layouts = getApplicableLayouts(pathname);
|
|
@@ -4120,7 +4120,7 @@ function createLayoutPageBoundary(route, pageElement, serverHtml) {
|
|
|
4120
4120
|
return React.createElement("div", props, pageElement);
|
|
4121
4121
|
}
|
|
4122
4122
|
let farmLastRouteState = null;
|
|
4123
|
-
${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${
|
|
4123
|
+
${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${_chunkQN5WRQSQcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
|
|
4124
4124
|
function farmTreeLayoutsOf(pathname) {
|
|
4125
4125
|
return getApplicableLayouts(pathname).filter(function(layout) {
|
|
4126
4126
|
return layout.serverTree === true;
|
|
@@ -5350,7 +5350,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5350
5350
|
}
|
|
5351
5351
|
const middlewareRoutes = await discoverMiddlewareRoutes(appDirs);
|
|
5352
5352
|
const instrumentationPath = _chunkBRWIVOV4cjs.resolveFarmInstrumentationFile.call(void 0, root, config.srcDir || "src");
|
|
5353
|
-
const notFoundPath =
|
|
5353
|
+
const notFoundPath = _chunkQN5WRQSQcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
|
|
5354
5354
|
if (notFoundPath) _chunkQMNWKQL4cjs.logger.info(`\u{1F4CB} Found custom 404 page: ${notFoundPath}`);
|
|
5355
5355
|
layoutRoutes.sort((a, b) => {
|
|
5356
5356
|
const depthA = a.pattern.split("/").filter(Boolean).length;
|
|
@@ -5373,7 +5373,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5373
5373
|
const hasObservabilityHandler = !!config.observability && typeof config.observability === "object" && "onEvent" in config.observability;
|
|
5374
5374
|
const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _91 => _91.mdx, 'optionalAccess', _92 => _92.components]));
|
|
5375
5375
|
const hasMiddlewareConfig = _chunkO27PLNQZcjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
|
|
5376
|
-
const hasRouteContextConfig =
|
|
5376
|
+
const hasRouteContextConfig = _chunkU6WCUVSVcjs.hasCustomFarmRouteContext.call(void 0, config);
|
|
5377
5377
|
const hasServerRuntimePlugins = hasFarmServerRuntimePlugins(config);
|
|
5378
5378
|
const hasPluginRoutes = hasFarmPluginRoutes(config);
|
|
5379
5379
|
const hasServerCacheConfig = hasFarmServerCacheConfig(config.cache);
|
|
@@ -5383,9 +5383,9 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5383
5383
|
const hasConfiguredRuntimePlugins = Boolean(
|
|
5384
5384
|
hasRuntimeConfigModule && (config.plugins || []).length > 0
|
|
5385
5385
|
);
|
|
5386
|
-
if (
|
|
5386
|
+
if (_chunk5IKQ7BIRcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
|
|
5387
5387
|
const adapterGuardedPaths = new Set(getFarmDocsGuardedPaths(config, middlewareRoutes));
|
|
5388
|
-
|
|
5388
|
+
_chunk5IKQ7BIRcjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
|
|
5389
5389
|
config.docs,
|
|
5390
5390
|
{ root, srcDir: config.srcDir },
|
|
5391
5391
|
(pathname) => adapterGuardedPaths.has(pathname)
|
|
@@ -5394,7 +5394,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5394
5394
|
const farmDocsCspNonceMarker = _chunk6JHZPB52cjs.createFarmCspNonce.call(void 0, config.security);
|
|
5395
5395
|
const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _93 => _93.docs, 'optionalAccess', _94 => _94.enabled]) && _chunkE552H232cjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? await _chunkHNAISJFDcjs._runWithFarmCspNonce.call(void 0,
|
|
5396
5396
|
farmDocsCspNonceMarker,
|
|
5397
|
-
async () => _optionalChain([config, 'access', _95 => _95.docs, 'access', _96 => _96.adapter, 'optionalAccess', _97 => _97.server]) ? await
|
|
5397
|
+
async () => _optionalChain([config, 'access', _95 => _95.docs, 'access', _96 => _96.adapter, 'optionalAccess', _97 => _97.server]) ? await _chunk5IKQ7BIRcjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
|
|
5398
5398
|
root,
|
|
5399
5399
|
srcDir: config.srcDir,
|
|
5400
5400
|
clientEntry: FARM_CLIENT_JS_SRC_PLACEHOLDER,
|
|
@@ -5557,7 +5557,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5557
5557
|
__FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _103 => _103.env, 'optionalAccess', _104 => _104.public]) || {})
|
|
5558
5558
|
},
|
|
5559
5559
|
plugins: [
|
|
5560
|
-
|
|
5560
|
+
_chunkQN5WRQSQcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
5561
5561
|
...tailwindVitePlugin ? [tailwindVitePlugin] : [],
|
|
5562
5562
|
...rendererVitePlugins,
|
|
5563
5563
|
...config.vite.plugins || [],
|
|
@@ -5618,7 +5618,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5618
5618
|
resolve: {
|
|
5619
5619
|
alias: [
|
|
5620
5620
|
...shouldAliasReactServerToWebBuild(config.renderer, preset) ? [createFarmReactWebServerAlias(hasReactDomEdgeServerBuild(root))] : [],
|
|
5621
|
-
...Object.entries(
|
|
5621
|
+
...Object.entries(_chunkQN5WRQSQcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
|
|
5622
5622
|
([find, replacement]) => ({ find, replacement })
|
|
5623
5623
|
)
|
|
5624
5624
|
],
|
|
@@ -5626,7 +5626,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5626
5626
|
dedupe: [...config.renderer.dedupe || []]
|
|
5627
5627
|
}
|
|
5628
5628
|
};
|
|
5629
|
-
await viteBuild(
|
|
5629
|
+
await viteBuild(_chunkQN5WRQSQcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
|
|
5630
5630
|
} finally {
|
|
5631
5631
|
if (postcssConfigDir) {
|
|
5632
5632
|
try {
|
|
@@ -6050,7 +6050,7 @@ ReactDOMServer.configureApp(__farmAppSetup);`;
|
|
|
6050
6050
|
}
|
|
6051
6051
|
function generateVirtualEntryCode(apiRoutes, pageRoutes, layoutRoutes, routeSlots, errorRoutes, metadataImageRoutes, applicationMetadataRoutes, middlewareRoutes, redirectRoutes, configuredRewriteRoutes, configuredHeaderRoutes, openAPIReference, notFoundPath, instrumentationPath, config, farmDocsPrecompiledManifest, configModulePath, hasServerRuntimeIntegrations, hasRuntimeIntegrationConfig, hasConfiguredRuntimePlugins, hasServerRuntimePlugins, preset, i18nCatalogs, isolatedClientBoundaryModules, hydrationPlanCache, mobileShellLoadingRoutes = []) {
|
|
6052
6052
|
const farmIslandsMode = _chunkBPNOYILCcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _121 => _121.experimental, 'optionalAccess', _122 => _122.serverComponents])) === "islands";
|
|
6053
|
-
const farmClientBoot =
|
|
6053
|
+
const farmClientBoot = _chunkQN5WRQSQcjs.canBootFarmIslandsClient.call(void 0, config);
|
|
6054
6054
|
const farmMobileClient = shouldBuildFarmMobileClient(config);
|
|
6055
6055
|
const farmMobileShells = farmMobileClient && config.mobileShells ? config.mobileShells : null;
|
|
6056
6056
|
const hasCompressionRuntime = config.compress && _chunkOCS3PSYRcjs.resolveFarmInstrumentationRuntime.call(void 0, preset) === "nodejs";
|
|
@@ -6128,7 +6128,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
6128
6128
|
`Integration provider components are not supported by the "${config.renderer.name}" renderer.`
|
|
6129
6129
|
);
|
|
6130
6130
|
}
|
|
6131
|
-
const providerServerModules =
|
|
6131
|
+
const providerServerModules = _chunkQN5WRQSQcjs.generateFarmIntegrationProviderServerModules.call(void 0,
|
|
6132
6132
|
renderedIntegrationProviders,
|
|
6133
6133
|
config.root,
|
|
6134
6134
|
_nullishCoalesce(config.renderer.componentExtensions, () => ( []))
|
|
@@ -6148,14 +6148,14 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
6148
6148
|
const unsupportedIntegrationProvider = renderedIntegrationProviders.find(
|
|
6149
6149
|
(provider) => provider.supportsIsolatedHydration !== true
|
|
6150
6150
|
);
|
|
6151
|
-
const isolatedHydrationMode =
|
|
6151
|
+
const isolatedHydrationMode = _chunkQN5WRQSQcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
6152
6152
|
_optionalChain([config, 'access', _147 => _147.experimental, 'optionalAccess', _148 => _148.isolatedClientHydration]),
|
|
6153
6153
|
{
|
|
6154
6154
|
serverComponents: _chunkBPNOYILCcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _149 => _149.experimental, 'optionalAccess', _150 => _150.serverComponents])) === "rsc",
|
|
6155
6155
|
hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
|
|
6156
6156
|
}
|
|
6157
6157
|
);
|
|
6158
|
-
const hydrationPlanOptions =
|
|
6158
|
+
const hydrationPlanOptions = _chunkQN5WRQSQcjs.getFarmClientHydrationPlanOptions.call(void 0,
|
|
6159
6159
|
config.renderer,
|
|
6160
6160
|
Boolean(unsupportedIntegrationProvider)
|
|
6161
6161
|
);
|
|
@@ -6173,7 +6173,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
6173
6173
|
{ ...hydrationPlanOptions, serverTreeLayouts: pageHydrationPlanOptions.serverOwners }
|
|
6174
6174
|
)
|
|
6175
6175
|
}));
|
|
6176
|
-
const markdownPagePlan =
|
|
6176
|
+
const markdownPagePlan = _chunkQN5WRQSQcjs.createMarkdownPageHydrationPlanner.call(void 0,
|
|
6177
6177
|
_chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx), config.root),
|
|
6178
6178
|
config.root,
|
|
6179
6179
|
isolatedHydrationMode,
|
|
@@ -6191,7 +6191,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
6191
6191
|
)
|
|
6192
6192
|
])
|
|
6193
6193
|
);
|
|
6194
|
-
|
|
6194
|
+
_chunkQN5WRQSQcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
|
|
6195
6195
|
layoutHydrationPlans.map((layout) => ({
|
|
6196
6196
|
pattern: layout.pattern,
|
|
6197
6197
|
depth: layout.pattern.split("/").filter(Boolean).length,
|
|
@@ -6266,8 +6266,8 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
6266
6266
|
module: ${varName},
|
|
6267
6267
|
shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},${clientMetadata.shouldHydrate ? `
|
|
6268
6268
|
clientModule: ${JSON.stringify(_chunkQMNWKQL4cjs.toViteModuleId.call(void 0, route.modulePath, config.root))},` : ""}
|
|
6269
|
-
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${
|
|
6270
|
-
const rootStrategy =
|
|
6269
|
+
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkQN5WRQSQcjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${(() => {
|
|
6270
|
+
const rootStrategy = _chunkQN5WRQSQcjs.resolveFarmRouteRootStrategy.call(void 0,
|
|
6271
6271
|
route,
|
|
6272
6272
|
clientMetadata,
|
|
6273
6273
|
layoutHydrationPlans.map((layout) => ({ ...layout, ...layout.hydration })),
|
|
@@ -6619,10 +6619,10 @@ import { fileURLToPath as farmDocsFileURLToPath } from "node:url";` : "";
|
|
|
6619
6619
|
);
|
|
6620
6620
|
const nativeServerFns = (config.plugins || []).some(
|
|
6621
6621
|
(plugin) => _optionalChain([plugin, 'optionalAccess', _171 => _171.name]) === _chunk4EBC7EMWcjs.FARM_NATIVE_SERVER_FN_PLUGIN
|
|
6622
|
-
) ?
|
|
6622
|
+
) ? _chunkLFFSDZ4Ycjs.collectFarmNativeServerFns.call(void 0, {
|
|
6623
6623
|
root: config.root,
|
|
6624
6624
|
srcDir: config.srcDir,
|
|
6625
|
-
entries:
|
|
6625
|
+
entries: _chunkLFFSDZ4Ycjs.findFarmNativeScreenFiles.call(void 0, _chunk5Y2P454Ocjs.getFarmAppDirectories.call(void 0, config))
|
|
6626
6626
|
}) : void 0;
|
|
6627
6627
|
const integrationImports = `
|
|
6628
6628
|
${configModulePath ? `import * as FarmUserConfigModule from ${toVirtualEntryImportSpecifier(configModulePath)};` : ""}
|
|
@@ -6637,7 +6637,7 @@ ${nativeServerFns ? `const __farmNativeServerFnRegistry = Object.assign(Object.c
|
|
|
6637
6637
|
${nativeServerFns.flatMap((module, index) => module.exports.map((entry) => ` ${JSON.stringify(entry.id)}: __farmNativeServerFns${index}[${JSON.stringify(entry.name)}],`)).join("\n")}
|
|
6638
6638
|
});` : ""}
|
|
6639
6639
|
`;
|
|
6640
|
-
const imageRuntime =
|
|
6640
|
+
const imageRuntime = _chunkQN5WRQSQcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
|
|
6641
6641
|
const imageRuntimeImport = imageRuntime === "none" ? "" : `import { _withFarmImageSourceClientAddress, createCloudflareImageTransformer, createFarmImageHandler } from "@farm.js/core/image/server";`;
|
|
6642
6642
|
const imageNodeRuntimeImport = imageRuntime === "node" ? `import { createNodeImageFetcher, createNodeImageUrlValidator, createSharpImageTransformer } from "@farm.js/core/image/sharp";` : "";
|
|
6643
6643
|
const apiHandlerCode = apiRoutes.length > 0 ? `
|
|
@@ -6817,7 +6817,7 @@ const farmResolvedRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs);
|
|
|
6817
6817
|
|
|
6818
6818
|
function FarmDefault404Page() {
|
|
6819
6819
|
return React.createElement(React.Fragment, null,
|
|
6820
|
-
React.createElement("style", null, ${JSON.stringify(
|
|
6820
|
+
React.createElement("style", null, ${JSON.stringify(_chunkQN5WRQSQcjs.DEFAULT_NOT_FOUND_STYLES)}),
|
|
6821
6821
|
React.createElement("main", {
|
|
6822
6822
|
className: "farm-default-not-found",
|
|
6823
6823
|
"aria-labelledby": "farm-default-not-found-title",
|
|
@@ -6967,7 +6967,7 @@ ${_optionalChain([config, 'access', _179 => _179.agent, 'optionalAccess', _180 =
|
|
|
6967
6967
|
// to the build.
|
|
6968
6968
|
const farmNoindexPreview = resolveFarmPreviewDeployment(
|
|
6969
6969
|
globalThis.process?.env,
|
|
6970
|
-
${JSON.stringify(
|
|
6970
|
+
${JSON.stringify(_chunkLWWDTBGLcjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env))},
|
|
6971
6971
|
);` : ""}
|
|
6972
6972
|
const farmMdxComponents = ${mdxComponentsPath ? `(FarmMdxComponentsModule.components || Reflect.get(FarmMdxComponentsModule, "default") || {})` : `(configuredFarmMdxComponents && typeof configuredFarmMdxComponents === "object" ? configuredFarmMdxComponents : {})`};
|
|
6973
6973
|
const farmObservabilityConfig = farmUserConfig?.observability ?? ${JSON.stringify(
|
|
@@ -7134,12 +7134,12 @@ function fetchFarmInnerRequest(request, context) {
|
|
|
7134
7134
|
}
|
|
7135
7135
|
const farmLocalAPIBasePath = ${JSON.stringify(_chunk2OF5RPVUcjs.resolveFarmAPIServerBasePath.call(void 0, config.api))};
|
|
7136
7136
|
const farmOpenAPIReference = ${JSON.stringify(openAPIReference)};
|
|
7137
|
-
${_optionalChain([config, 'access', _192 => _192.agent, 'optionalAccess', _193 => _193.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(
|
|
7137
|
+
${_optionalChain([config, 'access', _192 => _192.agent, 'optionalAccess', _193 => _193.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkEYLC6GD6cjs.resolveFarmApiCatalogInput.call(void 0, config))};
|
|
7138
7138
|
` : ""}${_optionalChain([config, 'access', _194 => _194.agent, 'optionalAccess', _195 => _195.manifest]) !== false ? `const farmAppManifestInput = ${JSON.stringify(
|
|
7139
|
-
|
|
7139
|
+
_chunkEYLC6GD6cjs.resolveFarmAppManifestInput.call(void 0, config, {
|
|
7140
7140
|
build: config.deploymentId,
|
|
7141
|
-
packages:
|
|
7142
|
-
webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ?
|
|
7141
|
+
packages: _chunkQN5WRQSQcjs.resolveFarmAppPackages.call(void 0, config.root),
|
|
7142
|
+
webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkQN5WRQSQcjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
|
|
7143
7143
|
})
|
|
7144
7144
|
)};
|
|
7145
7145
|
${servesDefaultMCP ? "farmAppManifestInput.defaultMCP = getFarmDefaultMCPServer;\n" : ""}// A guard written for an MCP server's path keeps its tools out of the public view.
|
|
@@ -8344,7 +8344,7 @@ ${servesDefaultMCP ? `// agent.mcp: the default read-only MCP server at /mcp, as
|
|
|
8344
8344
|
// aside for a page route that answers /mcp and for any MCP server published or
|
|
8345
8345
|
// registered at runtime, such as the docs engine's.
|
|
8346
8346
|
const farmDefaultMCPServer = ${JSON.stringify(
|
|
8347
|
-
_chunkQAS7KE7Jcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root),
|
|
8347
|
+
_chunkQAS7KE7Jcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunkFNHN3RBDcjs.FARM_VERSION)
|
|
8348
8348
|
)};
|
|
8349
8349
|
let farmDefaultMCPRouteFree;
|
|
8350
8350
|
function getFarmDefaultMCPServer() {
|
|
@@ -8754,7 +8754,7 @@ ${hasInfraAnalyticsRuntime ? `
|
|
|
8754
8754
|
// endpoints, Markdown mirrors, and docs pages have no app route pattern, so they are
|
|
8755
8755
|
// labeled here; route.pattern keeps meaning the matched app route for plugins.
|
|
8756
8756
|
const farmBuiltInRoutePaths = new Set(${JSON.stringify(
|
|
8757
|
-
|
|
8757
|
+
_chunkEYLC6GD6cjs.listFarmBuiltInRoutePaths.call(void 0, {
|
|
8758
8758
|
agent: {
|
|
8759
8759
|
...config.agent,
|
|
8760
8760
|
aiCatalog: servesAiCatalog,
|
|
@@ -9460,7 +9460,7 @@ ${hasServerRuntimeIntegrations ? `
|
|
|
9460
9460
|
// agent.manifest: /.well-known/farmjs.json (and 0.1.34's /.well-known/farmjs), the app's
|
|
9461
9461
|
// public manifest, the same document for every request.
|
|
9462
9462
|
if (
|
|
9463
|
-
[${JSON.stringify(
|
|
9463
|
+
[${JSON.stringify(_chunkEYLC6GD6cjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunkEYLC6GD6cjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
|
|
9464
9464
|
normalizeRuntimePath(routePathname),
|
|
9465
9465
|
)
|
|
9466
9466
|
) {
|
|
@@ -9472,7 +9472,7 @@ ${hasServerRuntimeIntegrations ? `
|
|
|
9472
9472
|
` : ""}
|
|
9473
9473
|
${_optionalChain([config, 'access', _222 => _222.agent, 'optionalAccess', _223 => _223.apiCatalog]) ? `
|
|
9474
9474
|
// agent.apiCatalog: list the OpenAPI and MCP surfaces at the RFC 9727 path.
|
|
9475
|
-
if (normalizeRuntimePath(routePathname) === ${JSON.stringify(
|
|
9475
|
+
if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkEYLC6GD6cjs.FARM_API_CATALOG_PATH)}) {
|
|
9476
9476
|
return applyProductionMiddlewareHeaders(
|
|
9477
9477
|
createFarmApiCatalogResponse(request.method, farmApiCatalogInput, request),
|
|
9478
9478
|
middlewareHeaders,
|
|
@@ -11022,7 +11022,7 @@ function getPhysicalPrerenderBypassReason(options) {
|
|
|
11022
11022
|
}
|
|
11023
11023
|
if (_chunkO27PLNQZcjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
|
|
11024
11024
|
if (_chunkO27PLNQZcjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
|
|
11025
|
-
if (
|
|
11025
|
+
if (_chunkU6WCUVSVcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
|
|
11026
11026
|
if (farmServerRuntimePluginsMayHandlePath(config, pathname)) return "server runtime plugin";
|
|
11027
11027
|
const manifestEntry = getManifestPageEntry(routeRuntimeManifest, pathname);
|
|
11028
11028
|
if (_optionalChain([manifestEntry, 'optionalAccess', _240 => _240.rendering]) === "dynamic") return "dynamic runtime manifest";
|
|
@@ -11040,7 +11040,7 @@ function getPhysicalPrerenderBypassReason(options) {
|
|
|
11040
11040
|
}
|
|
11041
11041
|
async function getFarmDocsPrerenderPages(config, root, preset) {
|
|
11042
11042
|
if (!_optionalChain([config, 'access', _243 => _243.docs, 'optionalAccess', _244 => _244.enabled]) || !config.docs.prerender) return [];
|
|
11043
|
-
if (!_chunkRD623KW4cjs.isReactRenderer.call(void 0, config.renderer) || !
|
|
11043
|
+
if (!_chunkRD623KW4cjs.isReactRenderer.call(void 0, config.renderer) || !_chunk5IKQ7BIRcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
|
|
11044
11044
|
_chunkQMNWKQL4cjs.logger.warn(
|
|
11045
11045
|
"docs.prerender needs a docs adapter such as @farming-labs/farmjs; Farm's built-in docs renderer keeps rendering docs pages on request."
|
|
11046
11046
|
);
|
|
@@ -11052,7 +11052,7 @@ async function getFarmDocsPrerenderPages(config, root, preset) {
|
|
|
11052
11052
|
);
|
|
11053
11053
|
return [];
|
|
11054
11054
|
}
|
|
11055
|
-
const pages = await
|
|
11055
|
+
const pages = await _chunk5IKQ7BIRcjs.listFarmDocsAdapterPages.call(void 0, config.docs, { root, srcDir: config.srcDir });
|
|
11056
11056
|
if (!pages) {
|
|
11057
11057
|
_chunkQMNWKQL4cjs.logger.warn(
|
|
11058
11058
|
`The docs adapter ${JSON.stringify(config.docs.adapter.id)} does not list its pages for prerendering; upgrade it to prerender docs pages. They render on request until then.`
|
|
@@ -11078,10 +11078,10 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
|
|
|
11078
11078
|
const nitroBuilder = nitroBuilderResult.value;
|
|
11079
11079
|
const isVercel = preset === "vercel" || preset === "vercel-edge";
|
|
11080
11080
|
const isCloudflareWorker = preset === "cloudflare-module";
|
|
11081
|
-
const outputDir =
|
|
11081
|
+
const outputDir = _chunkU6WCUVSVcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
11082
11082
|
const runtimeServerOutputDir = isVercel ? _path2.default.join(outputDir, "functions", "__nitro.func") : _path2.default.join(outputDir, "server");
|
|
11083
11083
|
const ssrOutputDir = _path2.default.join(root, distDir, "ssr");
|
|
11084
|
-
const imageRuntime =
|
|
11084
|
+
const imageRuntime = _chunkQN5WRQSQcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
|
|
11085
11085
|
const hasGeneratedMetadataImages = Array.from(routeManager.getMetadataImages().values()).some(
|
|
11086
11086
|
(image) => image.sourceType === "module"
|
|
11087
11087
|
);
|
|
@@ -11767,13 +11767,13 @@ function toFarmNodeResponse(request, response) {
|
|
|
11767
11767
|
}
|
|
11768
11768
|
if (prerenderRoutes.length > 0) {
|
|
11769
11769
|
_chunkQMNWKQL4cjs.logger.info(`\u{1F4C4} Pre-rendering ${prerenderRoutes.length} SSG page(s)`);
|
|
11770
|
-
const previousPrerender = process.env[
|
|
11771
|
-
process.env[
|
|
11770
|
+
const previousPrerender = process.env[_chunk5L7I6AMYcjs.FARM_PRERENDER_ENV];
|
|
11771
|
+
process.env[_chunk5L7I6AMYcjs.FARM_PRERENDER_ENV] = "1";
|
|
11772
11772
|
try {
|
|
11773
11773
|
await nitroBuilder.prerender(nitroInstance);
|
|
11774
11774
|
} finally {
|
|
11775
|
-
if (previousPrerender === void 0) delete process.env[
|
|
11776
|
-
else process.env[
|
|
11775
|
+
if (previousPrerender === void 0) delete process.env[_chunk5L7I6AMYcjs.FARM_PRERENDER_ENV];
|
|
11776
|
+
else process.env[_chunk5L7I6AMYcjs.FARM_PRERENDER_ENV] = previousPrerender;
|
|
11777
11777
|
}
|
|
11778
11778
|
}
|
|
11779
11779
|
const sharpRuntimeStagePromise = imageRuntime === "node" ? stageSharpRuntime(config, root, distDir, fs4, preset) : Promise.resolve(null);
|
|
@@ -12078,7 +12078,7 @@ async function stageSharpRuntime(config, root, distDir, fs4, preset) {
|
|
|
12078
12078
|
try {
|
|
12079
12079
|
await copyPackage("sharp", sharpRequire);
|
|
12080
12080
|
if (!copiedPackages.has("sharp")) {
|
|
12081
|
-
throw new Error(`Farm image optimization requires sharp. ${
|
|
12081
|
+
throw new Error(`Farm image optimization requires sharp. ${_chunkQN5WRQSQcjs.SHARP_INSTALL_HINT}`);
|
|
12082
12082
|
}
|
|
12083
12083
|
} catch (error) {
|
|
12084
12084
|
await fs4.rm(stageDir, { recursive: true, force: true });
|
|
@@ -12299,7 +12299,7 @@ async function createFarmProjectModuleSsrEnvironment() {
|
|
|
12299
12299
|
// src/build/index.ts
|
|
12300
12300
|
async function build(config, options = {}) {
|
|
12301
12301
|
return _chunk4IHMHFQBcjs.withProductionNodeEnv.call(void 0,
|
|
12302
|
-
() =>
|
|
12302
|
+
() => _chunkQN5WRQSQcjs.withPackageClientBoundaryCache.call(void 0, () => buildWithProductionNodeEnv(config, options))
|
|
12303
12303
|
);
|
|
12304
12304
|
}
|
|
12305
12305
|
function createBuildTargetBaseline(config) {
|
|
@@ -12310,7 +12310,7 @@ function createBuildTargetBaseline(config) {
|
|
|
12310
12310
|
preset,
|
|
12311
12311
|
distDir,
|
|
12312
12312
|
outputDir,
|
|
12313
|
-
outputWasDerived: outputDir ===
|
|
12313
|
+
outputWasDerived: outputDir === _chunkU6WCUVSVcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
|
|
12314
12314
|
};
|
|
12315
12315
|
}
|
|
12316
12316
|
function resolveBuildTargets(config, options, baseline) {
|
|
@@ -12319,8 +12319,8 @@ function resolveBuildTargets(config, options, baseline) {
|
|
|
12319
12319
|
const distDir = config.distDir || ".farm";
|
|
12320
12320
|
const outputWasReplaced = config.deploy.outputDir !== baseline.outputDir;
|
|
12321
12321
|
const shouldRefreshDerivedOutput = baseline.outputWasDerived && !outputWasReplaced && (preset !== baseline.preset || distDir !== baseline.distDir);
|
|
12322
|
-
const deployTarget = preset === config.deploy.preset ? config.deploy.target :
|
|
12323
|
-
const outputDir = shouldRefreshDerivedOutput ?
|
|
12322
|
+
const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkU6WCUVSVcjs.getDeployTargetForPreset.call(void 0, preset);
|
|
12323
|
+
const outputDir = shouldRefreshDerivedOutput ? _chunkU6WCUVSVcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
|
|
12324
12324
|
return {
|
|
12325
12325
|
root,
|
|
12326
12326
|
preset,
|
|
@@ -12328,7 +12328,7 @@ function resolveBuildTargets(config, options, baseline) {
|
|
|
12328
12328
|
distDir,
|
|
12329
12329
|
deployTarget,
|
|
12330
12330
|
outputDir,
|
|
12331
|
-
deployOutputDir:
|
|
12331
|
+
deployOutputDir: _chunkU6WCUVSVcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
|
|
12332
12332
|
};
|
|
12333
12333
|
}
|
|
12334
12334
|
async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
@@ -12365,7 +12365,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
12365
12365
|
};
|
|
12366
12366
|
config = {
|
|
12367
12367
|
...config,
|
|
12368
|
-
images:
|
|
12368
|
+
images: _chunkQN5WRQSQcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
|
|
12369
12369
|
root: targets.root,
|
|
12370
12370
|
preset: targets.preset
|
|
12371
12371
|
})
|
|
@@ -12373,7 +12373,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
12373
12373
|
if (_optionalChain([config, 'access', _282 => _282.docs, 'optionalAccess', _283 => _283.enabled])) await _chunkV3UOEWCBcjs.loadFarmDocsEngine.call(void 0, );
|
|
12374
12374
|
pluginManager.updateContext({ config });
|
|
12375
12375
|
const { root, preset, srcDir, distDir, deployOutputDir } = targets;
|
|
12376
|
-
|
|
12376
|
+
_chunkQN5WRQSQcjs.usePackageClientBoundaryCacheFile.call(void 0,
|
|
12377
12377
|
_path2.default.resolve(root, distDir, "cache", "client-boundaries.json")
|
|
12378
12378
|
);
|
|
12379
12379
|
_chunkQMNWKQL4cjs.logger.info(`\u{1F69C} Building Farm.js application with preset: ${preset}...`);
|
|
@@ -12396,7 +12396,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
12396
12396
|
root,
|
|
12397
12397
|
rendererBuild.signal
|
|
12398
12398
|
);
|
|
12399
|
-
const farmApp =
|
|
12399
|
+
const farmApp = _chunkQN5WRQSQcjs.createFarmApp.call(void 0, config, projectModuleServer);
|
|
12400
12400
|
await farmApp.initialize();
|
|
12401
12401
|
const routeManager = farmApp.getRouteManager();
|
|
12402
12402
|
const serverRenderer = farmApp.getServerRenderer();
|
|
@@ -12503,7 +12503,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
12503
12503
|
ssr: true,
|
|
12504
12504
|
buildLifetime
|
|
12505
12505
|
});
|
|
12506
|
-
const viteConfig =
|
|
12506
|
+
const viteConfig = _chunkQN5WRQSQcjs.mergeFarmViteConfig.call(void 0,
|
|
12507
12507
|
{
|
|
12508
12508
|
root,
|
|
12509
12509
|
appType: "custom",
|
|
@@ -12515,7 +12515,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
12515
12515
|
},
|
|
12516
12516
|
plugins: [
|
|
12517
12517
|
...rendererVitePlugins,
|
|
12518
|
-
|
|
12518
|
+
_chunkQN5WRQSQcjs.farmFontImportsPlugin.call(void 0, {
|
|
12519
12519
|
root,
|
|
12520
12520
|
basePath: config.basePath,
|
|
12521
12521
|
publicDir: config.publicDir
|
|
@@ -12530,7 +12530,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
12530
12530
|
hmr: false
|
|
12531
12531
|
},
|
|
12532
12532
|
resolve: {
|
|
12533
|
-
alias:
|
|
12533
|
+
alias: _chunkQN5WRQSQcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
|
|
12534
12534
|
dedupe: [...config.renderer.dedupe || []]
|
|
12535
12535
|
},
|
|
12536
12536
|
optimizeDeps: {
|
|
@@ -12655,7 +12655,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
|
|
|
12655
12655
|
if (pluginManager) {
|
|
12656
12656
|
nitroConfig = await pluginManager.runHookSerial("beforeNitroBuild", nitroConfig);
|
|
12657
12657
|
}
|
|
12658
|
-
const outputDir =
|
|
12658
|
+
const outputDir = _chunkU6WCUVSVcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
12659
12659
|
const serverOutputDir = _path2.default.join(outputDir, "server");
|
|
12660
12660
|
const publicOutputDir = _path2.default.join(outputDir, "public");
|
|
12661
12661
|
const { mkdir, cp } = await import("fs/promises");
|
|
@@ -12726,7 +12726,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
|
|
|
12726
12726
|
root,
|
|
12727
12727
|
preset,
|
|
12728
12728
|
distDir,
|
|
12729
|
-
outputDir:
|
|
12729
|
+
outputDir: _chunkU6WCUVSVcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
|
|
12730
12730
|
});
|
|
12731
12731
|
}
|
|
12732
12732
|
}
|