@farm.js/core 0.1.85 → 0.1.86
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/{analyzer-R6KNJ6IO.mjs → analyzer-I5S5YKHM.mjs} +2 -2
- package/dist/analyzer-OEMQSLYT.cjs +17 -0
- package/dist/{chunk-3HWNYLQV.cjs → chunk-2NKNP4AH.cjs} +1 -1
- package/dist/{chunk-X7RSOEMQ.mjs → chunk-3TKGMIPX.mjs} +7 -7
- package/dist/{chunk-GFVPQ25Z.mjs → chunk-45ANSCTO.mjs} +12 -12
- package/dist/{chunk-MYSH5Y4E.mjs → chunk-4IE3YK7U.mjs} +1 -1
- package/dist/{chunk-CWUQBECF.mjs → chunk-4SJ22WTT.mjs} +1 -1
- package/dist/{chunk-PQR5A7R2.mjs → chunk-7UTRNV6R.mjs} +1 -1
- package/dist/{chunk-RVJQHQCG.cjs → chunk-BAD6T5NU.cjs} +4 -4
- package/dist/{chunk-HKJIUZS5.cjs → chunk-BLZCAFGJ.cjs} +2 -2
- package/dist/{chunk-YS647ASS.mjs → chunk-CFKAYV7B.mjs} +1 -1
- package/dist/{chunk-MAPHNGTF.cjs → chunk-CPSFDQKJ.cjs} +3 -3
- package/dist/{chunk-YX532KEF.mjs → chunk-CVKTYG4L.mjs} +2 -2
- package/dist/{chunk-BBX4RPOV.cjs → chunk-FDU4Q4QP.cjs} +7 -7
- package/dist/{chunk-UEQC4ZLP.cjs → chunk-FWLXYNWA.cjs} +164 -164
- package/dist/{chunk-XIXAUXV3.mjs → chunk-GWPANDW3.mjs} +1 -1
- package/dist/{chunk-BCCCPFHQ.mjs → chunk-HV6CYSMF.mjs} +3 -0
- package/dist/{chunk-WYTK7HQS.cjs → chunk-IAERD73G.cjs} +155 -155
- package/dist/{chunk-4QCMTIBM.mjs → chunk-KHIEGVG7.mjs} +1 -1
- package/dist/{chunk-7TPLDPNC.cjs → chunk-L2IULWKV.cjs} +9 -9
- package/dist/{chunk-BZN5HX7Y.cjs → chunk-NXOZRI3B.cjs} +2 -2
- package/dist/{chunk-H6C45DCF.cjs → chunk-P253SZJF.cjs} +93 -93
- package/dist/{chunk-Z3LOPHSO.mjs → chunk-PAENAKTC.mjs} +1 -1
- package/dist/{chunk-Q7GB3I4O.cjs → chunk-Q3YWQEUS.cjs} +2 -2
- package/dist/{chunk-OYM6VJEF.cjs → chunk-QYDGIXQ5.cjs} +137 -88
- package/dist/{chunk-U6HUVY5R.mjs → chunk-QYWP5KDY.mjs} +10 -10
- package/dist/{chunk-2DMOB6BH.mjs → chunk-RA5OUXOJ.mjs} +2 -2
- package/dist/{chunk-3TCFONUE.mjs → chunk-SB74WCKC.mjs} +57 -8
- package/dist/{chunk-3OKSEJ33.cjs → chunk-T7UC2ORA.cjs} +3 -0
- package/dist/{chunk-TOUC6BR3.cjs → chunk-TQJ35BBW.cjs} +4 -4
- package/dist/{chunk-CDZ55QRD.mjs → chunk-UAQQUQWE.mjs} +1 -1
- package/dist/{chunk-QUHDVJMR.cjs → chunk-UDWBTABT.cjs} +3 -3
- package/dist/{chunk-F7JVO3OZ.cjs → chunk-VGZIIOU6.cjs} +4 -4
- package/dist/{chunk-RQ6XX5IN.mjs → chunk-VTEAUQMT.mjs} +1 -1
- package/dist/{chunk-L3BSHASB.cjs → chunk-XMVZXZ32.cjs} +4 -4
- package/dist/{chunk-J7VIXTPQ.mjs → chunk-YMAE32O7.mjs} +1 -1
- package/dist/{chunk-L5HDCDFT.mjs → chunk-YNPVG2GG.mjs} +1 -1
- package/dist/{chunk-GLNVLCUH.cjs → chunk-ZSVFI7JM.cjs} +6 -6
- package/dist/{devtools-SXL5RFE5.cjs → devtools-A3L7WNTB.cjs} +4 -4
- package/dist/{devtools-34ZQWX3M.mjs → devtools-DGC2247E.mjs} +2 -2
- package/dist/docs.cjs +4 -4
- package/dist/docs.mjs +3 -3
- package/dist/environment/vite.cjs +4 -4
- package/dist/environment/vite.mjs +3 -3
- package/dist/index.cjs +17 -17
- package/dist/index.mjs +16 -16
- package/dist/internal/build-runtime.cjs +18 -18
- package/dist/internal/build-runtime.mjs +17 -17
- package/dist/internal/cli-runtime.cjs +6 -6
- package/dist/internal/cli-runtime.mjs +5 -5
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/config-runtime.cjs +4 -4
- package/dist/internal/config-runtime.mjs +3 -3
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -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 +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +4 -4
- package/dist/internal/production-runtime.mjs +3 -3
- package/dist/plugin.cjs +13 -13
- package/dist/plugin.mjs +12 -12
- package/dist/renderer.cjs +3 -3
- package/dist/renderer.d.mts +10 -2
- package/dist/renderer.d.ts +10 -2
- package/dist/renderer.mjs +2 -2
- package/dist/{rsc-pipeline-MW2V3WEE.mjs → rsc-pipeline-BROS3NEB.mjs} +4 -4
- package/dist/{rsc-pipeline-ESPGX4VX.cjs → rsc-pipeline-SNGPAXGW.cjs} +5 -5
- package/dist/{runtime-FCMLEBTX.cjs → runtime-7T5TRAWL.cjs} +9 -9
- package/dist/{runtime-KGSOEMLT.mjs → runtime-SLJLW37A.mjs} +4 -4
- package/dist/server.cjs +38 -38
- package/dist/server.mjs +14 -14
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +13 -13
- package/dist/vite.mjs +12 -12
- package/package.json +1 -1
- package/dist/analyzer-XVY76XMM.cjs +0 -17
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
analyzeFarmMobileRoutes,
|
|
4
4
|
readAliases,
|
|
5
5
|
resolveFile
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UAQQUQWE.mjs";
|
|
7
7
|
import "./chunk-IOEXXZK3.mjs";
|
|
8
8
|
import "./chunk-423SSBYQ.mjs";
|
|
9
9
|
import "./chunk-D2VAANBS.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-GWPANDW3.mjs";
|
|
11
11
|
import "./chunk-TIZJYHB7.mjs";
|
|
12
12
|
export {
|
|
13
13
|
CORE_PORTABLE,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkQ3YWQEUScjs = require('./chunk-Q3YWQEUS.cjs');
|
|
7
|
+
require('./chunk-WBTHHTBO.cjs');
|
|
8
|
+
require('./chunk-CCAUIBIS.cjs');
|
|
9
|
+
require('./chunk-WMRGIQTA.cjs');
|
|
10
|
+
require('./chunk-2NKNP4AH.cjs');
|
|
11
|
+
require('./chunk-UZM3PDKK.cjs');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
exports.CORE_PORTABLE = _chunkQ3YWQEUScjs.CORE_PORTABLE; exports.analyzeFarmMobileRoutes = _chunkQ3YWQEUScjs.analyzeFarmMobileRoutes; exports.readAliases = _chunkQ3YWQEUScjs.readAliases; exports.resolveFile = _chunkQ3YWQEUScjs.resolveFile;
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
collectSSGPages,
|
|
10
10
|
matchSSGPage,
|
|
11
11
|
resolveRouteRenderingConfigFromFile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4SJ22WTT.mjs";
|
|
13
13
|
import {
|
|
14
14
|
resolveFarmRendererRoutes
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YNPVG2GG.mjs";
|
|
16
16
|
import {
|
|
17
17
|
findFarmAppPackageDir
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4IE3YK7U.mjs";
|
|
19
19
|
import {
|
|
20
20
|
createFarmMetadataImageResponse,
|
|
21
21
|
resolveFarmMetadataImageValue
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
} from "./chunk-4EEAPBNV.mjs";
|
|
60
60
|
import {
|
|
61
61
|
listFarmMCPLlmsTxtLinks
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-CVKTYG4L.mjs";
|
|
63
63
|
import {
|
|
64
64
|
FARM_DEFAULT_MCP_PATH,
|
|
65
65
|
collectFarmDefaultMCPPages,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
traceFarmSourceReads,
|
|
105
105
|
usesFarmServerTree,
|
|
106
106
|
withFarmSourceSnapshot
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-SB74WCKC.mjs";
|
|
108
108
|
import {
|
|
109
109
|
_setDefaultFarmThemeConfig,
|
|
110
110
|
getTheme
|
|
@@ -165,7 +165,7 @@ import {
|
|
|
165
165
|
resolveFarmRendererAppSetup,
|
|
166
166
|
resolveFarmRendererModule,
|
|
167
167
|
resolveFarmServerComponentsMode
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-HV6CYSMF.mjs";
|
|
169
169
|
import {
|
|
170
170
|
resolveFarmImageConfig
|
|
171
171
|
} from "./chunk-AOIUYHPH.mjs";
|
|
@@ -306,7 +306,7 @@ import {
|
|
|
306
306
|
} from "./chunk-EILUVBKS.mjs";
|
|
307
307
|
import {
|
|
308
308
|
FARM_VERSION
|
|
309
|
-
} from "./chunk-
|
|
309
|
+
} from "./chunk-GWPANDW3.mjs";
|
|
310
310
|
import {
|
|
311
311
|
normalizeFarmAPIConfig
|
|
312
312
|
} from "./chunk-W6QLRQ3V.mjs";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
collectFarmNativeServerFns,
|
|
34
34
|
findFarmNativeScreenFiles
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-YMAE32O7.mjs";
|
|
36
36
|
import {
|
|
37
37
|
assertFarmDocsAdapterServesNoGuardedPages,
|
|
38
38
|
compileFarmDocsAdapterEdgeManifest,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
farmDocsAdapterServesGuardedPages,
|
|
41
41
|
listFarmDocsAdapterPages,
|
|
42
42
|
listFarmDocsPagePaths
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-PAENAKTC.mjs";
|
|
44
44
|
import {
|
|
45
45
|
FARM_DOCS_LAST_MODIFIED_MANIFEST,
|
|
46
46
|
createFarmDocsHandler,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
getDeployTargetForPreset,
|
|
71
71
|
hasCustomFarmRouteContext,
|
|
72
72
|
resolveDeployOutputPath
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-KHIEGVG7.mjs";
|
|
74
74
|
import {
|
|
75
75
|
resolveFarmInstrumentationFile
|
|
76
76
|
} from "./chunk-QRNYSISP.mjs";
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
resolveFarmNotFoundComponentPath,
|
|
116
116
|
resolveFarmRouteRootStrategy,
|
|
117
117
|
toBakedMarkdownSourcePath
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-3TKGMIPX.mjs";
|
|
119
119
|
import {
|
|
120
120
|
TAILWIND_CSS_BROWSER_TARGET,
|
|
121
121
|
generateFarmClientPluginEntryCode,
|
|
@@ -131,14 +131,14 @@ import {
|
|
|
131
131
|
readRouteRenderingDirectiveFromFile,
|
|
132
132
|
resolveRouteRenderingConfig,
|
|
133
133
|
resolveRouteRenderingConfigFromFile
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-4SJ22WTT.mjs";
|
|
135
135
|
import {
|
|
136
136
|
usesFarmRendererIslands
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-VTEAUQMT.mjs";
|
|
138
138
|
import {
|
|
139
139
|
FARM_PRERENDER_ENV,
|
|
140
140
|
_farmWebMCPReportsEnabled
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-CFKAYV7B.mjs";
|
|
142
142
|
import {
|
|
143
143
|
HOISTED_HEAD_ELEMENT,
|
|
144
144
|
appMiddlewareMayHandlePath,
|
|
@@ -165,7 +165,7 @@ import {
|
|
|
165
165
|
listFarmBuiltInRoutePaths,
|
|
166
166
|
resolveFarmApiCatalogInput,
|
|
167
167
|
resolveFarmAppManifestInput
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-CVKTYG4L.mjs";
|
|
169
169
|
import {
|
|
170
170
|
FARM_DEFAULT_MCP_PATH,
|
|
171
171
|
createFarmDefaultMCPServer,
|
|
@@ -173,7 +173,7 @@ import {
|
|
|
173
173
|
} from "./chunk-HR4N2K4V.mjs";
|
|
174
174
|
import {
|
|
175
175
|
isFarmPreviewDeploymentEnvironment
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-7UTRNV6R.mjs";
|
|
177
177
|
import {
|
|
178
178
|
FARM_NATIVE_SERVER_FN_PLUGIN
|
|
179
179
|
} from "./chunk-L4RTTTVE.mjs";
|
|
@@ -194,7 +194,7 @@ import {
|
|
|
194
194
|
withFarmSourceSnapshot,
|
|
195
195
|
withFarmSourceSnapshotOf,
|
|
196
196
|
withPackageClientBoundaryCache
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-SB74WCKC.mjs";
|
|
198
198
|
import {
|
|
199
199
|
generateFarmDocsAdapterClientRuntime,
|
|
200
200
|
getFarmDocsAdapterConfigModule
|
|
@@ -229,7 +229,7 @@ import {
|
|
|
229
229
|
loadFarmRendererVitePlugins,
|
|
230
230
|
resolveFarmRendererAppSetup,
|
|
231
231
|
resolveFarmServerComponentsMode
|
|
232
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-HV6CYSMF.mjs";
|
|
233
233
|
import {
|
|
234
234
|
applyFarmCronVercelCrons,
|
|
235
235
|
createFarmCronCloudflareConfig,
|
|
@@ -308,7 +308,7 @@ import {
|
|
|
308
308
|
} from "./chunk-2I6PUKWJ.mjs";
|
|
309
309
|
import {
|
|
310
310
|
FARM_VERSION
|
|
311
|
-
} from "./chunk-
|
|
311
|
+
} from "./chunk-GWPANDW3.mjs";
|
|
312
312
|
import {
|
|
313
313
|
FARM_VIDEO_PLAYER_PATH
|
|
314
314
|
} from "./chunk-AG27TI6Q.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkTQJ35BBWcjs = require('./chunk-TQJ35BBW.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -354,7 +354,7 @@ function requestEvent(metadata, method, status, durationMs) {
|
|
|
354
354
|
id: uuid(),
|
|
355
355
|
requestId: metadata.id,
|
|
356
356
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
357
|
-
route: routeTemplate(
|
|
357
|
+
route: routeTemplate(_chunkTQJ35BBWcjs.getFarmRouteLabel.call(void 0, metadata.route)),
|
|
358
358
|
...metadata.path ? { path: metadata.path } : {},
|
|
359
359
|
agent: metadata.agent,
|
|
360
360
|
kind: "request",
|
|
@@ -410,7 +410,7 @@ function toolEvent(metadata, event, payloads) {
|
|
|
410
410
|
id: uuid(),
|
|
411
411
|
requestId: metadata.id,
|
|
412
412
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
413
|
-
route: routeTemplate(
|
|
413
|
+
route: routeTemplate(_chunkTQJ35BBWcjs.getFarmRouteLabel.call(void 0, metadata.route)),
|
|
414
414
|
...metadata.path ? { path: metadata.path } : {},
|
|
415
415
|
agent: metadata.agent,
|
|
416
416
|
kind: "mcp.tool",
|
|
@@ -496,7 +496,7 @@ async function receiveWebMCPReport(request, exporter, options, webmcp, waitUntil
|
|
|
496
496
|
exporter.enqueue({
|
|
497
497
|
id: uuid(),
|
|
498
498
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
499
|
-
route: routeTemplate(
|
|
499
|
+
route: routeTemplate(_chunkTQJ35BBWcjs.getFarmRouteLabel.call(void 0, route)),
|
|
500
500
|
...path ? { path } : {},
|
|
501
501
|
agent: _chunk2NOHVIJ3cjs.classifyFarmClient.call(void 0, request),
|
|
502
502
|
kind: "mcp.tool",
|
|
@@ -18,7 +18,7 @@ var _chunkHR5GU4UUcjs = require('./chunk-HR5GU4UU.cjs');
|
|
|
18
18
|
var _chunkNDOE76QCcjs = require('./chunk-NDOE76QC.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkFDU4Q4QPcjs = require('./chunk-FDU4Q4QP.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -599,7 +599,7 @@ async function resolveAPIContext(options) {
|
|
|
599
599
|
config: options.config,
|
|
600
600
|
configPath: options.configPath
|
|
601
601
|
}));
|
|
602
|
-
const docs = isResolvedDocsConfig(docsInput) ? docsInput : await
|
|
602
|
+
const docs = isResolvedDocsConfig(docsInput) ? docsInput : await _chunkFDU4Q4QPcjs.resolveDocsConfig.call(void 0, docsInput, { root, srcDir });
|
|
603
603
|
const guardedPaths = new Set(_nullishCoalesce(_optionalChain([runtimeConfig, 'optionalAccess', _25 => _25.guardedPaths]), () => ( [])));
|
|
604
604
|
return {
|
|
605
605
|
root,
|
|
@@ -6,7 +6,7 @@ var _chunk7KJJ4SBScjs = require('./chunk-7KJJ4SBS.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkT7UC2ORAcjs = require('./chunk-T7UC2ORA.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk3BIASUGRcjs = require('./chunk-3BIASUGR.cjs');
|
|
@@ -88,8 +88,8 @@ function resolveFarmIsland(props, reference) {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
function usesFarmRendererIslands(config) {
|
|
91
|
-
const renderer =
|
|
92
|
-
return !
|
|
91
|
+
const renderer = _chunkT7UC2ORAcjs.resolveFarmRenderer.call(void 0, config.renderer);
|
|
92
|
+
return !_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) && _chunkT7UC2ORAcjs.getFarmRendererCapabilities.call(void 0, renderer).islands && _optionalChain([config, 'access', _2 => _2.experimental, 'optionalAccess', _3 => _3.isolatedClientHydration]) === "enabled" && _chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _4 => _4.experimental, 'optionalAccess', _5 => _5.serverComponents])) === void 0;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-HR4N2K4V.mjs";
|
|
5
5
|
import {
|
|
6
6
|
normalizeFarmProductionSiteOrigin
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7UTRNV6R.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveFarmAppManifestConfig
|
|
10
10
|
} from "./chunk-SQ5O7I3L.mjs";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-YT2ZMLXK.mjs";
|
|
30
30
|
import {
|
|
31
31
|
FARM_VERSION
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-GWPANDW3.mjs";
|
|
33
33
|
import {
|
|
34
34
|
applyFarmBasePath
|
|
35
35
|
} from "./chunk-SF3JB56B.mjs";
|
|
@@ -45,7 +45,7 @@ var _chunk52Q4OB4Acjs = require('./chunk-52Q4OB4A.cjs');
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _chunkT7UC2ORAcjs = require('./chunk-T7UC2ORA.cjs');
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
var _chunkMCSRMEQVcjs = require('./chunk-MCSRMEQV.cjs');
|
|
@@ -1050,7 +1050,7 @@ function validateConfigRouteSources(routes, field) {
|
|
|
1050
1050
|
return routes;
|
|
1051
1051
|
}
|
|
1052
1052
|
async function resolveConfig(userConfig, mode) {
|
|
1053
|
-
|
|
1053
|
+
_chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([userConfig, 'access', _44 => _44.experimental, 'optionalAccess', _45 => _45.serverComponents]));
|
|
1054
1054
|
const projectRoot = userConfig.root || process.cwd();
|
|
1055
1055
|
const layerResolution = await _chunk52Q4OB4Acjs.resolveFarmLayers.call(void 0, userConfig, {
|
|
1056
1056
|
root: projectRoot,
|
|
@@ -1067,7 +1067,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
1067
1067
|
'The top-level "output" option is not supported and has no effect. Configure `deploy.target`, `deploy.preset`, or `deploy.outputDir` for deployment output, and use route rendering configuration for static pages.'
|
|
1068
1068
|
);
|
|
1069
1069
|
}
|
|
1070
|
-
if (
|
|
1070
|
+
if (_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, _chunkT7UC2ORAcjs.resolveFarmRenderer.call(void 0, userConfig.renderer))) {
|
|
1071
1071
|
userConfig = await applyFarmDocsFrameworkAutoDetection(userConfig, {
|
|
1072
1072
|
root: userConfig.root || projectRoot
|
|
1073
1073
|
});
|
|
@@ -1097,7 +1097,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
1097
1097
|
const srcDir = userConfig.srcDir || "src";
|
|
1098
1098
|
_chunkMNUYXZV7cjs.setFarmProjectSourceDir.call(void 0, root, srcDir);
|
|
1099
1099
|
const docs = await resolveDocsConfig(userConfig.docs, { root, srcDir });
|
|
1100
|
-
const renderer =
|
|
1100
|
+
const renderer = _chunkT7UC2ORAcjs.resolveFarmRenderer.call(void 0, userConfig.renderer);
|
|
1101
1101
|
_chunkL2GUEYHRcjs.assertFarmDocsAdapterRenderer.call(void 0, docs, renderer.name);
|
|
1102
1102
|
const md = _chunk2NOHVIJ3cjs.resolveMarkdownConfig.call(void 0, userConfig.md);
|
|
1103
1103
|
const mdx = _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, userConfig.mdx);
|
|
@@ -1182,13 +1182,13 @@ async function resolveConfig(userConfig, mode) {
|
|
|
1182
1182
|
serverActions: false,
|
|
1183
1183
|
// Islands mode hydrates client components as islands (RFC 0003); an app can still pick
|
|
1184
1184
|
// isolatedClientHydration itself.
|
|
1185
|
-
isolatedClientHydration:
|
|
1185
|
+
isolatedClientHydration: _chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([userConfig, 'access', _55 => _55.experimental, 'optionalAccess', _56 => _56.serverComponents])) === "islands" ? "enabled" : "off",
|
|
1186
1186
|
ppr: false,
|
|
1187
1187
|
...userConfig.experimental
|
|
1188
1188
|
},
|
|
1189
1189
|
agent: resolveFarmAgentConfig(userConfig.agent, {
|
|
1190
1190
|
docs: docs.enabled,
|
|
1191
|
-
pages: !
|
|
1191
|
+
pages: !_chunkT7UC2ORAcjs.isFarmRendererDisabled.call(void 0, userConfig.renderer)
|
|
1192
1192
|
}),
|
|
1193
1193
|
desktop: _nullishCoalesce(_optionalChain([desktopSetup, 'optionalAccess', _57 => _57.desktop]), () => ( null)),
|
|
1194
1194
|
...userConfig.mobile !== void 0 ? { mobileClient: true } : {},
|
|
@@ -1211,7 +1211,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
1211
1211
|
routeRules,
|
|
1212
1212
|
images: _chunkMCSRMEQVcjs.resolveFarmImageConfig.call(void 0,
|
|
1213
1213
|
userConfig.images,
|
|
1214
|
-
|
|
1214
|
+
_chunkT7UC2ORAcjs.isFarmRendererDisabled.call(void 0, userConfig.renderer) ? "none" : void 0
|
|
1215
1215
|
),
|
|
1216
1216
|
performance: _chunkEACD6ND7cjs.resolveFarmPerformanceConfig.call(void 0, userConfig.performance),
|
|
1217
1217
|
theme: _chunkWT6RAN2Icjs.resolveFarmThemeConfig.call(void 0, userConfig.theme, basePath),
|