@farm.js/core 0.1.75 → 0.1.76
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-Djvao5eV.d.ts → agent-mcp.d-Cftp2kFv.d.ts} +1 -1
- package/dist/{agent-mcp.d-wA13pwmS.d.mts → agent-mcp.d-D0FMmqi0.d.mts} +1 -1
- package/dist/agent-runtime.cjs +2 -2
- package/dist/agent-runtime.d.mts +7 -5
- package/dist/agent-runtime.d.ts +7 -5
- package/dist/agent-runtime.mjs +1 -1
- package/dist/analyzer-KFJGYJS7.cjs +16 -0
- package/dist/{analyzer-LJHMFCDW.mjs → analyzer-NLQKPN74.mjs} +2 -2
- package/dist/api/node.d.mts +9 -7
- package/dist/api/node.d.ts +9 -7
- package/dist/api/route-manager.d.mts +9 -7
- package/dist/api/route-manager.d.ts +9 -7
- package/dist/api/runtime.d.mts +8 -6
- package/dist/api/runtime.d.ts +8 -6
- package/dist/api.d.mts +10 -8
- package/dist/api.d.ts +10 -8
- package/dist/{app-manifest.d-BukcP_EV.d.ts → app-manifest.d-7PmA_9hm.d.ts} +1 -1
- package/dist/{app-manifest.d-DIuqSi9k.d.mts → app-manifest.d-cpOw_sV5.d.mts} +1 -1
- package/dist/app-markdown.d.mts +8 -6
- package/dist/app-markdown.d.ts +8 -6
- package/dist/{app.d-YVuFb10p.d.mts → app.d-DUZvwnFF.d.mts} +5 -4
- package/dist/{app.d-BQqmM6Gy.d.ts → app.d-wOkxXre8.d.ts} +5 -4
- package/dist/{chunk-A5F55ZFA.mjs → chunk-2GZZVIXY.mjs} +1 -1
- package/dist/{chunk-4BS3HSY7.cjs → chunk-2JEXQAIR.cjs} +2 -2
- package/dist/{chunk-OZARLCYQ.cjs → chunk-2WKGQCAV.cjs} +162 -162
- package/dist/{chunk-B4CWYGCG.mjs → chunk-3OYFMOBY.mjs} +1 -1
- package/dist/{chunk-GNY7BO7R.mjs → chunk-5EEQNZLU.mjs} +2 -2
- package/dist/{chunk-XGDI4OUB.cjs → chunk-6ZFGWB75.cjs} +13 -1
- package/dist/{chunk-6MATGOEF.mjs → chunk-A2VFKOQL.mjs} +1 -1
- package/dist/{chunk-YL7BKHYE.cjs → chunk-BBRSPKFI.cjs} +277 -265
- package/dist/{chunk-BNTRXJL4.cjs → chunk-BYJPBJ4E.cjs} +3 -3
- package/dist/{chunk-4ZSZI6XL.cjs → chunk-CCQZDOQR.cjs} +8 -8
- package/dist/{chunk-OFIFRB62.mjs → chunk-CKBBKRBO.mjs} +34 -18
- package/dist/{chunk-IK33N2AN.cjs → chunk-DTNWLRRF.cjs} +144 -128
- package/dist/{chunk-BUC3FDYC.cjs → chunk-DVW6SKHA.cjs} +2 -2
- package/dist/{chunk-MFU7SXAB.mjs → chunk-E77ZKNPN.mjs} +1 -1
- package/dist/{chunk-YCNKS6SD.mjs → chunk-GP5BWTO7.mjs} +2 -2
- package/dist/{chunk-HT2SZKXG.mjs → chunk-H76C5AOU.mjs} +12 -0
- package/dist/{chunk-ZV76IQG7.cjs → chunk-HKGU2X4I.cjs} +2 -2
- package/dist/{chunk-4T2RB4JA.mjs → chunk-JL6XHQZF.mjs} +3 -3
- package/dist/{chunk-HV2WZFUW.mjs → chunk-MOS2N377.mjs} +1 -1
- package/dist/{chunk-IDOUCM2X.mjs → chunk-O225GNEU.mjs} +53 -41
- package/dist/{chunk-NPGXX7HN.cjs → chunk-PSNYVBWC.cjs} +3 -3
- package/dist/{chunk-WHCNJVYU.cjs → chunk-PXXG5BID.cjs} +3 -3
- package/dist/{chunk-TJVUTGED.mjs → chunk-Q4X3MX4J.mjs} +201 -3
- package/dist/{chunk-TFEODQLG.mjs → chunk-Q7JMHO5U.mjs} +2 -2
- package/dist/{chunk-JNZDTE75.cjs → chunk-QP4GYVRR.cjs} +6 -6
- package/dist/{chunk-HVJ7IACB.cjs → chunk-QTDIOZV6.cjs} +2 -2
- package/dist/{chunk-YSTKSZD2.mjs → chunk-SGQXJVFX.mjs} +1 -1
- package/dist/{chunk-KPYQ32BA.cjs → chunk-TMVVBK5S.cjs} +2 -2
- package/dist/{chunk-JMYXO572.cjs → chunk-UBXNTZCY.cjs} +205 -7
- package/dist/{chunk-2NQ3S2SJ.mjs → chunk-VDJ3CLBR.mjs} +1 -1
- package/dist/{chunk-WJ5CCQBM.cjs → chunk-WILPJVQE.cjs} +4 -4
- package/dist/{chunk-PBQGIA27.cjs → chunk-WJDMH3E7.cjs} +4 -4
- package/dist/{chunk-ZPCZWEU3.cjs → chunk-WMJQNVKX.cjs} +2 -2
- package/dist/{chunk-H7QY7ZE4.mjs → chunk-X3HUT4JU.mjs} +1 -1
- package/dist/{chunk-IVBDRAOR.cjs → chunk-XLOORES5.cjs} +1 -1
- package/dist/{chunk-QGYHE6VJ.mjs → chunk-YHE7HH2I.mjs} +19 -19
- package/dist/{chunk-4MU4QCX4.mjs → chunk-YONTMPZ6.mjs} +1 -1
- package/dist/{chunk-GLF44JKY.mjs → chunk-YQXJY7E7.mjs} +1 -1
- package/dist/cli-runtime.d-D84CwyPI.d.ts +535 -0
- package/dist/cli-runtime.d-OQY2pgwK.d.mts +535 -0
- package/dist/client/lifecycle.d.mts +1 -1
- package/dist/client/lifecycle.d.ts +1 -1
- package/dist/{client-component.d-CZ1NpHAY.d.ts → client-component.d-Bf8jZqW7.d.ts} +2 -137
- package/dist/{client-component.d-BeqVuqy2.d.mts → client-component.d-Bh6CfC5z.d.mts} +2 -137
- package/dist/{client-plugins.d-D9kWC0QB.d.ts → client-plugins.d-DuujrC8d.d.ts} +4 -4
- package/dist/{client-plugins.d-ChceYO9t.d.mts → client-plugins.d-r3K2oQ6w.d.mts} +4 -4
- package/dist/client-plugins.d.mts +7 -5
- package/dist/client-plugins.d.ts +7 -5
- package/dist/client.d.mts +12 -10
- package/dist/client.d.ts +12 -10
- package/dist/config.d.mts +7 -5
- package/dist/config.d.ts +7 -5
- package/dist/desktop.d.mts +8 -6
- package/dist/desktop.d.ts +8 -6
- package/dist/{devtools-T5I2WHRX.cjs → devtools-3WZIZ7KK.cjs} +3 -3
- package/dist/{devtools-B3W3DLPG.mjs → devtools-MBZPUH3U.mjs} +2 -2
- package/dist/docs.cjs +4 -4
- package/dist/docs.d.mts +10 -65
- package/dist/docs.d.ts +10 -65
- package/dist/docs.mjs +3 -3
- package/dist/environment/vite.cjs +3 -3
- package/dist/environment/vite.mjs +2 -2
- package/dist/handler.d-Bd5lRSvb.d.ts +62 -0
- package/dist/handler.d-SRH-AKzf.d.mts +62 -0
- package/dist/{headers.d-BawakaPv.d.mts → headers.d-CHHvyaIG.d.mts} +1 -1
- package/dist/{headers.d-Aux4JVnm.d.ts → headers.d-D-OvGikv.d.ts} +1 -1
- package/dist/index.cjs +22 -20
- package/dist/index.d-BOPsgMlI.d.mts +16 -0
- package/dist/index.d-BiUtYJUG.d.ts +16 -0
- package/dist/index.d.mts +39 -556
- package/dist/index.d.ts +39 -556
- package/dist/index.mjs +21 -19
- package/dist/integrations/orm.cjs +3 -3
- package/dist/integrations/orm.d.mts +6 -4
- package/dist/integrations/orm.d.ts +6 -4
- package/dist/integrations/orm.mjs +2 -2
- package/dist/integrations.cjs +2 -2
- package/dist/integrations.d.mts +7 -5
- package/dist/integrations.d.ts +7 -5
- package/dist/integrations.mjs +1 -1
- package/dist/internal/app-markdown-runtime.d.mts +8 -6
- package/dist/internal/app-markdown-runtime.d.ts +8 -6
- package/dist/internal/build-runtime.cjs +19 -19
- package/dist/internal/build-runtime.d.mts +10 -7
- package/dist/internal/build-runtime.d.ts +10 -7
- package/dist/internal/build-runtime.mjs +18 -18
- package/dist/internal/cli-runtime.cjs +11 -6
- package/dist/internal/cli-runtime.d.mts +45 -0
- package/dist/internal/cli-runtime.d.ts +45 -0
- package/dist/internal/cli-runtime.mjs +10 -5
- 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 +11 -9
- package/dist/internal/client-runtime.d.ts +11 -9
- package/dist/internal/compression-runtime.d.mts +7 -5
- package/dist/internal/compression-runtime.d.ts +7 -5
- package/dist/internal/config-runtime.cjs +4 -4
- package/dist/internal/config-runtime.d.mts +9 -7
- package/dist/internal/config-runtime.d.ts +9 -7
- 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 +7 -7
- package/dist/internal/production-runtime.d.mts +16 -14
- package/dist/internal/production-runtime.d.ts +16 -14
- package/dist/internal/production-runtime.mjs +6 -6
- package/dist/internal/start-manifest.d.mts +7 -5
- package/dist/internal/start-manifest.d.ts +7 -5
- package/dist/{lifecycle.d-OtGWAvJT.d.mts → lifecycle.d-VzcXyEyn.d.mts} +1 -1
- package/dist/{lifecycle.d-OtGWAvJT.d.ts → lifecycle.d-VzcXyEyn.d.ts} +1 -1
- package/dist/markdown.d.mts +7 -5
- package/dist/markdown.d.ts +7 -5
- package/dist/middleware.d.mts +7 -5
- package/dist/middleware.d.ts +7 -5
- package/dist/{mount.d-Ca8eb9GB.d.ts → mount.d-C2yq0Zzz.d.ts} +1 -1
- package/dist/{mount.d-BomEt2kV.d.mts → mount.d-vq1HTq5u.d.mts} +1 -1
- package/dist/{navigation-delegate.d-DJCC2jXF.d.ts → navigation-delegate.d-D7xIin3i.d.ts} +1 -1
- package/dist/{navigation-delegate.d-B1ujRkYo.d.mts → navigation-delegate.d-DS2Sqm7E.d.mts} +1 -1
- package/dist/navigation.d.mts +10 -8
- package/dist/navigation.d.ts +10 -8
- package/dist/{plugin-FD4S2QEJ.mjs → plugin-6CHZBFJD.mjs} +1 -1
- package/dist/{plugin-5BNPYCER.cjs → plugin-YXPIS3XX.cjs} +2 -2
- package/dist/plugin.cjs +12 -12
- package/dist/plugin.d.mts +11 -8
- package/dist/plugin.d.ts +11 -8
- package/dist/plugin.mjs +11 -11
- package/dist/{render-plan.d-BxRbaxYA.d.ts → render-plan.d-BCq0nfdw.d.ts} +1 -1
- package/dist/{render-plan.d-CFod_Zf-.d.mts → render-plan.d-X6KqerAM.d.mts} +1 -1
- package/dist/renderer-client.d.mts +10 -8
- package/dist/renderer-client.d.ts +10 -8
- package/dist/{request.d-DG4TeXMM.d.mts → request.d-Be9rWboC.d.mts} +1 -1
- package/dist/{request.d-DRQgaXGG.d.ts → request.d-CPdq2_kC.d.ts} +1 -1
- package/dist/request.d.mts +8 -6
- package/dist/request.d.ts +8 -6
- package/dist/{route-rendering.d-BXtZKgqu.d.mts → route-rendering.d-CIPli7Ve.d.mts} +1 -1
- package/dist/{route-rendering.d-Db07UNVG.d.ts → route-rendering.d-CKB5GhQr.d.ts} +1 -1
- package/dist/{router.d-BC3hyjf0.d.ts → router.d-CvrbOXzF.d.ts} +1 -1
- package/dist/{router.d-B61kXqxJ.d.mts → router.d-VxTgLGxN.d.mts} +1 -1
- package/dist/routes.d.mts +7 -5
- package/dist/routes.d.ts +7 -5
- package/dist/{rsc-pipeline-LJ7YCGY6.mjs → rsc-pipeline-FPE4OL57.mjs} +4 -4
- package/dist/{rsc-pipeline-VENBFYXW.cjs → rsc-pipeline-TPHK74VE.cjs} +5 -5
- package/dist/{runtime-4DWUXZHS.mjs → runtime-45BD33OJ.mjs} +3 -3
- package/dist/{runtime-UNDTYGQS.cjs → runtime-UBG657UC.cjs} +5 -5
- package/dist/{runtime.d-Cl6EBGmC.d.mts → runtime.d-Cn1jiDNI.d.mts} +1 -1
- package/dist/{runtime.d-SC95yDzr.d.ts → runtime.d-Ps54JWpo.d.ts} +1 -1
- package/dist/{schema.d-Dny9pnrm.d.mts → schema.d-BM-uVGpx.d.mts} +1 -1
- package/dist/{schema.d-Dny9pnrm.d.ts → schema.d-BM-uVGpx.d.ts} +1 -1
- package/dist/schema.d.mts +1 -1
- package/dist/schema.d.ts +1 -1
- package/dist/{index.d-r1MLpgeE.d.ts → server-components-status.d-Dhtbs5lC.d.ts} +2 -15
- package/dist/{index.d-Ccq42CPU.d.mts → server-components-status.d-DnmipSb3.d.mts} +2 -15
- package/dist/server-plugins.d.mts +9 -7
- package/dist/server-plugins.d.ts +9 -7
- package/dist/server.cjs +37 -35
- package/dist/server.d.mts +17 -14
- package/dist/server.d.ts +17 -14
- package/dist/server.mjs +16 -14
- package/dist/session-ACVUJ5XV.cjs +23 -0
- package/dist/{session-QZXZOPR2.mjs → session-ASQTJNBK.mjs} +2 -2
- package/dist/{spa-router.d-DrlXgDqY.d.mts → spa-router.d-DXm5J9rM.d.mts} +4 -4
- package/dist/{spa-router.d-DwM02Mwd.d.ts → spa-router.d-cppVufl2.d.ts} +4 -4
- package/dist/ssg.d-CI5OFl8H.d.ts +138 -0
- package/dist/ssg.d-Duzy1wQc.d.mts +138 -0
- package/dist/storage.cjs +4 -2
- package/dist/storage.d.mts +14 -4
- package/dist/storage.d.ts +14 -4
- package/dist/storage.mjs +3 -1
- package/dist/testing.d.mts +7 -5
- package/dist/testing.d.ts +7 -5
- package/dist/{types.d-BnIqOn9w.d.mts → types.d-D5cY6XjK.d.mts} +43 -2
- package/dist/{types.d-BnIqOn9w.d.ts → types.d-D5cY6XjK.d.ts} +43 -2
- package/dist/{utils.d-CHzxAshz.d.mts → utils.d-CNI-I8ZV.d.mts} +1 -1
- package/dist/{utils.d-C6KXz3uB.d.ts → utils.d-D3dfy8zh.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +12 -12
- package/dist/vite.d.mts +12 -9
- package/dist/vite.d.ts +12 -9
- package/dist/vite.mjs +11 -11
- package/package.json +10 -3
- package/dist/analyzer-23GCBYFI.cjs +0 -16
- package/dist/session-2Q72D4QV.cjs +0 -23
- /package/dist/{chunk-PMU4U2W2.cjs → chunk-22T75EML.cjs} +0 -0
- /package/dist/{chunk-5O3SK3ZC.mjs → chunk-6MNDFNZW.mjs} +0 -0
- /package/dist/{chunk-Z5ZZAGIH.mjs → chunk-LSHUCNIF.mjs} +0 -0
- /package/dist/{chunk-6DBBMQWT.cjs → chunk-OWO7KDZ3.cjs} +0 -0
|
@@ -28,11 +28,11 @@ var _chunkNG2EZ6QScjs = require('./chunk-NG2EZ6QS.cjs');
|
|
|
28
28
|
var _chunkVM57CK74cjs = require('./chunk-VM57CK74.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunk2JEXQAIRcjs = require('./chunk-2JEXQAIR.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkBYJPBJ4Ecjs = require('./chunk-BYJPBJ4E.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -41,7 +41,7 @@ var _chunkBNTRXJL4cjs = require('./chunk-BNTRXJL4.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkWMJQNVKXcjs = require('./chunk-WMJQNVKX.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
@@ -65,7 +65,7 @@ var _chunkDZZHTMWMcjs = require('./chunk-DZZHTMWM.cjs');
|
|
|
65
65
|
var _chunk42EUEYW6cjs = require('./chunk-42EUEYW6.cjs');
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
var
|
|
68
|
+
var _chunkPXXG5BIDcjs = require('./chunk-PXXG5BID.cjs');
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
var _chunkNDOE76QCcjs = require('./chunk-NDOE76QC.cjs');
|
|
@@ -74,7 +74,7 @@ var _chunkNDOE76QCcjs = require('./chunk-NDOE76QC.cjs');
|
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
var
|
|
77
|
+
var _chunkPSNYVBWCcjs = require('./chunk-PSNYVBWC.cjs');
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
var _chunk3GNHJ3RNcjs = require('./chunk-3GNHJ3RN.cjs');
|
|
@@ -116,17 +116,17 @@ var _chunkO4JYMU5Ncjs = require('./chunk-O4JYMU5N.cjs');
|
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
|
|
119
|
-
var
|
|
119
|
+
var _chunkDTNWLRRFcjs = require('./chunk-DTNWLRRF.cjs');
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
|
|
126
|
-
var
|
|
126
|
+
var _chunkQTDIOZV6cjs = require('./chunk-QTDIOZV6.cjs');
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
var
|
|
129
|
+
var _chunk22T75EMLcjs = require('./chunk-22T75EML.cjs');
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
|
|
@@ -145,7 +145,7 @@ var _chunk7564NP5Zcjs = require('./chunk-7564NP5Z.cjs');
|
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
|
|
148
|
-
var
|
|
148
|
+
var _chunk6ZFGWB75cjs = require('./chunk-6ZFGWB75.cjs');
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
var _chunk3HLQTOVUcjs = require('./chunk-3HLQTOVU.cjs');
|
|
@@ -159,7 +159,7 @@ var _chunk47JV57DAcjs = require('./chunk-47JV57DA.cjs');
|
|
|
159
159
|
|
|
160
160
|
|
|
161
161
|
|
|
162
|
-
var
|
|
162
|
+
var _chunkWILPJVQEcjs = require('./chunk-WILPJVQE.cjs');
|
|
163
163
|
|
|
164
164
|
|
|
165
165
|
|
|
@@ -167,7 +167,7 @@ var _chunkWJ5CCQBMcjs = require('./chunk-WJ5CCQBM.cjs');
|
|
|
167
167
|
var _chunkYRXPDKMMcjs = require('./chunk-YRXPDKMM.cjs');
|
|
168
168
|
|
|
169
169
|
|
|
170
|
-
var
|
|
170
|
+
var _chunkTMVVBK5Scjs = require('./chunk-TMVVBK5S.cjs');
|
|
171
171
|
|
|
172
172
|
|
|
173
173
|
var _chunk4EBC7EMWcjs = require('./chunk-4EBC7EMW.cjs');
|
|
@@ -188,7 +188,7 @@ var _chunk4EBC7EMWcjs = require('./chunk-4EBC7EMW.cjs');
|
|
|
188
188
|
|
|
189
189
|
|
|
190
190
|
|
|
191
|
-
var
|
|
191
|
+
var _chunkQP4GYVRRcjs = require('./chunk-QP4GYVRR.cjs');
|
|
192
192
|
|
|
193
193
|
|
|
194
194
|
|
|
@@ -257,13 +257,13 @@ var _chunkQUEYL2WMcjs = require('./chunk-QUEYL2WM.cjs');
|
|
|
257
257
|
|
|
258
258
|
|
|
259
259
|
|
|
260
|
-
var
|
|
260
|
+
var _chunkOWO7KDZ3cjs = require('./chunk-OWO7KDZ3.cjs');
|
|
261
261
|
|
|
262
262
|
|
|
263
263
|
var _chunkQKW6DLDTcjs = require('./chunk-QKW6DLDT.cjs');
|
|
264
264
|
|
|
265
265
|
|
|
266
|
-
var
|
|
266
|
+
var _chunkUBXNTZCYcjs = require('./chunk-UBXNTZCY.cjs');
|
|
267
267
|
|
|
268
268
|
|
|
269
269
|
|
|
@@ -299,7 +299,7 @@ var _chunkGC5ROI3Acjs = require('./chunk-GC5ROI3A.cjs');
|
|
|
299
299
|
var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
|
|
300
300
|
|
|
301
301
|
|
|
302
|
-
var
|
|
302
|
+
var _chunkXLOORES5cjs = require('./chunk-XLOORES5.cjs');
|
|
303
303
|
|
|
304
304
|
|
|
305
305
|
var _chunkY3DO7BIJcjs = require('./chunk-Y3DO7BIJ.cjs');
|
|
@@ -642,7 +642,7 @@ async function compileFarmDocsManifest(docs, options) {
|
|
|
642
642
|
isPathGuarded: options.isPathGuarded,
|
|
643
643
|
basePath
|
|
644
644
|
});
|
|
645
|
-
const apiHandler =
|
|
645
|
+
const apiHandler = _chunkWMJQNVKXcjs.createFarmDocsAPIHandler.call(void 0, {
|
|
646
646
|
rootDir: options.root,
|
|
647
647
|
srcDir: options.srcDir,
|
|
648
648
|
docs,
|
|
@@ -1606,7 +1606,7 @@ function farmStripPlatformConfigPlugin(configFiles) {
|
|
|
1606
1606
|
// removed block used (`readFileSync` for a version, say).
|
|
1607
1607
|
enforce: "pre",
|
|
1608
1608
|
transform: {
|
|
1609
|
-
filter: { id:
|
|
1609
|
+
filter: { id: _chunkDTNWLRRFcjs.fileNamePattern.call(void 0, configFiles) },
|
|
1610
1610
|
async handler(code, id) {
|
|
1611
1611
|
const file = id.split("?", 1)[0];
|
|
1612
1612
|
if (!files.has(_path2.default.resolve(file)) && !files.has(realPath(file))) return null;
|
|
@@ -1886,7 +1886,7 @@ async function writeFarmVercelEdgeMiddlewareFunction(options) {
|
|
|
1886
1886
|
logLevel: "silent",
|
|
1887
1887
|
plugins: [edgeNodeModulesPlugin(coreDir, unsupported)],
|
|
1888
1888
|
resolve: {
|
|
1889
|
-
alias:
|
|
1889
|
+
alias: _chunkDTNWLRRFcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
|
|
1890
1890
|
conditionNames: ["edge-light", "worker", "browser", "import", "module", "default"]
|
|
1891
1891
|
},
|
|
1892
1892
|
transform: {
|
|
@@ -2139,7 +2139,7 @@ function createPrerenderRuntimeResolverPlugin(root, resolveNitroEntry = resolveN
|
|
|
2139
2139
|
};
|
|
2140
2140
|
}
|
|
2141
2141
|
function createFarmStorageModuleRegistration(config) {
|
|
2142
|
-
const modules =
|
|
2142
|
+
const modules = _chunkUBXNTZCYcjs._collectFarmStorageModules.call(void 0, config.storage);
|
|
2143
2143
|
if (modules.length === 0) return "";
|
|
2144
2144
|
const root = config.root || process.cwd();
|
|
2145
2145
|
const projectRequire = _module.createRequire.call(void 0, _path2.default.join(root, "package.json"));
|
|
@@ -2288,7 +2288,7 @@ function createOmittedMetadataImageRuntimePlugin(externalizeOtherImports) {
|
|
|
2288
2288
|
return {
|
|
2289
2289
|
name: "farm-omitted-metadata-image-runtime",
|
|
2290
2290
|
resolveId: {
|
|
2291
|
-
filter: { id:
|
|
2291
|
+
filter: { id: _chunkDTNWLRRFcjs.exactIdPattern.call(void 0, ["@vercel/og"]) },
|
|
2292
2292
|
handler(source, importer) {
|
|
2293
2293
|
if (source !== "@vercel/og") return null;
|
|
2294
2294
|
const fromCoreRuntime = importer !== void 0 && isFarmCoreModule(importer) && !/^og\.[cm]?[jt]sx?$/.test(_path2.default.basename(importer.split("?", 1)[0]));
|
|
@@ -2297,7 +2297,7 @@ function createOmittedMetadataImageRuntimePlugin(externalizeOtherImports) {
|
|
|
2297
2297
|
}
|
|
2298
2298
|
},
|
|
2299
2299
|
load: {
|
|
2300
|
-
filter: { id:
|
|
2300
|
+
filter: { id: _chunkDTNWLRRFcjs.exactIdPattern.call(void 0, [FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID]) },
|
|
2301
2301
|
handler(id) {
|
|
2302
2302
|
if (id !== FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID) return null;
|
|
2303
2303
|
return `
|
|
@@ -2626,9 +2626,9 @@ function hasFarmPluginRoutes(config) {
|
|
|
2626
2626
|
}
|
|
2627
2627
|
function farmServerRuntimePluginsMayHandlePath(config, pathname) {
|
|
2628
2628
|
return (config.plugins || []).some(
|
|
2629
|
-
(plugin) =>
|
|
2629
|
+
(plugin) => _chunkOWO7KDZ3cjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false && // Mobile session tokens change only bearer requests and cookie-clearing responses, which a
|
|
2630
2630
|
// prerendered file never answers or sends; its endpoints live under /__farm/.
|
|
2631
|
-
plugin.name !==
|
|
2631
|
+
plugin.name !== _chunk2JEXQAIRcjs.FARM_MOBILE_SESSION_PLUGIN && _chunk47JV57DAcjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, pathname)
|
|
2632
2632
|
);
|
|
2633
2633
|
}
|
|
2634
2634
|
async function discoverMiddlewareRoutes(appDir) {
|
|
@@ -2961,7 +2961,7 @@ async function writeFarmVideoPlayerToClient(outputDir) {
|
|
|
2961
2961
|
const filePath = _path2.default.join(outputDir, _chunkY3DO7BIJcjs.FARM_VIDEO_PLAYER_PATH.slice(1));
|
|
2962
2962
|
await fs5.mkdir(_path2.default.dirname(filePath), { recursive: true });
|
|
2963
2963
|
try {
|
|
2964
|
-
await fs5.writeFile(filePath,
|
|
2964
|
+
await fs5.writeFile(filePath, _chunkDTNWLRRFcjs.FARM_VIDEO_PLAYER_HTML, { flag: "wx" });
|
|
2965
2965
|
} catch (error) {
|
|
2966
2966
|
if (error.code !== "EEXIST") throw error;
|
|
2967
2967
|
}
|
|
@@ -2995,7 +2995,7 @@ async function mergeBuiltFontCss(outputDir, fontCssSource) {
|
|
|
2995
2995
|
}
|
|
2996
2996
|
const normalizedFontCss = typeof fontCss === "string" ? fontCss : Buffer.from(fontCss).toString("utf8");
|
|
2997
2997
|
await fs5.writeFile(fontCssPath, normalizedFontCss);
|
|
2998
|
-
await fs5.writeFile(clientCssPath,
|
|
2998
|
+
await fs5.writeFile(clientCssPath, _chunkDTNWLRRFcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
|
|
2999
2999
|
}
|
|
3000
3000
|
function importsFarmClientBlockedPackage(id, packageName) {
|
|
3001
3001
|
return id === packageName || id.startsWith(`${packageName}/`);
|
|
@@ -3045,10 +3045,10 @@ async function validateClientBuildOutput(root, srcDir, outputDir) {
|
|
|
3045
3045
|
}
|
|
3046
3046
|
}
|
|
3047
3047
|
function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, options = {}) {
|
|
3048
|
-
const key =
|
|
3048
|
+
const key = _chunkQP4GYVRRcjs.getClientModuleHydrationPlanKey.call(void 0, modulePath, root, mode, options);
|
|
3049
3049
|
let plan = cache.get(key);
|
|
3050
3050
|
if (!plan) {
|
|
3051
|
-
plan =
|
|
3051
|
+
plan = _chunkQP4GYVRRcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
|
|
3052
3052
|
cache.set(key, plan);
|
|
3053
3053
|
}
|
|
3054
3054
|
return { ...plan, isolatedBoundaries: [...plan.isolatedBoundaries] };
|
|
@@ -3057,7 +3057,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3057
3057
|
if (!mobile) await _chunkE5UN4OWXcjs.removeFarmMobileClientManifest.call(void 0, _path2.default.dirname(outputDir));
|
|
3058
3058
|
const viteBuild = productionVite.build;
|
|
3059
3059
|
const { farmIslandContainersPlugin, farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.cjs");
|
|
3060
|
-
const { PluginManager: PluginManager2 } = await import("./plugin-
|
|
3060
|
+
const { PluginManager: PluginManager2 } = await import("./plugin-YXPIS3XX.cjs");
|
|
3061
3061
|
const fs5 = await import("fs/promises");
|
|
3062
3062
|
const pluginManager = new PluginManager2({
|
|
3063
3063
|
config,
|
|
@@ -3066,7 +3066,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3066
3066
|
});
|
|
3067
3067
|
pluginManager.addPlugins(config.plugins || []);
|
|
3068
3068
|
const clientPages = [];
|
|
3069
|
-
const integrationProviders =
|
|
3069
|
+
const integrationProviders = _chunkOWO7KDZ3cjs.getIntegrationProviders.call(void 0, config.integrations).filter(
|
|
3070
3070
|
(provider) => provider.component || provider.type === "clerk"
|
|
3071
3071
|
);
|
|
3072
3072
|
const unsupportedIntegrationProvider = integrationProviders.find(
|
|
@@ -3077,14 +3077,14 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3077
3077
|
`[Farm.js] isolated hydration kept route-wide because integration provider "${unsupportedIntegrationProvider.name}" does not declare supportsIsolatedHydration: true.`
|
|
3078
3078
|
);
|
|
3079
3079
|
}
|
|
3080
|
-
const isolatedMode =
|
|
3080
|
+
const isolatedMode = _chunkQP4GYVRRcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
3081
3081
|
_optionalChain([config, 'access', _95 => _95.experimental, 'optionalAccess', _96 => _96.isolatedClientHydration]),
|
|
3082
3082
|
{
|
|
3083
3083
|
serverComponents: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _97 => _97.experimental, 'optionalAccess', _98 => _98.serverComponents])) === "rsc",
|
|
3084
3084
|
hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
|
|
3085
3085
|
}
|
|
3086
3086
|
);
|
|
3087
|
-
const planOptions =
|
|
3087
|
+
const planOptions = _chunkQP4GYVRRcjs.getFarmClientHydrationPlanOptions.call(void 0,
|
|
3088
3088
|
config.renderer,
|
|
3089
3089
|
Boolean(unsupportedIntegrationProvider)
|
|
3090
3090
|
);
|
|
@@ -3096,7 +3096,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3096
3096
|
...planOptions,
|
|
3097
3097
|
serverTreeLayouts: pagePlanOptions.serverOwners
|
|
3098
3098
|
};
|
|
3099
|
-
const layoutAppliesToRoute =
|
|
3099
|
+
const layoutAppliesToRoute = _chunk6ZFGWB75cjs.routeBoundaryCoversDirectory;
|
|
3100
3100
|
const routeDirectory = (route) => _nullishCoalesce(route.directory, () => ( route.pattern));
|
|
3101
3101
|
const islandsMode = _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _101 => _101.experimental, 'optionalAccess', _102 => _102.serverComponents])) === "islands";
|
|
3102
3102
|
const adapterOwnsDocsRuntime = Boolean(
|
|
@@ -3111,7 +3111,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3111
3111
|
);
|
|
3112
3112
|
const syntheticDocsEntry = _optionalChain([config, 'access', _110 => _110.docs, 'optionalAccess', _111 => _111.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
|
|
3113
3113
|
const syntheticDocsPatterns = syntheticDocsEntry ? syntheticDocsEntry === "/" ? ["/", "/[...slug]"] : [syntheticDocsEntry, `${syntheticDocsEntry}/[...slug]`] : [];
|
|
3114
|
-
const plan = (operation) => sourceSnapshot ?
|
|
3114
|
+
const plan = (operation) => sourceSnapshot ? _chunkQP4GYVRRcjs.withFarmSourceSnapshotOf.call(void 0, sourceSnapshot, operation) : _chunkQP4GYVRRcjs.withFarmSourceSnapshot.call(void 0, operation);
|
|
3115
3115
|
const { clientLayouts, clientRouteSlots } = plan(() => {
|
|
3116
3116
|
const clientLayouts2 = layoutRoutes.map((layout) => {
|
|
3117
3117
|
try {
|
|
@@ -3158,7 +3158,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3158
3158
|
};
|
|
3159
3159
|
}
|
|
3160
3160
|
});
|
|
3161
|
-
const markdownPagePlan =
|
|
3161
|
+
const markdownPagePlan = _chunkQP4GYVRRcjs.createMarkdownPageHydrationPlanner.call(void 0,
|
|
3162
3162
|
_chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx), root),
|
|
3163
3163
|
root,
|
|
3164
3164
|
isolatedMode,
|
|
@@ -3174,7 +3174,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3174
3174
|
pagePlanOptions
|
|
3175
3175
|
)
|
|
3176
3176
|
}));
|
|
3177
|
-
|
|
3177
|
+
_chunkQP4GYVRRcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
|
|
3178
3178
|
clientLayouts2.map((layout) => ({
|
|
3179
3179
|
pattern: layout.pattern,
|
|
3180
3180
|
depth: layout.pattern.split("/").filter(Boolean).length,
|
|
@@ -3183,7 +3183,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3183
3183
|
[
|
|
3184
3184
|
...routePlans.map(({ route, metadata }) => ({
|
|
3185
3185
|
pattern: routeDirectory(route),
|
|
3186
|
-
depth:
|
|
3186
|
+
depth: _chunk6ZFGWB75cjs.getRouteDirectoryDepth.call(void 0, routeDirectory(route)),
|
|
3187
3187
|
metadata
|
|
3188
3188
|
})),
|
|
3189
3189
|
...syntheticDocsPatterns.map((pattern) => ({
|
|
@@ -3208,7 +3208,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3208
3208
|
const matchesBuiltRoute = pageRoutes.some((route) => layoutAppliesToRoute(layout.pattern, routeDirectory(route))) || docsEntries.some((docsEntry) => layoutAppliesToRoute(layout.pattern, docsEntry));
|
|
3209
3209
|
if (matchesBuiltRoute && layout.suppressedAsyncHydration) {
|
|
3210
3210
|
_chunkGC5ROI3Acjs.logger.warn(
|
|
3211
|
-
`\u26A0\uFE0F ${
|
|
3211
|
+
`\u26A0\uFE0F ${_chunkQP4GYVRRcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`
|
|
3212
3212
|
);
|
|
3213
3213
|
}
|
|
3214
3214
|
}
|
|
@@ -3243,7 +3243,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3243
3243
|
);
|
|
3244
3244
|
if (metadata.suppressedAsyncHydration) {
|
|
3245
3245
|
_chunkGC5ROI3Acjs.logger.warn(
|
|
3246
|
-
`\u26A0\uFE0F ${
|
|
3246
|
+
`\u26A0\uFE0F ${_chunkQP4GYVRRcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
|
|
3247
3247
|
);
|
|
3248
3248
|
}
|
|
3249
3249
|
const slotBoundaries = serverSlotPlans.filter(
|
|
@@ -3251,7 +3251,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3251
3251
|
).flatMap(({ plan: plan2 }) => plan2.isolatedBoundaries);
|
|
3252
3252
|
if (metadata.shouldHydrate || metadata.hasIsolatedClientBoundaries || applicableClientLayouts.length > 0 || slotBoundaries.length > 0) {
|
|
3253
3253
|
const relativePath = route.modulePath.replace(root, "").replace(/^\//, "");
|
|
3254
|
-
const islandStrategy =
|
|
3254
|
+
const islandStrategy = _chunkDTNWLRRFcjs.resolveFarmRouteRootStrategy.call(void 0,
|
|
3255
3255
|
route,
|
|
3256
3256
|
metadata,
|
|
3257
3257
|
clientLayouts2,
|
|
@@ -3270,7 +3270,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3270
3270
|
...applicableClientLayouts.filter((layout) => layout.hasIsolatedClientBoundaries || layout.serverTreeLayout).flatMap((layout) => layout.isolatedBoundaries)
|
|
3271
3271
|
],
|
|
3272
3272
|
// The server renders a server tree only below a hydrating layout.
|
|
3273
|
-
...
|
|
3273
|
+
..._chunkQP4GYVRRcjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
|
|
3274
3274
|
});
|
|
3275
3275
|
_chunkGC5ROI3Acjs.logger.info(`\u{1F4F1} Found hydratable route: ${route.pattern} -> ${route.modulePath}`);
|
|
3276
3276
|
}
|
|
@@ -3307,7 +3307,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3307
3307
|
}
|
|
3308
3308
|
const clientRouteSlots2 = routeSlots.filter((slot) => {
|
|
3309
3309
|
try {
|
|
3310
|
-
const metadata =
|
|
3310
|
+
const metadata = _chunkQP4GYVRRcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root);
|
|
3311
3311
|
return metadata.shouldHydrate && (!islandsMode || metadata.isClientComponent);
|
|
3312
3312
|
} catch (error) {
|
|
3313
3313
|
_chunkGC5ROI3Acjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
|
|
@@ -3358,13 +3358,13 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3358
3358
|
config.renderer,
|
|
3359
3359
|
config.publicRuntimeConfig,
|
|
3360
3360
|
config.trailingSlash,
|
|
3361
|
-
|
|
3361
|
+
_chunkOWO7KDZ3cjs.getIntegrationProviders.call(void 0, config.integrations),
|
|
3362
3362
|
config.basePath,
|
|
3363
|
-
|
|
3363
|
+
_chunkDTNWLRRFcjs.generateClientCachePersistenceCode.call(void 0, _chunkDTNWLRRFcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
|
|
3364
3364
|
adapterOwnsDocsRuntime ? _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0,
|
|
3365
3365
|
_chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _117 => _117.experimental, 'optionalAccess', _118 => _118.serverComponents])) === "islands",
|
|
3366
3366
|
platform,
|
|
3367
|
-
islandsMode ?
|
|
3367
|
+
islandsMode ? _chunkQP4GYVRRcjs.collectFarmServerStylesheets.call(void 0,
|
|
3368
3368
|
[
|
|
3369
3369
|
...layoutRoutes.map((layout) => layout.modulePath),
|
|
3370
3370
|
...pageRoutes.filter((route) => !isAdapterDocsRoute(route.pattern)).map((route) => route.modulePath)
|
|
@@ -3383,7 +3383,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3383
3383
|
await fs5.writeFile(_path2.default.join(clientEntryDir, "farm-client-router.tsx"), clientEntry.router);
|
|
3384
3384
|
}
|
|
3385
3385
|
const clientInput = { [entryName]: clientEntryPath };
|
|
3386
|
-
if (platform === "web" &&
|
|
3386
|
+
if (platform === "web" && _chunkDTNWLRRFcjs.canBootFarmIslandsClient.call(void 0, config)) {
|
|
3387
3387
|
const clientBootPath = _path2.default.join(clientEntryDir, "farm-client-boot.tsx");
|
|
3388
3388
|
await fs5.writeFile(
|
|
3389
3389
|
clientBootPath,
|
|
@@ -3404,7 +3404,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3404
3404
|
const postcssConfigPath = _path2.default.join(clientEntryDir, "postcss.config.cjs");
|
|
3405
3405
|
await fs5.writeFile(postcssConfigPath, "module.exports = { plugins: [] };\n");
|
|
3406
3406
|
postcssSearchPath = clientEntryDir;
|
|
3407
|
-
tailwindVitePlugin = await
|
|
3407
|
+
tailwindVitePlugin = await _chunkQTDIOZV6cjs.loadTailwindVitePlugin.call(void 0, {
|
|
3408
3408
|
builder: productionVite.builder,
|
|
3409
3409
|
announce: true
|
|
3410
3410
|
});
|
|
@@ -3425,7 +3425,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3425
3425
|
target: FARM_CLIENT_BUILD_TARGET,
|
|
3426
3426
|
// Tailwind CSS 4 already requires newer browsers than that baseline. An app's own
|
|
3427
3427
|
// `build.target` or `build.cssTarget` still decides, as Vite derives one from the other.
|
|
3428
|
-
..._optionalChain([config, 'access', _119 => _119.vite, 'optionalAccess', _120 => _120.build, 'optionalAccess', _121 => _121.target]) === void 0 && _optionalChain([config, 'access', _122 => _122.vite, 'optionalAccess', _123 => _123.build, 'optionalAccess', _124 => _124.cssTarget]) === void 0 && (
|
|
3428
|
+
..._optionalChain([config, 'access', _119 => _119.vite, 'optionalAccess', _120 => _120.build, 'optionalAccess', _121 => _121.target]) === void 0 && _optionalChain([config, 'access', _122 => _122.vite, 'optionalAccess', _123 => _123.build, 'optionalAccess', _124 => _124.cssTarget]) === void 0 && (_chunkQTDIOZV6cjs.includesTailwindVitePlugin.call(void 0, tailwindVitePlugin) || _chunkQTDIOZV6cjs.includesTailwindVitePlugin.call(void 0, _optionalChain([config, 'access', _125 => _125.vite, 'optionalAccess', _126 => _126.plugins]))) ? { cssTarget: _chunkQTDIOZV6cjs.TAILWIND_CSS_BROWSER_TARGET } : {},
|
|
3429
3429
|
outDir: outputDir,
|
|
3430
3430
|
emptyOutDir: platform === "web",
|
|
3431
3431
|
// Never public: see resolveFarmClientSourcemap.
|
|
@@ -3458,7 +3458,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3458
3458
|
}
|
|
3459
3459
|
},
|
|
3460
3460
|
plugins: [
|
|
3461
|
-
|
|
3461
|
+
_chunkDTNWLRRFcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
3462
3462
|
createFarmPrivateClientSourcemapsPlugin({
|
|
3463
3463
|
outDir: _path2.default.join(
|
|
3464
3464
|
_path2.default.dirname(outputDir),
|
|
@@ -3490,7 +3490,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3490
3490
|
...rendererVitePlugins,
|
|
3491
3491
|
...config.vite.plugins || [],
|
|
3492
3492
|
farmServerOnlyEntriesPlugin({ platform, distDir: config.distDir || ".farm" }),
|
|
3493
|
-
|
|
3493
|
+
_chunkDTNWLRRFcjs.farmDocsClientConfigPlugin.call(void 0,
|
|
3494
3494
|
adapterOwnsDocsRuntime ? _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
|
|
3495
3495
|
),
|
|
3496
3496
|
// Plugin to redirect @farm.js/core imports to client-only exports
|
|
@@ -3523,7 +3523,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3523
3523
|
},
|
|
3524
3524
|
load: {
|
|
3525
3525
|
filter: {
|
|
3526
|
-
id:
|
|
3526
|
+
id: _chunkDTNWLRRFcjs.exactIdPattern.call(void 0, [
|
|
3527
3527
|
"\0empty-module",
|
|
3528
3528
|
"\0empty-api-route",
|
|
3529
3529
|
"\0farm-i18n-client-bridge",
|
|
@@ -3561,7 +3561,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3561
3561
|
{ ...config, isolatedClientBoundaryModules, programmaticClientRoutes, sourceSnapshot },
|
|
3562
3562
|
pluginManager
|
|
3563
3563
|
),
|
|
3564
|
-
|
|
3564
|
+
_chunkQP4GYVRRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
|
|
3565
3565
|
],
|
|
3566
3566
|
mode: "production",
|
|
3567
3567
|
css: postcssSearchPath ? {
|
|
@@ -3569,7 +3569,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3569
3569
|
} : void 0,
|
|
3570
3570
|
// Ensure React is bundled for client
|
|
3571
3571
|
resolve: {
|
|
3572
|
-
alias:
|
|
3572
|
+
alias: _chunkDTNWLRRFcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
|
|
3573
3573
|
dedupe: [...config.renderer.dedupe || []]
|
|
3574
3574
|
},
|
|
3575
3575
|
// Optimize dependencies - exclude server-side code from client bundle
|
|
@@ -3583,7 +3583,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3583
3583
|
}
|
|
3584
3584
|
};
|
|
3585
3585
|
await viteBuild(
|
|
3586
|
-
|
|
3586
|
+
_chunkDTNWLRRFcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite, { clientOutput: true })
|
|
3587
3587
|
);
|
|
3588
3588
|
if (platform === "mobile") {
|
|
3589
3589
|
await fs5.rm(_path2.default.join(outputDir, `${entryName}.css`), { force: true });
|
|
@@ -3676,7 +3676,7 @@ async function fetchFarmNavigationDocument(url, headers, recover = true, signal)
|
|
|
3676
3676
|
return response;
|
|
3677
3677
|
}
|
|
3678
3678
|
|
|
3679
|
-
${streamNavigations ?
|
|
3679
|
+
${streamNavigations ? _chunkDTNWLRRFcjs.FARM_NAVIGATION_STREAM_READER_SOURCE : ""}
|
|
3680
3680
|
|
|
3681
3681
|
function clearFarmPrefetchCacheOnDeploymentMismatch(router, error) {
|
|
3682
3682
|
if (error?.name === "FarmDeploymentMismatchError") {
|
|
@@ -4825,7 +4825,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
|
|
|
4825
4825
|
direction: {}
|
|
4826
4826
|
}, plugins = [], renderer = _chunk67MZTLTFcjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false, platform, serverStylesheets = []) {
|
|
4827
4827
|
const toImportPath = (targetPath) => targetPath.replace(/\\/g, "/");
|
|
4828
|
-
const clientPluginEntry =
|
|
4828
|
+
const clientPluginEntry = _chunkQTDIOZV6cjs.generateFarmClientPluginEntryCode.call(void 0,
|
|
4829
4829
|
plugins,
|
|
4830
4830
|
root,
|
|
4831
4831
|
srcDir,
|
|
@@ -4838,7 +4838,7 @@ import { createRoot, hydrateRoot } from "react-dom/client";
|
|
|
4838
4838
|
import { restorePagePosition } from "@farm.js/core/internal/client-runtime";` : appSetupPath ? `import React, { createRoot, hydrateRoot, configureApp as __farmConfigureApp } from ${JSON.stringify(renderer.client)};
|
|
4839
4839
|
import __farmAppSetup from ${JSON.stringify(_chunkGC5ROI3Acjs.toPosixPath.call(void 0, appSetupPath))};
|
|
4840
4840
|
__farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};`;
|
|
4841
|
-
const providerClientCode =
|
|
4841
|
+
const providerClientCode = _chunkDTNWLRRFcjs.generateFarmIntegrationProviderClientCode.call(void 0,
|
|
4842
4842
|
integrationProviders,
|
|
4843
4843
|
root,
|
|
4844
4844
|
_nullishCoalesce(renderer.componentExtensions, () => ( []))
|
|
@@ -4861,18 +4861,18 @@ __farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot
|
|
|
4861
4861
|
const layoutImportStatements = [];
|
|
4862
4862
|
const layoutRegistrations = [];
|
|
4863
4863
|
const hydratingLayoutPatterns = layoutRoutes.filter((layout) => layout.shouldHydrate).map((layout) => layout.pattern);
|
|
4864
|
-
const treeLayoutPatterns = islandValues ?
|
|
4864
|
+
const treeLayoutPatterns = islandValues ? _chunk6ZFGWB75cjs.getFarmServerTreeLayoutPatterns.call(void 0, layoutRoutes) : /* @__PURE__ */ new Set();
|
|
4865
4865
|
layoutRoutes.forEach((layout, index) => {
|
|
4866
4866
|
const relativePath = toImportPath(layout.modulePath);
|
|
4867
4867
|
const treeLayout = treeLayoutPatterns.has(layout.pattern);
|
|
4868
4868
|
const rendersOnClient = treeLayout || !layout.hasIsolatedClientBoundaries && hydratingLayoutPatterns.some(
|
|
4869
|
-
(pattern) =>
|
|
4869
|
+
(pattern) => _chunk6ZFGWB75cjs.layoutsCanCoverSamePage.call(void 0, layout.pattern, pattern)
|
|
4870
4870
|
);
|
|
4871
4871
|
if (rendersOnClient && !treeLayout) {
|
|
4872
4872
|
layoutImportStatements.push(`import Layout${index} from "${relativePath}";`);
|
|
4873
4873
|
}
|
|
4874
|
-
const groupScope =
|
|
4875
|
-
const groupFields = groupScope ? `, urlPattern: ${JSON.stringify(
|
|
4874
|
+
const groupScope = _chunk6ZFGWB75cjs.getRouteGroupScope.call(void 0, layout.pattern);
|
|
4875
|
+
const groupFields = groupScope ? `, urlPattern: ${JSON.stringify(_chunk6ZFGWB75cjs.stripRouteGroups.call(void 0, layout.pattern))}, groupScope: ${JSON.stringify(groupScope)}` : "";
|
|
4876
4876
|
layoutRegistrations.push(
|
|
4877
4877
|
` { pattern: ${JSON.stringify(layout.pattern)}${groupFields}, Component: ${rendersOnClient ? treeLayout ? `getFarmTreeLayoutComponent(${JSON.stringify(layout.pattern)})` : `Layout${index}` : "null"}, shouldHydrate: ${JSON.stringify(layout.shouldHydrate)}, islandStrategy: ${JSON.stringify(layout.islandStrategy)}${treeLayout ? ", serverTree: true" : ""} }`
|
|
4878
4878
|
);
|
|
@@ -4959,7 +4959,7 @@ mountFarmDocsSearch();
|
|
|
4959
4959
|
|
|
4960
4960
|
${generateUniversalRouterStateRuntime()}
|
|
4961
4961
|
|
|
4962
|
-
${
|
|
4962
|
+
${_chunkDTNWLRRFcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
|
|
4963
4963
|
|
|
4964
4964
|
// SPA Router for server-rendered pages (HTML swap)
|
|
4965
4965
|
const spaRouter = {
|
|
@@ -5407,7 +5407,7 @@ function hasHydratableLayout(pathname) {
|
|
|
5407
5407
|
});
|
|
5408
5408
|
}
|
|
5409
5409
|
|
|
5410
|
-
${
|
|
5410
|
+
${_chunkDTNWLRRFcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
|
|
5411
5411
|
// Wrap a page element with applicable layouts
|
|
5412
5412
|
function wrapWithLayouts(pageElement, pathname, params) {
|
|
5413
5413
|
const layouts = getApplicableLayouts(pathname);
|
|
@@ -5442,7 +5442,7 @@ function createLayoutPageBoundary(route, pageElement, serverHtml) {
|
|
|
5442
5442
|
return React.createElement("div", props, pageElement);
|
|
5443
5443
|
}
|
|
5444
5444
|
let farmLastRouteState = null;
|
|
5445
|
-
${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${
|
|
5445
|
+
${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${_chunkDTNWLRRFcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
|
|
5446
5446
|
function farmTreeLayoutsOf(pathname) {
|
|
5447
5447
|
return getApplicableLayouts(pathname).filter(function(layout) {
|
|
5448
5448
|
return layout.serverTree === true;
|
|
@@ -6016,7 +6016,7 @@ function fitsSegmentResponse(currentRoot, nextRoot) {
|
|
|
6016
6016
|
return true;
|
|
6017
6017
|
}` : ""}
|
|
6018
6018
|
|
|
6019
|
-
${
|
|
6019
|
+
${_chunkDTNWLRRFcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
|
|
6020
6020
|
|
|
6021
6021
|
function activateNavigationScripts(root) {
|
|
6022
6022
|
for (const script of Array.from(root?.querySelectorAll?.("script") || [])) {
|
|
@@ -6119,7 +6119,7 @@ function getLayoutShell(root, patterns, index) {
|
|
|
6119
6119
|
return shell.innerHTML;
|
|
6120
6120
|
}
|
|
6121
6121
|
|
|
6122
|
-
${islandValues ?
|
|
6122
|
+
${islandValues ? _chunkDTNWLRRFcjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceSharedLayoutBoundary(currentRoot, nextRoot, refresh = false) {
|
|
6123
6123
|
// A refresh keeps the islands still on the page: the ones in streamed Suspense content too.
|
|
6124
6124
|
if (refresh) revealFarmStreamedContent(nextRoot);
|
|
6125
6125
|
const currentPatterns = getLayoutPatterns(currentRoot);
|
|
@@ -6767,7 +6767,7 @@ void hydrate();
|
|
|
6767
6767
|
async function buildSSRInMemory(productionVite, config, root, routeManager, apiRouteManager, serverRenderer, preset, collectedPageRoutes, collectedLayoutRoutes, collectedRouteSlots, isolatedClientBoundaryModules, hydrationPlanCache, rendererBuildLifetime, sourceSnapshot) {
|
|
6768
6768
|
const viteBuild = productionVite.build;
|
|
6769
6769
|
const { farmIslandContainersPlugin, farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.cjs");
|
|
6770
|
-
const { PluginManager: PluginManager2 } = await import("./plugin-
|
|
6770
|
+
const { PluginManager: PluginManager2 } = await import("./plugin-YXPIS3XX.cjs");
|
|
6771
6771
|
const fs5 = await import("fs/promises");
|
|
6772
6772
|
const pluginManager = new PluginManager2({
|
|
6773
6773
|
config,
|
|
@@ -6788,7 +6788,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
6788
6788
|
_path2.default.join(postcssConfigDir, "postcss.config.cjs"),
|
|
6789
6789
|
"module.exports = { plugins: [] };\n"
|
|
6790
6790
|
);
|
|
6791
|
-
tailwindVitePlugin = await
|
|
6791
|
+
tailwindVitePlugin = await _chunkQTDIOZV6cjs.loadTailwindVitePlugin.call(void 0, {
|
|
6792
6792
|
builder: productionVite.builder,
|
|
6793
6793
|
label: "for SSR"
|
|
6794
6794
|
});
|
|
@@ -6895,7 +6895,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
6895
6895
|
}))
|
|
6896
6896
|
);
|
|
6897
6897
|
const instrumentationPath = _chunk3GNHJ3RNcjs.resolveFarmInstrumentationFile.call(void 0, root, config.srcDir || "src");
|
|
6898
|
-
const notFoundPath =
|
|
6898
|
+
const notFoundPath = _chunkDTNWLRRFcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
|
|
6899
6899
|
if (notFoundPath) _chunkGC5ROI3Acjs.logger.info(`\u{1F4CB} Found custom 404 page: ${notFoundPath}`);
|
|
6900
6900
|
layoutRoutes.sort((a, b) => {
|
|
6901
6901
|
const depthA = a.pattern.split("/").filter(Boolean).length;
|
|
@@ -6912,14 +6912,14 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
6912
6912
|
const hasServerRuntimeIntegrations = configuredIntegrationValues.some(
|
|
6913
6913
|
(integration) => typeof integration === "object" && integration !== null && (!("serverRuntime" in integration) || integration.serverRuntime !== false)
|
|
6914
6914
|
);
|
|
6915
|
-
const hasIntegrationProviders =
|
|
6915
|
+
const hasIntegrationProviders = _chunkOWO7KDZ3cjs.getIntegrationProviders.call(void 0, config.integrations).some(
|
|
6916
6916
|
(provider) => provider.component || provider.type === "clerk"
|
|
6917
6917
|
);
|
|
6918
6918
|
const hasObservabilityHandler = !!config.observability && typeof config.observability === "object" && "onEvent" in config.observability;
|
|
6919
6919
|
const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _136 => _136.mdx, 'optionalAccess', _137 => _137.components]));
|
|
6920
|
-
const hasMiddlewareConfig =
|
|
6921
|
-
const hasRouteContextConfig =
|
|
6922
|
-
const hasServerRuntimePlugins =
|
|
6920
|
+
const hasMiddlewareConfig = _chunk6ZFGWB75cjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
|
|
6921
|
+
const hasRouteContextConfig = _chunkPSNYVBWCcjs.hasCustomFarmRouteContext.call(void 0, config);
|
|
6922
|
+
const hasServerRuntimePlugins = _chunkQTDIOZV6cjs.hasFarmServerRuntimePlugins.call(void 0, config.plugins);
|
|
6923
6923
|
const hasPluginRoutes = hasFarmPluginRoutes(config);
|
|
6924
6924
|
const hasServerCacheConfig = hasFarmServerCacheConfig(config.cache);
|
|
6925
6925
|
const configModulePath = hasServerRuntimeIntegrations || hasObservabilityHandler || hasMdxComponentConfig || hasMiddlewareConfig || hasRouteContextConfig || hasServerRuntimePlugins || hasPluginRoutes || hasServerCacheConfig || hasFarmServerStorageConfig(config.storage) || hasIntegrationProviders ? await findFarmConfigPath(root) : null;
|
|
@@ -6928,9 +6928,9 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
6928
6928
|
const hasConfiguredRuntimePlugins = Boolean(
|
|
6929
6929
|
hasRuntimeConfigModule && (config.plugins || []).length > 0
|
|
6930
6930
|
);
|
|
6931
|
-
if (
|
|
6931
|
+
if (_chunkWMJQNVKXcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
|
|
6932
6932
|
const adapterGuardedPaths = new Set(getFarmDocsGuardedPaths(config, middlewareRoutes));
|
|
6933
|
-
|
|
6933
|
+
_chunkWMJQNVKXcjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
|
|
6934
6934
|
config.docs,
|
|
6935
6935
|
{ root, srcDir: config.srcDir },
|
|
6936
6936
|
(pathname) => adapterGuardedPaths.has(pathname),
|
|
@@ -6940,7 +6940,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
6940
6940
|
const farmDocsCspNonceMarker = _chunk6JHZPB52cjs.createFarmCspNonce.call(void 0, config.security);
|
|
6941
6941
|
const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _138 => _138.docs, 'optionalAccess', _139 => _139.enabled]) && _chunkNLBHLPEOcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? await _chunk2RSVYJT6cjs._runWithFarmCspNonce.call(void 0,
|
|
6942
6942
|
farmDocsCspNonceMarker,
|
|
6943
|
-
async () => _optionalChain([config, 'access', _140 => _140.docs, 'access', _141 => _141.adapter, 'optionalAccess', _142 => _142.server]) ? await
|
|
6943
|
+
async () => _optionalChain([config, 'access', _140 => _140.docs, 'access', _141 => _141.adapter, 'optionalAccess', _142 => _142.server]) ? await _chunkWMJQNVKXcjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
|
|
6944
6944
|
root,
|
|
6945
6945
|
srcDir: config.srcDir,
|
|
6946
6946
|
clientEntry: FARM_CLIENT_JS_SRC_PLACEHOLDER,
|
|
@@ -7107,7 +7107,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7107
7107
|
__FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _148 => _148.env, 'optionalAccess', _149 => _149.public]) || {})
|
|
7108
7108
|
},
|
|
7109
7109
|
plugins: [
|
|
7110
|
-
|
|
7110
|
+
_chunkDTNWLRRFcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
7111
7111
|
...tailwindVitePlugin ? [tailwindVitePlugin] : [],
|
|
7112
7112
|
...rendererVitePlugins,
|
|
7113
7113
|
...config.vite.plugins || [],
|
|
@@ -7138,7 +7138,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7138
7138
|
},
|
|
7139
7139
|
pluginManager
|
|
7140
7140
|
),
|
|
7141
|
-
|
|
7141
|
+
_chunkQP4GYVRRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
|
|
7142
7142
|
...hasRuntimeConfigModule ? [
|
|
7143
7143
|
farmStripPlatformConfigPlugin(
|
|
7144
7144
|
[
|
|
@@ -7150,7 +7150,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7150
7150
|
{
|
|
7151
7151
|
name: "farm-virtual-ssr-entry",
|
|
7152
7152
|
resolveId: {
|
|
7153
|
-
filter: { id:
|
|
7153
|
+
filter: { id: _chunkDTNWLRRFcjs.exactIdPattern.call(void 0, [virtualEntryId, "\0virtual:farm-ssr-entry"]) },
|
|
7154
7154
|
handler(id) {
|
|
7155
7155
|
if (id === virtualEntryId || id === "\0virtual:farm-ssr-entry") {
|
|
7156
7156
|
return virtualEntryId;
|
|
@@ -7159,7 +7159,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7159
7159
|
}
|
|
7160
7160
|
},
|
|
7161
7161
|
load: {
|
|
7162
|
-
filter: { id:
|
|
7162
|
+
filter: { id: _chunkDTNWLRRFcjs.exactIdPattern.call(void 0, [virtualEntryId]) },
|
|
7163
7163
|
handler(id) {
|
|
7164
7164
|
if (id === virtualEntryId) {
|
|
7165
7165
|
return virtualEntryCode;
|
|
@@ -7191,7 +7191,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7191
7191
|
resolve: {
|
|
7192
7192
|
alias: [
|
|
7193
7193
|
...shouldAliasReactServerToWebBuild(config.renderer, preset) ? [createFarmReactWebServerAlias(hasReactDomEdgeServerBuild(root))] : [],
|
|
7194
|
-
...Object.entries(
|
|
7194
|
+
...Object.entries(_chunkDTNWLRRFcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
|
|
7195
7195
|
([find, replacement]) => ({ find, replacement })
|
|
7196
7196
|
)
|
|
7197
7197
|
],
|
|
@@ -7199,7 +7199,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7199
7199
|
dedupe: [...config.renderer.dedupe || []]
|
|
7200
7200
|
}
|
|
7201
7201
|
};
|
|
7202
|
-
await viteBuild(
|
|
7202
|
+
await viteBuild(_chunkDTNWLRRFcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
|
|
7203
7203
|
} finally {
|
|
7204
7204
|
if (postcssConfigDir) {
|
|
7205
7205
|
try {
|
|
@@ -7243,7 +7243,7 @@ function getFarmDocsGuardedPaths(config, middlewareRoutes) {
|
|
|
7243
7243
|
};
|
|
7244
7244
|
return _chunk6D3CJFNUcjs.getFarmDocsRoots.call(void 0, config.docs).flatMap(
|
|
7245
7245
|
(docsRoot) => _chunk6D3CJFNUcjs.discoverFarmDocsPages.call(void 0, _chunk6D3CJFNUcjs.resolveFarmDocsContentDir.call(void 0, docsRoot, options), docsRoot)
|
|
7246
|
-
).flatMap((page) => [page.href, _chunk6D3CJFNUcjs.getFarmDocsMarkdownPath.call(void 0, page.href)]).filter((pathname) =>
|
|
7246
|
+
).flatMap((page) => [page.href, _chunk6D3CJFNUcjs.getFarmDocsMarkdownPath.call(void 0, page.href)]).filter((pathname) => _chunk6ZFGWB75cjs.farmPathGuardCoversPage.call(void 0, guards, pathname));
|
|
7247
7247
|
}
|
|
7248
7248
|
function getFarmAppOwnedDocsEnginePaths(agent, applicationMetadataRoutes) {
|
|
7249
7249
|
const llmsTxt = _optionalChain([agent, 'optionalAccess', _152 => _152.llmsTxt]);
|
|
@@ -7649,7 +7649,7 @@ function generateVirtualEntryCode(apiRoutes, pageRoutes, layoutRoutes, routeSlot
|
|
|
7649
7649
|
);
|
|
7650
7650
|
const searchPreserveRoutesSource = searchPreserveRoutes.length > 0 ? JSON.stringify(searchPreserveRoutes) : "";
|
|
7651
7651
|
const farmIslandsMode = _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _166 => _166.experimental, 'optionalAccess', _167 => _167.serverComponents])) === "islands";
|
|
7652
|
-
const farmClientBoot =
|
|
7652
|
+
const farmClientBoot = _chunkDTNWLRRFcjs.canBootFarmIslandsClient.call(void 0, config);
|
|
7653
7653
|
const farmMobileClient = shouldBuildFarmMobileClient(config);
|
|
7654
7654
|
const farmMobileShells = farmMobileClient && config.mobileShells ? config.mobileShells : null;
|
|
7655
7655
|
const hasCompressionRuntime = config.compress && _chunkOCS3PSYRcjs.resolveFarmInstrumentationRuntime.call(void 0, preset) === "nodejs";
|
|
@@ -7718,9 +7718,9 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7718
7718
|
(image) => image.sourceType === "module"
|
|
7719
7719
|
);
|
|
7720
7720
|
const edgeMiddlewareFilePaths = farmTargetRunsEdgeMiddleware(preset) ? middlewareRoutes.filter(isFarmEdgeMiddlewareRoute).map((route) => route.filePath) : [];
|
|
7721
|
-
const hasMiddlewareRuntime = middlewareRoutes.length > 0 ||
|
|
7721
|
+
const hasMiddlewareRuntime = middlewareRoutes.length > 0 || _chunk6ZFGWB75cjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
|
|
7722
7722
|
const farmDocsFontAssets = _optionalChain([config, 'access', _188 => _188.docs, 'optionalAccess', _189 => _189.enabled]) ? _chunkERMUL73Lcjs.toFarmDocsPublicFontAssets.call(void 0, _chunkERMUL73Lcjs.resolveFarmDocsFontAssets.call(void 0, config.root)) : [];
|
|
7723
|
-
const integrationProviders =
|
|
7723
|
+
const integrationProviders = _chunkOWO7KDZ3cjs.getIntegrationProviders.call(void 0, config.integrations);
|
|
7724
7724
|
const renderedIntegrationProviders = integrationProviders.filter(
|
|
7725
7725
|
(provider) => provider.component || provider.type === "clerk"
|
|
7726
7726
|
);
|
|
@@ -7729,7 +7729,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7729
7729
|
`Integration provider components are not supported by the "${config.renderer.name}" renderer.`
|
|
7730
7730
|
);
|
|
7731
7731
|
}
|
|
7732
|
-
const providerServerModules =
|
|
7732
|
+
const providerServerModules = _chunkDTNWLRRFcjs.generateFarmIntegrationProviderServerModules.call(void 0,
|
|
7733
7733
|
renderedIntegrationProviders,
|
|
7734
7734
|
config.root,
|
|
7735
7735
|
_nullishCoalesce(config.renderer.componentExtensions, () => ( []))
|
|
@@ -7749,14 +7749,14 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7749
7749
|
const unsupportedIntegrationProvider = renderedIntegrationProviders.find(
|
|
7750
7750
|
(provider) => provider.supportsIsolatedHydration !== true
|
|
7751
7751
|
);
|
|
7752
|
-
const isolatedHydrationMode =
|
|
7752
|
+
const isolatedHydrationMode = _chunkQP4GYVRRcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
7753
7753
|
_optionalChain([config, 'access', _192 => _192.experimental, 'optionalAccess', _193 => _193.isolatedClientHydration]),
|
|
7754
7754
|
{
|
|
7755
7755
|
serverComponents: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _194 => _194.experimental, 'optionalAccess', _195 => _195.serverComponents])) === "rsc",
|
|
7756
7756
|
hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
|
|
7757
7757
|
}
|
|
7758
7758
|
);
|
|
7759
|
-
const hydrationPlanOptions =
|
|
7759
|
+
const hydrationPlanOptions = _chunkQP4GYVRRcjs.getFarmClientHydrationPlanOptions.call(void 0,
|
|
7760
7760
|
config.renderer,
|
|
7761
7761
|
Boolean(unsupportedIntegrationProvider)
|
|
7762
7762
|
);
|
|
@@ -7764,7 +7764,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7764
7764
|
...hydrationPlanOptions,
|
|
7765
7765
|
serverOwners: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _196 => _196.experimental, 'optionalAccess', _197 => _197.serverComponents])) === "islands"
|
|
7766
7766
|
};
|
|
7767
|
-
const { layoutHydrationPlans, pageHydrationPlans } =
|
|
7767
|
+
const { layoutHydrationPlans, pageHydrationPlans } = _chunkQP4GYVRRcjs.withFarmSourceSnapshot.call(void 0, () => {
|
|
7768
7768
|
const layoutHydrationPlans2 = layoutRoutes.map((layout) => ({
|
|
7769
7769
|
...layout,
|
|
7770
7770
|
hydration: getCachedClientModuleHydrationPlan(
|
|
@@ -7775,7 +7775,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7775
7775
|
{ ...hydrationPlanOptions, serverTreeLayouts: pageHydrationPlanOptions.serverOwners }
|
|
7776
7776
|
)
|
|
7777
7777
|
}));
|
|
7778
|
-
const markdownPagePlan =
|
|
7778
|
+
const markdownPagePlan = _chunkQP4GYVRRcjs.createMarkdownPageHydrationPlanner.call(void 0,
|
|
7779
7779
|
_chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx), config.root),
|
|
7780
7780
|
config.root,
|
|
7781
7781
|
isolatedHydrationMode,
|
|
@@ -7795,7 +7795,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7795
7795
|
);
|
|
7796
7796
|
return { layoutHydrationPlans: layoutHydrationPlans2, pageHydrationPlans: pageHydrationPlans2 };
|
|
7797
7797
|
});
|
|
7798
|
-
|
|
7798
|
+
_chunkQP4GYVRRcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
|
|
7799
7799
|
layoutHydrationPlans.map((layout) => ({
|
|
7800
7800
|
pattern: layout.pattern,
|
|
7801
7801
|
depth: layout.pattern.split("/").filter(Boolean).length,
|
|
@@ -7804,10 +7804,10 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7804
7804
|
pageRoutes.map((route) => ({
|
|
7805
7805
|
// Compared by directory so a grouped layout applies only inside its group.
|
|
7806
7806
|
pattern: _nullishCoalesce(route.directory, () => ( route.pattern)),
|
|
7807
|
-
depth:
|
|
7807
|
+
depth: _chunk6ZFGWB75cjs.getRouteDirectoryDepth.call(void 0, _nullishCoalesce(route.directory, () => ( route.pattern))),
|
|
7808
7808
|
metadata: pageHydrationPlans.get(route.modulePath)
|
|
7809
7809
|
})),
|
|
7810
|
-
|
|
7810
|
+
_chunk6ZFGWB75cjs.routeBoundaryCoversDirectory,
|
|
7811
7811
|
{ serverOwners: pageHydrationPlanOptions.serverOwners }
|
|
7812
7812
|
);
|
|
7813
7813
|
const providerServerImports = [
|
|
@@ -7840,7 +7840,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7840
7840
|
const varName = `pageRoute${index}`;
|
|
7841
7841
|
if (_chunkPG7J7XYTcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) {
|
|
7842
7842
|
const renderingDirective2 = _chunk7564NP5Zcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
|
|
7843
|
-
const markdownServerTree = pageHydrationPlanOptions.serverOwners &&
|
|
7843
|
+
const markdownServerTree = pageHydrationPlanOptions.serverOwners && _chunkQP4GYVRRcjs.usesFarmServerTree.call(void 0, pageHydrationPlans.get(route.modulePath));
|
|
7844
7844
|
pageRegistrations.push(`
|
|
7845
7845
|
{
|
|
7846
7846
|
pattern: ${JSON.stringify(route.pattern)},${route.directory ? `
|
|
@@ -7848,14 +7848,14 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7848
7848
|
rendering: ${JSON.stringify(renderingDirective2)},` : ""}${markdownServerTree ? "\n serverTree: true," : ""}
|
|
7849
7849
|
module: createFarmMarkdownRouteModule({
|
|
7850
7850
|
source: ${JSON.stringify(_nullishCoalesce(route.source, () => ( "")))},
|
|
7851
|
-
filePath: ${JSON.stringify(
|
|
7851
|
+
filePath: ${JSON.stringify(_chunkDTNWLRRFcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.modulePath))},
|
|
7852
7852
|
components: farmMdxComponents,
|
|
7853
7853
|
config: farmMdxConfig,
|
|
7854
7854
|
}),
|
|
7855
7855
|
markdownSource: {
|
|
7856
7856
|
source: ${JSON.stringify(_nullishCoalesce(route.source, () => ( "")))},
|
|
7857
7857
|
filePath: ${JSON.stringify(
|
|
7858
|
-
|
|
7858
|
+
_chunkDTNWLRRFcjs.toBakedMarkdownSourcePath.call(void 0, config.root, _nullishCoalesce(route.markdownSourcePath, () => ( route.modulePath)))
|
|
7859
7859
|
)},
|
|
7860
7860
|
},
|
|
7861
7861
|
}`);
|
|
@@ -7873,8 +7873,8 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7873
7873
|
module: ${varName},
|
|
7874
7874
|
shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},${clientMetadata.shouldHydrate ? `
|
|
7875
7875
|
clientModule: ${JSON.stringify(_chunkGC5ROI3Acjs.toViteModuleId.call(void 0, route.modulePath, config.root))},` : ""}
|
|
7876
|
-
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${
|
|
7877
|
-
const rootStrategy =
|
|
7876
|
+
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkQP4GYVRRcjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${(() => {
|
|
7877
|
+
const rootStrategy = _chunkDTNWLRRFcjs.resolveFarmRouteRootStrategy.call(void 0,
|
|
7878
7878
|
route,
|
|
7879
7879
|
clientMetadata,
|
|
7880
7880
|
layoutHydrationPlans.map((layout) => ({ ...layout, ...layout.hydration })),
|
|
@@ -7887,13 +7887,13 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7887
7887
|
rendering: ${JSON.stringify(renderingDirective)},` : ""}
|
|
7888
7888
|
${route.source !== void 0 ? `markdownSource: {
|
|
7889
7889
|
source: ${JSON.stringify(route.source)},
|
|
7890
|
-
filePath: ${JSON.stringify(
|
|
7890
|
+
filePath: ${JSON.stringify(_chunkDTNWLRRFcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.markdownSourcePath))},
|
|
7891
7891
|
},` : ""}
|
|
7892
7892
|
}`);
|
|
7893
7893
|
});
|
|
7894
7894
|
const layoutImports = [];
|
|
7895
7895
|
const layoutRegistrations = [];
|
|
7896
|
-
const treeLayoutPatterns = farmIslandsMode ?
|
|
7896
|
+
const treeLayoutPatterns = farmIslandsMode ? _chunk6ZFGWB75cjs.getFarmServerTreeLayoutPatterns.call(void 0,
|
|
7897
7897
|
layoutHydrationPlans.map((layout) => ({
|
|
7898
7898
|
pattern: layout.pattern,
|
|
7899
7899
|
shouldHydrate: layout.hydration.shouldHydrate,
|
|
@@ -7911,7 +7911,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7911
7911
|
pattern: ${JSON.stringify(layout.pattern)},
|
|
7912
7912
|
module: ${varName},
|
|
7913
7913
|
shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},
|
|
7914
|
-
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${treeLayoutPatterns.has(layout.pattern) ? "\n serverTree: true," : ""}${farmIslandsMode &&
|
|
7914
|
+
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${treeLayoutPatterns.has(layout.pattern) ? "\n serverTree: true," : ""}${farmIslandsMode && _chunkDTNWLRRFcjs.canFarmSkipKeptLayoutRender.call(void 0, layout.modulePath, config.root) ? "\n skipKeptRender: true," : ""}${// A layout whose client components hydrate as islands of their own (islands mode,
|
|
7915
7915
|
// isolatedClientHydration, or an async layout): it wraps a docs page as an app page.
|
|
7916
7916
|
clientMetadata.hasIsolatedClientBoundaries ? "\n islands: true," : ""}
|
|
7917
7917
|
}`);
|
|
@@ -7939,7 +7939,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7939
7939
|
containerId: ${JSON.stringify(slot.containerId)},
|
|
7940
7940
|
interception: ${JSON.stringify(slot.interception)},
|
|
7941
7941
|
fallback: ${JSON.stringify(slot.fallback)},
|
|
7942
|
-
hydrates: ${!farmIslandsMode ||
|
|
7942
|
+
hydrates: ${!farmIslandsMode || _chunkQP4GYVRRcjs.getClientModuleMetadata.call(void 0, slot.modulePath, config.root).isClientComponent},
|
|
7943
7943
|
module: ${varName},
|
|
7944
7944
|
}`);
|
|
7945
7945
|
});
|
|
@@ -7950,12 +7950,12 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7950
7950
|
errorImports.push(
|
|
7951
7951
|
`import * as ${varName} from ${toVirtualEntryImportSpecifier(errorRoute.modulePath)};`
|
|
7952
7952
|
);
|
|
7953
|
-
const groupScope =
|
|
7953
|
+
const groupScope = _chunk6ZFGWB75cjs.getRouteGroupScope.call(void 0, errorRoute.pattern);
|
|
7954
7954
|
errorRegistrations.push(`
|
|
7955
7955
|
{
|
|
7956
|
-
pattern: ${JSON.stringify(
|
|
7956
|
+
pattern: ${JSON.stringify(_chunk6ZFGWB75cjs.stripRouteGroups.call(void 0, errorRoute.pattern))},${groupScope ? `
|
|
7957
7957
|
groupScope: ${JSON.stringify(groupScope)},
|
|
7958
|
-
directoryDepth: ${
|
|
7958
|
+
directoryDepth: ${_chunk6ZFGWB75cjs.getRouteDirectoryDepth.call(void 0, errorRoute.pattern)},` : ""}
|
|
7959
7959
|
module: ${varName},
|
|
7960
7960
|
}`);
|
|
7961
7961
|
});
|
|
@@ -7967,12 +7967,12 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7967
7967
|
loadingImports.push(
|
|
7968
7968
|
`import * as ${varName} from ${toVirtualEntryImportSpecifier(loadingRoute.modulePath)};`
|
|
7969
7969
|
);
|
|
7970
|
-
const groupScope =
|
|
7970
|
+
const groupScope = _chunk6ZFGWB75cjs.getRouteGroupScope.call(void 0, loadingRoute.pattern);
|
|
7971
7971
|
loadingRegistrations.push(`
|
|
7972
7972
|
{
|
|
7973
|
-
pattern: ${JSON.stringify(
|
|
7973
|
+
pattern: ${JSON.stringify(_chunk6ZFGWB75cjs.stripRouteGroups.call(void 0, loadingRoute.pattern))},${groupScope ? `
|
|
7974
7974
|
groupScope: ${JSON.stringify(groupScope)},
|
|
7975
|
-
directoryDepth: ${
|
|
7975
|
+
directoryDepth: ${_chunk6ZFGWB75cjs.getRouteDirectoryDepth.call(void 0, loadingRoute.pattern)},` : ""}
|
|
7976
7976
|
module: ${varName},
|
|
7977
7977
|
}`);
|
|
7978
7978
|
});
|
|
@@ -8249,14 +8249,14 @@ import { fileURLToPath as farmDocsFileURLToPath } from "node:url";` : "";
|
|
|
8249
8249
|
const nativeAuth = generateNativeAuthIntegrationSource(config.auth);
|
|
8250
8250
|
const nativeMCP = _chunkVM57CK74cjs.generateNativeMCPPluginSource.call(void 0, config.mcp);
|
|
8251
8251
|
const mobileSession = (config.plugins || []).some(
|
|
8252
|
-
(plugin) => _optionalChain([plugin, 'optionalAccess', _219 => _219.name]) ===
|
|
8252
|
+
(plugin) => _optionalChain([plugin, 'optionalAccess', _219 => _219.name]) === _chunk2JEXQAIRcjs.FARM_MOBILE_SESSION_PLUGIN
|
|
8253
8253
|
);
|
|
8254
8254
|
const nativeServerFns = (config.plugins || []).some(
|
|
8255
8255
|
(plugin) => _optionalChain([plugin, 'optionalAccess', _220 => _220.name]) === _chunk4EBC7EMWcjs.FARM_NATIVE_SERVER_FN_PLUGIN
|
|
8256
|
-
) ?
|
|
8256
|
+
) ? _chunkBYJPBJ4Ecjs.collectFarmNativeServerFns.call(void 0, {
|
|
8257
8257
|
root: config.root,
|
|
8258
8258
|
srcDir: config.srcDir,
|
|
8259
|
-
entries:
|
|
8259
|
+
entries: _chunkBYJPBJ4Ecjs.findFarmNativeScreenFiles.call(void 0, _chunkMTBDJ326cjs.getFarmAppDirectories.call(void 0, config))
|
|
8260
8260
|
}) : void 0;
|
|
8261
8261
|
const integrationImports = `
|
|
8262
8262
|
${configModulePath ? `import * as FarmUserConfigModule from ${toVirtualEntryImportSpecifier(configModulePath)};` : ""}
|
|
@@ -8271,7 +8271,7 @@ ${nativeServerFns ? `const __farmNativeServerFnRegistry = Object.assign(Object.c
|
|
|
8271
8271
|
${nativeServerFns.flatMap((module, index) => module.exports.map((entry) => ` ${JSON.stringify(entry.id)}: __farmNativeServerFns${index}[${JSON.stringify(entry.name)}],`)).join("\n")}
|
|
8272
8272
|
});` : ""}
|
|
8273
8273
|
`;
|
|
8274
|
-
const imageRuntime =
|
|
8274
|
+
const imageRuntime = _chunkDTNWLRRFcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
|
|
8275
8275
|
const imageRuntimeImport = imageRuntime === "none" ? "" : `import { _withFarmImageSourceClientAddress, createCloudflareImageTransformer, createFarmImageHandler } from "@farm.js/core/image/server";`;
|
|
8276
8276
|
const imageNodeRuntimeImport = imageRuntime === "node" ? `import { createNodeImageFetcher, createNodeImageUrlValidator, createSharpImageTransformer } from "@farm.js/core/image/sharp";` : "";
|
|
8277
8277
|
const apiHandlerCode = apiRoutes.length > 0 ? `
|
|
@@ -8453,7 +8453,7 @@ const farmResolvedRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs);
|
|
|
8453
8453
|
|
|
8454
8454
|
function renderFarmDefault404Page() {
|
|
8455
8455
|
return React.createElement(React.Fragment, null,
|
|
8456
|
-
React.createElement("style", null, ${JSON.stringify(
|
|
8456
|
+
React.createElement("style", null, ${JSON.stringify(_chunkDTNWLRRFcjs.DEFAULT_NOT_FOUND_STYLES)}),
|
|
8457
8457
|
React.createElement("main", {
|
|
8458
8458
|
className: "farm-default-not-found",
|
|
8459
8459
|
"aria-labelledby": "farm-default-not-found-title",
|
|
@@ -8613,7 +8613,7 @@ ${_optionalChain([config, 'access', _230 => _230.agent, 'optionalAccess', _231 =
|
|
|
8613
8613
|
// to the build.
|
|
8614
8614
|
const farmNoindexPreview = resolveFarmPreviewDeployment(
|
|
8615
8615
|
globalThis.process?.env,
|
|
8616
|
-
${JSON.stringify(
|
|
8616
|
+
${JSON.stringify(_chunkTMVVBK5Scjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env))},
|
|
8617
8617
|
);` : ""}
|
|
8618
8618
|
const farmMdxComponents = ${mdxComponentsPath ? `(FarmMdxComponentsModule.components || Reflect.get(FarmMdxComponentsModule, "default") || {})` : `(configuredFarmMdxComponents && typeof configuredFarmMdxComponents === "object" ? configuredFarmMdxComponents : {})`};
|
|
8619
8619
|
const farmObservabilityConfig = farmUserConfig?.observability ?? ${JSON.stringify(
|
|
@@ -8744,7 +8744,7 @@ const farmDocsHandler = ${_optionalChain([config, 'access', _239 => _239.docs, '
|
|
|
8744
8744
|
registerMCPServer: registerFarmMCPServer,
|
|
8745
8745
|
// A page built with this keeps its HTML string, so the preload budget and the response
|
|
8746
8746
|
// writer use it instead of reading and re-encoding the body. Older adapters ignore it.
|
|
8747
|
-
createHtmlResponse: farmOwnedHtmlResponse,${
|
|
8747
|
+
createHtmlResponse: farmOwnedHtmlResponse,${_chunkWMJQNVKXcjs.farmDocsAdapterServesGuardedPages.call(void 0, config.docs) ? `
|
|
8748
8748
|
// The adapter keeps pages a path guard covers off search, llms.txt, the sitemap and MCP. It
|
|
8749
8749
|
// asks about any path its own content lists, so the guards decide here, not a page list.
|
|
8750
8750
|
isPathGuarded: (pathname) =>
|
|
@@ -8805,12 +8805,12 @@ const farmDeploymentCookiePath = ${JSON.stringify(config.basePath || "/")};
|
|
|
8805
8805
|
// runtime request.
|
|
8806
8806
|
const farmRuntimeErrorSlot = Symbol("farm.runtime.error.slot");
|
|
8807
8807
|
const farmOpenAPIReference = ${JSON.stringify(openAPIReference)};
|
|
8808
|
-
${_optionalChain([config, 'access', _243 => _243.agent, 'optionalAccess', _244 => _244.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(
|
|
8808
|
+
${_optionalChain([config, 'access', _243 => _243.agent, 'optionalAccess', _244 => _244.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkWILPJVQEcjs.resolveFarmApiCatalogInput.call(void 0, config))};
|
|
8809
8809
|
` : ""}${_optionalChain([config, 'access', _245 => _245.agent, 'optionalAccess', _246 => _246.manifest]) !== false ? `const farmAppManifestInput = ${JSON.stringify(
|
|
8810
|
-
|
|
8810
|
+
_chunkWILPJVQEcjs.resolveFarmAppManifestInput.call(void 0, config, {
|
|
8811
8811
|
build: config.deploymentId,
|
|
8812
|
-
packages:
|
|
8813
|
-
webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ?
|
|
8812
|
+
packages: _chunkDTNWLRRFcjs.resolveFarmAppPackages.call(void 0, config.root),
|
|
8813
|
+
webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkDTNWLRRFcjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
|
|
8814
8814
|
})
|
|
8815
8815
|
)};
|
|
8816
8816
|
${servesDefaultMCP ? "farmAppManifestInput.defaultMCP = getFarmDefaultMCPServer;\n" : ""}// A guard written for an MCP server's path keeps its tools out of the public view.
|
|
@@ -9591,7 +9591,7 @@ function peelFarmDocumentPrefix(markup) {
|
|
|
9591
9591
|
let inner = markup.replace(/^\\s+/, "");
|
|
9592
9592
|
let hoisted = "";
|
|
9593
9593
|
const wrapper = /^<div\\b[^>]*style=["']display\\s*:\\s*contents;?\\s*["'][^>]*>/i;
|
|
9594
|
-
const hoistable = /${
|
|
9594
|
+
const hoistable = /${_chunk6ZFGWB75cjs.HOISTED_HEAD_ELEMENT.source}/i;
|
|
9595
9595
|
let match;
|
|
9596
9596
|
while ((match = wrapper.exec(inner) || hoistable.exec(inner))) {
|
|
9597
9597
|
if (!/^<div/i.test(match[0])) hoisted += match[0];
|
|
@@ -9620,7 +9620,7 @@ function opensFarmFullDocument(markup) {
|
|
|
9620
9620
|
// them: its own head takes them. Matches the dev renderer's takeFarmHoistedHead.
|
|
9621
9621
|
function takeFarmHoistedHead(markup) {
|
|
9622
9622
|
if (opensFarmFullDocument(markup)) return { head: "", body: markup };
|
|
9623
|
-
const hoistable = /${
|
|
9623
|
+
const hoistable = /${_chunk6ZFGWB75cjs.HOISTED_HEAD_ELEMENT.source}/i;
|
|
9624
9624
|
let head = "";
|
|
9625
9625
|
let body = markup;
|
|
9626
9626
|
let match;
|
|
@@ -10150,7 +10150,7 @@ function createFarmAgentRobotsResponse(request) {
|
|
|
10150
10150
|
// its nearest layout's.
|
|
10151
10151
|
const farmAgentGuardedPages = new Set(${JSON.stringify(
|
|
10152
10152
|
pageRoutes.map((route) => route.pattern).filter(
|
|
10153
|
-
(pattern) => !pattern.includes("[") &&
|
|
10153
|
+
(pattern) => !pattern.includes("[") && _chunk6ZFGWB75cjs.farmPathGuardCoversPage.call(void 0,
|
|
10154
10154
|
{
|
|
10155
10155
|
config: { middleware: config.middleware, integrations: config.integrations },
|
|
10156
10156
|
middlewareRoutes
|
|
@@ -10205,7 +10205,7 @@ ${servesDefaultMCP ? `// agent.mcp: the default read-only MCP server at /mcp, as
|
|
|
10205
10205
|
// aside for a page route that answers /mcp and for any MCP server published or
|
|
10206
10206
|
// registered at runtime, such as the docs engine's.
|
|
10207
10207
|
const farmDefaultMCPServer = ${JSON.stringify(
|
|
10208
|
-
_chunkYRXPDKMMcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root),
|
|
10208
|
+
_chunkYRXPDKMMcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunkXLOORES5cjs.FARM_VERSION)
|
|
10209
10209
|
)};
|
|
10210
10210
|
let farmDefaultMCPRouteFree;
|
|
10211
10211
|
function getFarmDefaultMCPServer() {
|
|
@@ -10399,7 +10399,7 @@ ${edgeMiddlewareFilePaths.length > 0 ? `
|
|
|
10399
10399
|
// middleware guards is never prerendered. Read once: Nitro's prerender worker sets the variable.
|
|
10400
10400
|
const farmEdgeMiddlewareFiles = new Set(${JSON.stringify(edgeMiddlewareFilePaths)});
|
|
10401
10401
|
const farmPrerendering =
|
|
10402
|
-
typeof process !== "undefined" && process.env?.${
|
|
10402
|
+
typeof process !== "undefined" && process.env?.${_chunkPXXG5BIDcjs.FARM_PRERENDER_ENV} === "1";
|
|
10403
10403
|
` : ""}
|
|
10404
10404
|
const farmMiddlewareRunner = ${hasMiddlewareRuntime ? `createProductionMiddlewareRunner({
|
|
10405
10405
|
config: farmMiddlewareConfig,
|
|
@@ -10655,7 +10655,7 @@ ${hasInfraAnalyticsRuntime ? `
|
|
|
10655
10655
|
// endpoints, Markdown mirrors, and docs pages have no app route pattern, so they are
|
|
10656
10656
|
// labeled here; route.pattern keeps meaning the matched app route for plugins.
|
|
10657
10657
|
const farmBuiltInRoutePaths = new Set(${JSON.stringify(
|
|
10658
|
-
|
|
10658
|
+
_chunkWILPJVQEcjs.listFarmBuiltInRoutePaths.call(void 0, {
|
|
10659
10659
|
agent: {
|
|
10660
10660
|
...config.agent,
|
|
10661
10661
|
aiCatalog: servesAiCatalog,
|
|
@@ -11432,7 +11432,7 @@ ${hasServerRuntimeIntegrations ? `
|
|
|
11432
11432
|
// agent.manifest: /.well-known/farmjs.json (and 0.1.34's /.well-known/farmjs), the app's
|
|
11433
11433
|
// public manifest, the same document for every request.
|
|
11434
11434
|
if (
|
|
11435
|
-
[${JSON.stringify(
|
|
11435
|
+
[${JSON.stringify(_chunkWILPJVQEcjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunkWILPJVQEcjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
|
|
11436
11436
|
normalizeRuntimePath(routePathname),
|
|
11437
11437
|
)
|
|
11438
11438
|
) {
|
|
@@ -11444,7 +11444,7 @@ ${hasServerRuntimeIntegrations ? `
|
|
|
11444
11444
|
` : ""}
|
|
11445
11445
|
${_optionalChain([config, 'access', _277 => _277.agent, 'optionalAccess', _278 => _278.apiCatalog]) ? `
|
|
11446
11446
|
// agent.apiCatalog: list the OpenAPI and MCP surfaces at the RFC 9727 path.
|
|
11447
|
-
if (normalizeRuntimePath(routePathname) === ${JSON.stringify(
|
|
11447
|
+
if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkWILPJVQEcjs.FARM_API_CATALOG_PATH)}) {
|
|
11448
11448
|
return applyProductionMiddlewareHeaders(
|
|
11449
11449
|
createFarmApiCatalogResponse(request.method, farmApiCatalogInput, request),
|
|
11450
11450
|
middlewareHeaders,
|
|
@@ -13253,9 +13253,9 @@ function getPhysicalPrerenderBypassReason(options) {
|
|
|
13253
13253
|
if (rewriteSources.some((source) => middlewarePatternMatches(source, pathname))) {
|
|
13254
13254
|
return "rewrite";
|
|
13255
13255
|
}
|
|
13256
|
-
if (
|
|
13257
|
-
if (
|
|
13258
|
-
if (
|
|
13256
|
+
if (_chunk6ZFGWB75cjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
|
|
13257
|
+
if (_chunk6ZFGWB75cjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
|
|
13258
|
+
if (_chunkPSNYVBWCcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
|
|
13259
13259
|
if (farmServerRuntimePluginsMayHandlePath(config, pathname)) return "server runtime plugin";
|
|
13260
13260
|
const manifestEntry = getManifestPageEntry(routeRuntimeManifest, pathname);
|
|
13261
13261
|
if (_optionalChain([manifestEntry, 'optionalAccess', _298 => _298.rendering]) === "dynamic") return "dynamic runtime manifest";
|
|
@@ -13279,7 +13279,7 @@ async function getFarmDocsPrerenderPages(config, root, preset) {
|
|
|
13279
13279
|
);
|
|
13280
13280
|
return [];
|
|
13281
13281
|
}
|
|
13282
|
-
if (!
|
|
13282
|
+
if (!_chunkWMJQNVKXcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
|
|
13283
13283
|
const { pages: pages2, originDependent } = _chunk6D3CJFNUcjs.listFarmDocsBuiltInPrerenderPages.call(void 0, config.docs, {
|
|
13284
13284
|
root,
|
|
13285
13285
|
srcDir: config.srcDir
|
|
@@ -13297,7 +13297,7 @@ async function getFarmDocsPrerenderPages(config, root, preset) {
|
|
|
13297
13297
|
);
|
|
13298
13298
|
return [];
|
|
13299
13299
|
}
|
|
13300
|
-
const pages = await
|
|
13300
|
+
const pages = await _chunkWMJQNVKXcjs.listFarmDocsAdapterPages.call(void 0, config.docs, { root, srcDir: config.srcDir });
|
|
13301
13301
|
if (!pages) {
|
|
13302
13302
|
_chunkGC5ROI3Acjs.logger.warn(
|
|
13303
13303
|
`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.`
|
|
@@ -13311,10 +13311,10 @@ async function listFarmDocsAnalyticsPages(config, root, preset) {
|
|
|
13311
13311
|
return [];
|
|
13312
13312
|
}
|
|
13313
13313
|
try {
|
|
13314
|
-
return await
|
|
13314
|
+
return await _chunkWMJQNVKXcjs.listFarmDocsPagePaths.call(void 0, config.docs, {
|
|
13315
13315
|
root,
|
|
13316
13316
|
srcDir: config.srcDir,
|
|
13317
|
-
adapter: _chunk67MZTLTFcjs.isReactRenderer.call(void 0, config.renderer) &&
|
|
13317
|
+
adapter: _chunk67MZTLTFcjs.isReactRenderer.call(void 0, config.renderer) && _chunkWMJQNVKXcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)
|
|
13318
13318
|
});
|
|
13319
13319
|
} catch (error) {
|
|
13320
13320
|
_chunkGC5ROI3Acjs.logger.warn(
|
|
@@ -13340,10 +13340,10 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
|
|
|
13340
13340
|
const nitroBuilder = nitroBuilderResult.value;
|
|
13341
13341
|
const isVercel = preset === "vercel";
|
|
13342
13342
|
const isCloudflareWorker = preset === "cloudflare-module";
|
|
13343
|
-
const outputDir =
|
|
13343
|
+
const outputDir = _chunkPSNYVBWCcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
13344
13344
|
const runtimeServerOutputDir = isVercel ? _path2.default.join(outputDir, "functions", "__nitro.func") : _path2.default.join(outputDir, "server");
|
|
13345
13345
|
const ssrOutputDir = _path2.default.join(root, distDir, "ssr");
|
|
13346
|
-
const imageRuntime =
|
|
13346
|
+
const imageRuntime = _chunkDTNWLRRFcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
|
|
13347
13347
|
const hasGeneratedMetadataImages = Array.from(routeManager.getMetadataImages().values()).some(
|
|
13348
13348
|
(image) => image.sourceType === "module"
|
|
13349
13349
|
);
|
|
@@ -13399,7 +13399,7 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
|
|
|
13399
13399
|
const edgeGuardedPrerenderRoutes = [];
|
|
13400
13400
|
const addPrerenderRoute = (pathname) => {
|
|
13401
13401
|
prerenderRoutes.push(pathname);
|
|
13402
|
-
if (
|
|
13402
|
+
if (_chunk6ZFGWB75cjs.appMiddlewareMayHandlePath.call(void 0, edgeMiddlewareRoutes, pathname)) {
|
|
13403
13403
|
edgeGuardedPrerenderRoutes.push(pathname);
|
|
13404
13404
|
}
|
|
13405
13405
|
};
|
|
@@ -14157,13 +14157,13 @@ function toFarmNodeResponse(request, response) {
|
|
|
14157
14157
|
}
|
|
14158
14158
|
if (prerenderRoutes.length > 0) {
|
|
14159
14159
|
_chunkGC5ROI3Acjs.logger.info(`\u{1F4C4} Pre-rendering ${prerenderRoutes.length} SSG page(s)`);
|
|
14160
|
-
const previousPrerender = process.env[
|
|
14161
|
-
process.env[
|
|
14160
|
+
const previousPrerender = process.env[_chunkPXXG5BIDcjs.FARM_PRERENDER_ENV];
|
|
14161
|
+
process.env[_chunkPXXG5BIDcjs.FARM_PRERENDER_ENV] = "1";
|
|
14162
14162
|
try {
|
|
14163
14163
|
await nitroBuilder.prerender(nitroInstance);
|
|
14164
14164
|
} finally {
|
|
14165
|
-
if (previousPrerender === void 0) delete process.env[
|
|
14166
|
-
else process.env[
|
|
14165
|
+
if (previousPrerender === void 0) delete process.env[_chunkPXXG5BIDcjs.FARM_PRERENDER_ENV];
|
|
14166
|
+
else process.env[_chunkPXXG5BIDcjs.FARM_PRERENDER_ENV] = previousPrerender;
|
|
14167
14167
|
}
|
|
14168
14168
|
}
|
|
14169
14169
|
const sharpRuntimeStagePromise = imageRuntime === "node" ? stageSharpRuntime(config, root, distDir, fs5, preset) : Promise.resolve(null);
|
|
@@ -14380,7 +14380,7 @@ async function postProcessVercelOutput(root, outputDir, fs5, config, farmWorkflo
|
|
|
14380
14380
|
config.basePath
|
|
14381
14381
|
);
|
|
14382
14382
|
const edgeMiddlewareRoutes = edgeMiddleware.middlewareRoutes.filter(
|
|
14383
|
-
(route) => edgeMiddleware.guardedPages.some((pathname) =>
|
|
14383
|
+
(route) => edgeMiddleware.guardedPages.some((pathname) => _chunk6ZFGWB75cjs.appMiddlewareMayHandlePath.call(void 0, [route], pathname))
|
|
14384
14384
|
);
|
|
14385
14385
|
if (edgeMiddlewareRoutes.length > 0) {
|
|
14386
14386
|
await writeFarmVercelEdgeMiddlewareFunction({
|
|
@@ -14518,7 +14518,7 @@ async function stageSharpRuntime(config, root, distDir, fs5, preset) {
|
|
|
14518
14518
|
try {
|
|
14519
14519
|
await copyPackage("sharp", sharpRequire);
|
|
14520
14520
|
if (!copiedPackages.has("sharp")) {
|
|
14521
|
-
throw new Error(`Farm image optimization requires sharp. ${
|
|
14521
|
+
throw new Error(`Farm image optimization requires sharp. ${_chunkDTNWLRRFcjs.SHARP_INSTALL_HINT}`);
|
|
14522
14522
|
}
|
|
14523
14523
|
} catch (error) {
|
|
14524
14524
|
await fs5.rm(stageDir, { recursive: true, force: true });
|
|
@@ -14751,7 +14751,7 @@ async function createFarmProjectModuleSsrEnvironment() {
|
|
|
14751
14751
|
// src/build/index.ts
|
|
14752
14752
|
async function build(config, options = {}) {
|
|
14753
14753
|
return _chunkNG2EZ6QScjs.withProductionNodeEnv.call(void 0,
|
|
14754
|
-
() =>
|
|
14754
|
+
() => _chunkQP4GYVRRcjs.withPackageClientBoundaryCache.call(void 0, () => buildWithProductionNodeEnv(config, options))
|
|
14755
14755
|
);
|
|
14756
14756
|
}
|
|
14757
14757
|
function createBuildTargetBaseline(config) {
|
|
@@ -14762,7 +14762,7 @@ function createBuildTargetBaseline(config) {
|
|
|
14762
14762
|
preset,
|
|
14763
14763
|
distDir,
|
|
14764
14764
|
outputDir,
|
|
14765
|
-
outputWasDerived: outputDir ===
|
|
14765
|
+
outputWasDerived: outputDir === _chunkPSNYVBWCcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
|
|
14766
14766
|
};
|
|
14767
14767
|
}
|
|
14768
14768
|
function resolveBuildTargets(config, options, baseline) {
|
|
@@ -14771,8 +14771,8 @@ function resolveBuildTargets(config, options, baseline) {
|
|
|
14771
14771
|
const distDir = config.distDir || ".farm";
|
|
14772
14772
|
const outputWasReplaced = config.deploy.outputDir !== baseline.outputDir;
|
|
14773
14773
|
const shouldRefreshDerivedOutput = baseline.outputWasDerived && !outputWasReplaced && (preset !== baseline.preset || distDir !== baseline.distDir);
|
|
14774
|
-
const deployTarget = preset === config.deploy.preset ? config.deploy.target :
|
|
14775
|
-
const outputDir = shouldRefreshDerivedOutput ?
|
|
14774
|
+
const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkPSNYVBWCcjs.getDeployTargetForPreset.call(void 0, preset);
|
|
14775
|
+
const outputDir = shouldRefreshDerivedOutput ? _chunkPSNYVBWCcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
|
|
14776
14776
|
return {
|
|
14777
14777
|
root,
|
|
14778
14778
|
preset,
|
|
@@ -14780,7 +14780,7 @@ function resolveBuildTargets(config, options, baseline) {
|
|
|
14780
14780
|
distDir,
|
|
14781
14781
|
deployTarget,
|
|
14782
14782
|
outputDir,
|
|
14783
|
-
deployOutputDir:
|
|
14783
|
+
deployOutputDir: _chunkPSNYVBWCcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
|
|
14784
14784
|
};
|
|
14785
14785
|
}
|
|
14786
14786
|
async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
@@ -14788,7 +14788,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
14788
14788
|
const targetBaseline = createBuildTargetBaseline(config);
|
|
14789
14789
|
let targets;
|
|
14790
14790
|
const productionViteResultPromise = options.universal === false ? void 0 : Promise.allSettled([Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkMF3IA2AWcjs.loadFarmProductionVite.call(void 0, ))))]);
|
|
14791
|
-
const pluginManager = new (0,
|
|
14791
|
+
const pluginManager = new (0, _chunk22T75EMLcjs.PluginManager)({
|
|
14792
14792
|
config,
|
|
14793
14793
|
isDev: false,
|
|
14794
14794
|
isProd: true
|
|
@@ -14817,7 +14817,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
14817
14817
|
};
|
|
14818
14818
|
config = {
|
|
14819
14819
|
...config,
|
|
14820
|
-
images:
|
|
14820
|
+
images: _chunkDTNWLRRFcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
|
|
14821
14821
|
root: targets.root,
|
|
14822
14822
|
preset: targets.preset
|
|
14823
14823
|
})
|
|
@@ -14825,7 +14825,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
14825
14825
|
if (_optionalChain([config, 'access', _353 => _353.docs, 'optionalAccess', _354 => _354.enabled])) await _chunkNDOE76QCcjs.loadFarmDocsEngine.call(void 0, );
|
|
14826
14826
|
pluginManager.updateContext({ config });
|
|
14827
14827
|
const { root, preset, srcDir, distDir, deployOutputDir } = targets;
|
|
14828
|
-
|
|
14828
|
+
_chunkQP4GYVRRcjs.usePackageClientBoundaryCacheFile.call(void 0, _chunkQP4GYVRRcjs.resolvePackageClientBoundaryCacheFile.call(void 0, root, distDir));
|
|
14829
14829
|
_chunkGC5ROI3Acjs.logger.info(`\u{1F69C} Building Farm.js application with preset: ${preset}...`);
|
|
14830
14830
|
await pluginManager.setupPlugins();
|
|
14831
14831
|
await pluginManager.runHookParallel("beforeBundle", {
|
|
@@ -14846,7 +14846,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
14846
14846
|
root,
|
|
14847
14847
|
rendererBuild.signal
|
|
14848
14848
|
);
|
|
14849
|
-
const farmApp =
|
|
14849
|
+
const farmApp = _chunkDTNWLRRFcjs.createFarmApp.call(void 0, config, projectModuleServer);
|
|
14850
14850
|
if (options.universal !== false) farmApp.getRouteManager().keepBuildSourceSnapshot();
|
|
14851
14851
|
await farmApp.initialize();
|
|
14852
14852
|
const routeManager = farmApp.getRouteManager();
|
|
@@ -14954,7 +14954,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
14954
14954
|
ssr: true,
|
|
14955
14955
|
buildLifetime
|
|
14956
14956
|
});
|
|
14957
|
-
const viteConfig =
|
|
14957
|
+
const viteConfig = _chunkDTNWLRRFcjs.mergeFarmViteConfig.call(void 0,
|
|
14958
14958
|
{
|
|
14959
14959
|
root,
|
|
14960
14960
|
appType: "custom",
|
|
@@ -14966,12 +14966,12 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
14966
14966
|
},
|
|
14967
14967
|
plugins: [
|
|
14968
14968
|
...rendererVitePlugins,
|
|
14969
|
-
|
|
14969
|
+
_chunkDTNWLRRFcjs.farmFontImportsPlugin.call(void 0, {
|
|
14970
14970
|
root,
|
|
14971
14971
|
basePath: config.basePath,
|
|
14972
14972
|
publicDir: config.publicDir
|
|
14973
14973
|
}),
|
|
14974
|
-
|
|
14974
|
+
_chunkQP4GYVRRcjs.farmEnvironmentFunctionsPlugin.call(void 0, ),
|
|
14975
14975
|
// Route modules load here at build time (rendering config, prerendering): `server-only`
|
|
14976
14976
|
// resolves as it does in the server build. Module-entry packages load pre-bundled, as in
|
|
14977
14977
|
// `farm dev`: unbundled, lucide-react alone is ~1,750 modules through the module runner,
|
|
@@ -14986,7 +14986,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
14986
14986
|
hmr: false
|
|
14987
14987
|
},
|
|
14988
14988
|
resolve: {
|
|
14989
|
-
alias:
|
|
14989
|
+
alias: _chunkDTNWLRRFcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
|
|
14990
14990
|
dedupe: [...config.renderer.dedupe || []]
|
|
14991
14991
|
},
|
|
14992
14992
|
optimizeDeps: {
|
|
@@ -15041,7 +15041,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
|
|
|
15041
15041
|
farmPlugin,
|
|
15042
15042
|
farmServerOnlyEntriesPlugin
|
|
15043
15043
|
} = await import("./vite.cjs");
|
|
15044
|
-
const { PluginManager: PluginManager2 } = await import("./plugin-
|
|
15044
|
+
const { PluginManager: PluginManager2 } = await import("./plugin-YXPIS3XX.cjs");
|
|
15045
15045
|
const pluginManager = new PluginManager2({
|
|
15046
15046
|
config,
|
|
15047
15047
|
isDev: false,
|
|
@@ -15062,14 +15062,14 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
|
|
|
15062
15062
|
farmServerOnlyEntriesPlugin({ distDir: config.distDir || ".farm" }),
|
|
15063
15063
|
farmIslandContainersPlugin(config),
|
|
15064
15064
|
farmPlugin(config, pluginManager),
|
|
15065
|
-
|
|
15065
|
+
_chunkQP4GYVRRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
|
|
15066
15066
|
],
|
|
15067
15067
|
mode: "production"
|
|
15068
15068
|
});
|
|
15069
15069
|
}
|
|
15070
15070
|
async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
|
|
15071
15071
|
const { farmI18nClientBridgePlugin, farmIslandContainersPlugin, farmPlugin } = await import("./vite.cjs");
|
|
15072
|
-
const { PluginManager: PluginManager2 } = await import("./plugin-
|
|
15072
|
+
const { PluginManager: PluginManager2 } = await import("./plugin-YXPIS3XX.cjs");
|
|
15073
15073
|
const pluginManager = new PluginManager2({
|
|
15074
15074
|
config,
|
|
15075
15075
|
isDev: false,
|
|
@@ -15096,7 +15096,7 @@ async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
|
|
|
15096
15096
|
farmI18nClientBridgePlugin(),
|
|
15097
15097
|
farmIslandContainersPlugin(config),
|
|
15098
15098
|
farmPlugin(config, pluginManager),
|
|
15099
|
-
|
|
15099
|
+
_chunkQP4GYVRRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
|
|
15100
15100
|
],
|
|
15101
15101
|
mode: "production"
|
|
15102
15102
|
});
|
|
@@ -15124,7 +15124,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
|
|
|
15124
15124
|
if (pluginManager) {
|
|
15125
15125
|
nitroConfig = await pluginManager.runHookSerial("beforeNitroBuild", nitroConfig);
|
|
15126
15126
|
}
|
|
15127
|
-
const outputDir =
|
|
15127
|
+
const outputDir = _chunkPSNYVBWCcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
15128
15128
|
const serverOutputDir = _path2.default.join(outputDir, "server");
|
|
15129
15129
|
const publicOutputDir = _path2.default.join(outputDir, "public");
|
|
15130
15130
|
const { mkdir, cp } = await import("fs/promises");
|
|
@@ -15195,7 +15195,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
|
|
|
15195
15195
|
root,
|
|
15196
15196
|
preset,
|
|
15197
15197
|
distDir,
|
|
15198
|
-
outputDir:
|
|
15198
|
+
outputDir: _chunkPSNYVBWCcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
|
|
15199
15199
|
});
|
|
15200
15200
|
}
|
|
15201
15201
|
}
|