@farm.js/core 0.1.40 → 0.1.41
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-XNF4JqHw.d.mts → agent-mcp-BOqIxJLI.d.mts} +8 -2
- package/dist/{agent-mcp-DRlXq3lM.d.ts → agent-mcp-D0eZKfci.d.ts} +8 -2
- package/dist/agent-runtime.d.mts +2 -2
- package/dist/agent-runtime.d.ts +2 -2
- package/dist/api/client.cjs +3 -3
- package/dist/api/client.mjs +2 -2
- package/dist/api/route-manager.cjs +8 -8
- package/dist/api/route-manager.d.mts +4 -4
- package/dist/api/route-manager.d.ts +4 -4
- package/dist/api/route-manager.mjs +7 -7
- package/dist/api/runtime.cjs +6 -6
- package/dist/api/runtime.d.mts +3 -3
- package/dist/api/runtime.d.ts +3 -3
- package/dist/api/runtime.mjs +5 -5
- package/dist/api.cjs +10 -10
- package/dist/api.d.mts +4 -4
- package/dist/api.d.ts +4 -4
- package/dist/api.mjs +9 -9
- package/dist/{app-CWjCklhF.d.mts → app-CzTSMJaf.d.mts} +5 -5
- package/dist/{app-CDJHPqZn.d.ts → app-DM8e1z3G.d.ts} +5 -5
- package/dist/app-markdown.d.mts +3 -3
- package/dist/app-markdown.d.ts +3 -3
- package/dist/cache.cjs +3 -3
- package/dist/cache.mjs +2 -2
- package/dist/{chunk-UM3ZV5EP.mjs → chunk-24SP5TGU.mjs} +1 -1
- package/dist/{chunk-B6IMBBOS.cjs → chunk-25LPIZSX.cjs} +3 -3
- package/dist/{chunk-WW374SGU.mjs → chunk-26RUNDIR.mjs} +1 -1
- package/dist/{chunk-B77AUCBV.cjs → chunk-2FUIT2G2.cjs} +3 -3
- package/dist/{chunk-54QWHSNR.cjs → chunk-32TZ3QTP.cjs} +149 -155
- package/dist/{chunk-BPGO2IEP.mjs → chunk-35WS7P2V.mjs} +24 -126
- package/dist/{chunk-CKFK3Z2V.mjs → chunk-4C7KTKX7.mjs} +1 -1
- package/dist/{chunk-MNUSIXGS.mjs → chunk-4KQDHTWX.mjs} +1 -1
- package/dist/{chunk-DATEWH3W.cjs → chunk-6IZWX6ES.cjs} +22 -8
- package/dist/{chunk-Y6LRPO2K.mjs → chunk-6LVRDOAW.mjs} +19 -5
- package/dist/{chunk-UMQAK3KP.cjs → chunk-6MVFHNYZ.cjs} +2 -2
- package/dist/{chunk-OLQ73ZO5.mjs → chunk-6PKXK4TY.mjs} +3 -3
- package/dist/{chunk-PYQ3ZG4Z.mjs → chunk-724JLMS4.mjs} +4 -4
- package/dist/{chunk-PNCM5MFD.mjs → chunk-7UEEHAW7.mjs} +1 -1
- package/dist/{chunk-7VAJSSPG.mjs → chunk-B2GSRB3P.mjs} +1 -1
- package/dist/{chunk-ZKVJYQPO.mjs → chunk-BGGWKZ2V.mjs} +11 -10
- package/dist/{chunk-JXB6DVCO.mjs → chunk-BPNRQ5BA.mjs} +1 -1
- package/dist/{chunk-GNVEJUT5.cjs → chunk-C5KVWHIH.cjs} +21 -21
- package/dist/chunk-COABSY3U.mjs +196 -0
- package/dist/{chunk-Y2GNNXGV.cjs → chunk-D64OPY6A.cjs} +5 -5
- package/dist/{chunk-DKU6NXRK.cjs → chunk-EH3464KF.cjs} +1 -1
- package/dist/{chunk-Y4QVEU67.mjs → chunk-ENOBPDKZ.mjs} +2 -2
- package/dist/{chunk-FLZ4H25A.cjs → chunk-EX4MKHXN.cjs} +6 -6
- package/dist/{chunk-I64GEPOB.cjs → chunk-FEYQCYT7.cjs} +3 -3
- package/dist/{chunk-AXB5P7BK.mjs → chunk-FIAPD365.mjs} +1 -1
- package/dist/{chunk-FCOLU5P6.mjs → chunk-FJGIVDA5.mjs} +38 -15
- package/dist/{chunk-7FHZ3E6D.cjs → chunk-GB7LDGY5.cjs} +2 -2
- package/dist/{chunk-45UZKX2J.mjs → chunk-HJ64F4GS.mjs} +2 -2
- package/dist/{chunk-IRYK4Z5M.cjs → chunk-I5MG3TKE.cjs} +2 -2
- package/dist/{chunk-YR2P74F7.cjs → chunk-IFWSR7YZ.cjs} +2 -2
- package/dist/{chunk-5E65AL7P.mjs → chunk-IN6RCKLL.mjs} +5 -4
- package/dist/{chunk-EORXKFLR.cjs → chunk-JEIG3EWE.cjs} +1 -1
- package/dist/{chunk-TAKG7ZCD.cjs → chunk-JOTUZIM4.cjs} +14 -14
- package/dist/{chunk-TFX4RTH2.mjs → chunk-JOW4HDJO.mjs} +1 -1
- package/dist/{chunk-H44XGLFU.cjs → chunk-L6A26QT5.cjs} +9 -9
- package/dist/{chunk-EW4MEVLE.cjs → chunk-L6HYACBE.cjs} +7 -7
- package/dist/{chunk-OZN4XL6L.cjs → chunk-LIZTLA5F.cjs} +7 -6
- package/dist/{chunk-62DY5GKS.mjs → chunk-LLUA2LSC.mjs} +2 -2
- package/dist/{chunk-LDPKAYVS.cjs → chunk-LYIZHJTK.cjs} +2 -2
- package/dist/{chunk-2DMWQWNJ.mjs → chunk-MEASUNVY.mjs} +1 -1
- package/dist/{chunk-T4II4MMW.mjs → chunk-MHHCLYXU.mjs} +1 -1
- package/dist/{chunk-SHFXCE5A.cjs → chunk-MHN4UR5U.cjs} +4 -4
- package/dist/{chunk-5JEC43MQ.cjs → chunk-MN4TQJ3W.cjs} +9 -9
- package/dist/{chunk-5XS5NCVM.cjs → chunk-MY5PZYAD.cjs} +4 -4
- package/dist/{chunk-2JG2LJDI.cjs → chunk-NBPNUQYO.cjs} +2 -2
- package/dist/{chunk-4XO5GSD6.cjs → chunk-NFG4PUPI.cjs} +2 -2
- package/dist/{chunk-5LL6TKII.mjs → chunk-O7USYJ4U.mjs} +1 -1
- package/dist/{chunk-GKQL726H.cjs → chunk-OQ4YXWH4.cjs} +74 -73
- package/dist/{chunk-VBN3UAPQ.mjs → chunk-P2UJF4SS.mjs} +1 -1
- package/dist/{chunk-PGW7HZE2.cjs → chunk-PN676AZF.cjs} +6 -6
- package/dist/{chunk-IMQO6ZUU.mjs → chunk-PYHPXPSW.mjs} +2 -2
- package/dist/{chunk-KK22JPQM.cjs → chunk-QEILRWVV.cjs} +30 -132
- package/dist/{chunk-UXMIFB44.cjs → chunk-QIBP5EFA.cjs} +5 -5
- package/dist/{chunk-XKIUHXHW.mjs → chunk-R65GCA6A.mjs} +45 -51
- package/dist/{chunk-EGCT3AHF.cjs → chunk-ROQ4C4LJ.cjs} +121 -98
- package/dist/{chunk-QJM7A4CR.cjs → chunk-S7MTDRYA.cjs} +10 -10
- package/dist/{chunk-ACLPN56I.mjs → chunk-SGB4IW7K.mjs} +1 -1
- package/dist/{chunk-T6DLMX5V.mjs → chunk-SVPGWJZF.mjs} +3 -3
- package/dist/{chunk-I63UCMXW.mjs → chunk-ULQOP5UI.mjs} +2 -2
- package/dist/{chunk-HBEBV7OZ.mjs → chunk-UQUEANTY.mjs} +1 -1
- package/dist/chunk-VHRS3MCW.cjs +196 -0
- package/dist/{chunk-H56MQYEG.mjs → chunk-VLPII2JJ.mjs} +1 -1
- package/dist/{chunk-WCWV25PG.mjs → chunk-VTBXE6QG.mjs} +2 -2
- package/dist/{chunk-E55H6UKH.cjs → chunk-WLHA5USH.cjs} +9 -9
- package/dist/{chunk-YJBWB6GF.mjs → chunk-WMBRZI5V.mjs} +1 -1
- package/dist/{chunk-AGR7F3LA.cjs → chunk-WROEFVNO.cjs} +3 -3
- package/dist/{chunk-CA62IQY3.cjs → chunk-WU7ZS3EM.cjs} +2 -2
- package/dist/{chunk-ZOABCQGT.mjs → chunk-X3NGFVRF.mjs} +37 -22
- package/dist/{chunk-XJAEZCT6.mjs → chunk-XUC6CFLE.mjs} +1 -1
- package/dist/{chunk-6ILGLCXF.cjs → chunk-YWCYV7QC.cjs} +8 -8
- package/dist/{chunk-T36UJS3X.mjs → chunk-YYQVGKO5.mjs} +2 -2
- package/dist/{chunk-XVIEGKTT.cjs → chunk-ZTP3BJG6.cjs} +41 -26
- package/dist/{client-plugins-B_5QbNrp.d.mts → client-plugins-CkYwvDJ0.d.mts} +1 -1
- package/dist/{client-plugins-DgSfIWIF.d.ts → client-plugins-DfeKd0sD.d.ts} +1 -1
- package/dist/client-plugins.d.mts +2 -2
- package/dist/client-plugins.d.ts +2 -2
- package/dist/client.cjs +5 -5
- package/dist/client.d.mts +6 -6
- package/dist/client.d.ts +6 -6
- package/dist/client.mjs +4 -4
- package/dist/client.react-server.mjs +2 -0
- package/dist/config.d.mts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/{devtools-ANJ7JAPQ.cjs → devtools-2YHAJYH6.cjs} +5 -5
- package/dist/{devtools-VEQQDVHE.mjs → devtools-N3QLRIQU.mjs} +4 -4
- package/dist/docs.cjs +7 -7
- package/dist/docs.d.mts +3 -3
- package/dist/docs.d.ts +3 -3
- package/dist/docs.mjs +6 -6
- package/dist/headers.cjs +4 -4
- package/dist/headers.mjs +3 -3
- package/dist/image/server.d.mts +1 -1
- package/dist/image/server.d.ts +1 -1
- package/dist/image/sharp.d.mts +1 -1
- package/dist/image/sharp.d.ts +1 -1
- package/dist/{image-config-Duob7wER.d.ts → image-config-BpH1q5R8.d.mts} +4 -1
- package/dist/{image-config-Duob7wER.d.mts → image-config-BpH1q5R8.d.ts} +4 -1
- package/dist/image.d.mts +1 -1
- package/dist/image.d.ts +1 -1
- package/dist/index.cjs +39 -37
- package/dist/index.d.mts +15 -135
- package/dist/index.d.ts +15 -135
- package/dist/index.mjs +38 -36
- package/dist/integrations.d.mts +2 -2
- package/dist/integrations.d.ts +2 -2
- package/dist/internal/app-markdown-runtime.d.mts +3 -3
- package/dist/internal/app-markdown-runtime.d.ts +3 -3
- package/dist/internal/build-runtime.cjs +22 -22
- package/dist/internal/build-runtime.d.mts +4 -4
- package/dist/internal/build-runtime.d.ts +4 -4
- package/dist/internal/build-runtime.mjs +21 -21
- package/dist/internal/cli-runtime.cjs +12 -12
- package/dist/internal/cli-runtime.mjs +11 -11
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/compression-runtime.d.mts +2 -2
- package/dist/internal/compression-runtime.d.ts +2 -2
- package/dist/internal/config-runtime.cjs +5 -5
- package/dist/internal/config-runtime.d.mts +3 -3
- package/dist/internal/config-runtime.d.ts +3 -3
- package/dist/internal/config-runtime.mjs +4 -4
- package/dist/internal/docs-precompiled-runtime.cjs +3 -3
- package/dist/internal/docs-precompiled-runtime.mjs +2 -2
- package/dist/internal/infra-analytics-runtime.cjs +5 -5
- package/dist/internal/infra-analytics-runtime.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +20 -12
- package/dist/internal/production-runtime.d.mts +30 -10
- package/dist/internal/production-runtime.d.ts +30 -10
- package/dist/internal/production-runtime.mjs +20 -12
- package/dist/markdown.d.mts +2 -2
- package/dist/markdown.d.ts +2 -2
- package/dist/middleware.cjs +7 -7
- package/dist/middleware.d.mts +4 -4
- package/dist/middleware.d.ts +4 -4
- package/dist/middleware.mjs +6 -6
- package/dist/navigation.cjs +4 -4
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/navigation.mjs +3 -3
- package/dist/{nitro-NFG2LBRC.mjs → nitro-KDACKNHU.mjs} +1 -1
- package/dist/{nitro-S2QABUFA.cjs → nitro-NPGU6VBT.cjs} +2 -2
- package/dist/plugin.cjs +20 -20
- package/dist/plugin.d.mts +4 -3
- package/dist/plugin.d.ts +4 -3
- package/dist/plugin.mjs +19 -19
- package/dist/{production-runtime-j_WCfuwB.d.mts → production-runtime-BTkXQdYy.d.mts} +1 -1
- package/dist/{production-runtime-DfknD3g_.d.ts → production-runtime-DFC7pgbp.d.ts} +1 -1
- package/dist/query/client.cjs +2 -2
- package/dist/query/client.mjs +3 -3
- package/dist/{render-plan-ChUtsymc.d.mts → render-plan-5rFeWmk7.d.mts} +1 -1
- package/dist/{render-plan-CFIhcYYS.d.ts → render-plan-BoAK9xFC.d.ts} +1 -1
- package/dist/renderer-client.d.mts +4 -4
- package/dist/renderer-client.d.ts +4 -4
- package/dist/{request-F4HRwzSd.d.mts → request-BxBWigtl.d.mts} +1 -1
- package/dist/{request-RJvelT8L.d.ts → request-fciwmd3n.d.ts} +1 -1
- package/dist/request.cjs +3 -3
- package/dist/request.d.mts +3 -3
- package/dist/request.d.ts +3 -3
- package/dist/request.mjs +2 -2
- package/dist/{route-rendering-3a4fbNyC.d.mts → route-rendering-BCM1QzEf.d.mts} +1 -1
- package/dist/{route-rendering-D4coJ-kw.d.ts → route-rendering-BLZT0IP0.d.ts} +1 -1
- package/dist/{router-WLEW3Te1.d.ts → router-CkheNX3-.d.ts} +1 -1
- package/dist/{router-DqIssGRO.d.mts → router-DyZJWc1_.d.mts} +1 -1
- package/dist/routes.cjs +4 -4
- package/dist/routes.d.mts +2 -2
- package/dist/routes.d.ts +2 -2
- package/dist/routes.mjs +3 -3
- package/dist/{runtime-BrNdLOq9.d.ts → runtime-DfU4sKa5.d.ts} +1 -1
- package/dist/{runtime-CmE_j-js.d.mts → runtime-wexvUN5J.d.mts} +1 -1
- package/dist/server-fn.cjs +4 -4
- package/dist/server-fn.mjs +3 -3
- package/dist/server-plugins.cjs +5 -5
- package/dist/server-plugins.d.mts +3 -3
- package/dist/server-plugins.d.ts +3 -3
- package/dist/server-plugins.mjs +4 -4
- package/dist/server-query.cjs +5 -5
- package/dist/server-query.mjs +4 -4
- package/dist/server.cjs +45 -45
- package/dist/server.d.mts +10 -9
- package/dist/server.d.ts +10 -9
- package/dist/server.mjs +24 -24
- package/dist/{spa-router-D_0VXqPC.d.ts → spa-router-CcejECnG.d.ts} +2 -2
- package/dist/{spa-router-C41zjnFl.d.mts → spa-router-DgsMXqfX.d.mts} +2 -2
- package/dist/ssg-1FGaFISl.d.ts +184 -0
- package/dist/ssg-Bg4bMMhM.d.mts +184 -0
- package/dist/testing.cjs +11 -11
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.mjs +8 -8
- package/dist/theme/server.cjs +4 -4
- package/dist/theme/server.mjs +3 -3
- package/dist/{utils-BKWSe3S7.d.mts → utils-8wtTYiH4.d.mts} +1 -1
- package/dist/{utils-YYcWsOJp.d.ts → utils-Dxbh6Hgj.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +37 -21
- package/dist/vite.d.mts +41 -4
- package/dist/vite.d.ts +41 -4
- package/dist/vite.mjs +37 -21
- package/dist/workflows.cjs +2 -2
- package/dist/workflows.mjs +1 -1
- package/package.json +2 -1
- package/dist/chunk-DAO7JGTS.mjs +0 -73
- package/dist/chunk-SYQ3MOWW.cjs +0 -73
- package/dist/programmatic-routes-client-DcoxEaLe.d.mts +0 -55
- package/dist/programmatic-routes-client-DcoxEaLe.d.ts +0 -55
- /package/dist/{chunk-MOSYH4CY.mjs → chunk-FWCGUVVL.mjs} +0 -0
- /package/dist/{chunk-4A3YUB4D.cjs → chunk-KF6VDJH7.cjs} +0 -0
|
@@ -11,13 +11,13 @@ var _chunkCGR525MJcjs = require('./chunk-CGR525MJ.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkPN676AZFcjs = require('./chunk-PN676AZF.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkJOTUZIM4cjs = require('./chunk-JOTUZIM4.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -28,7 +28,7 @@ var _chunkTAKG7ZCDcjs = require('./chunk-TAKG7ZCD.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkMY5PZYADcjs = require('./chunk-MY5PZYAD.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
@@ -36,7 +36,7 @@ var _chunk5XS5NCVMcjs = require('./chunk-5XS5NCVM.cjs');
|
|
|
36
36
|
var _chunkMWWVKDW3cjs = require('./chunk-MWWVKDW3.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkIFWSR7YZcjs = require('./chunk-IFWSR7YZ.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
var _chunkIK6LVLKCcjs = require('./chunk-IK6LVLKC.cjs');
|
|
@@ -45,7 +45,7 @@ var _chunkIK6LVLKCcjs = require('./chunk-IK6LVLKC.cjs');
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _chunkEX4MKHXNcjs = require('./chunk-EX4MKHXN.cjs');
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
var _chunkKCMTCM6Icjs = require('./chunk-KCMTCM6I.cjs');
|
|
@@ -82,16 +82,16 @@ var _chunk2SJ4RQ6Pcjs = require('./chunk-2SJ4RQ6P.cjs');
|
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
|
|
85
|
-
var _chunkEGCT3AHFcjs = require('./chunk-EGCT3AHF.cjs');
|
|
86
85
|
|
|
86
|
+
var _chunkROQ4C4LJcjs = require('./chunk-ROQ4C4LJ.cjs');
|
|
87
87
|
|
|
88
|
-
var _chunk45QJHGZMcjs = require('./chunk-45QJHGZM.cjs');
|
|
89
88
|
|
|
89
|
+
var _chunk45QJHGZMcjs = require('./chunk-45QJHGZM.cjs');
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
|
|
94
|
-
var
|
|
94
|
+
var _chunkQEILRWVVcjs = require('./chunk-QEILRWVV.cjs');
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
@@ -107,7 +107,7 @@ var _chunkKK22JPQMcjs = require('./chunk-KK22JPQM.cjs');
|
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
var
|
|
110
|
+
var _chunkL6HYACBEcjs = require('./chunk-L6HYACBE.cjs');
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
@@ -145,7 +145,7 @@ var _chunkPSV6XKPOcjs = require('./chunk-PSV6XKPO.cjs');
|
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
|
|
148
|
-
var
|
|
148
|
+
var _chunk25LPIZSXcjs = require('./chunk-25LPIZSX.cjs');
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
var _chunkWBKEZXWEcjs = require('./chunk-WBKEZXWE.cjs');
|
|
@@ -171,7 +171,7 @@ var _chunkD4ROBNTKcjs = require('./chunk-D4ROBNTK.cjs');
|
|
|
171
171
|
|
|
172
172
|
|
|
173
173
|
|
|
174
|
-
var
|
|
174
|
+
var _chunkJEIG3EWEcjs = require('./chunk-JEIG3EWE.cjs');
|
|
175
175
|
|
|
176
176
|
|
|
177
177
|
var _chunkOILHPMFXcjs = require('./chunk-OILHPMFX.cjs');
|
|
@@ -187,7 +187,7 @@ var _chunkRHGK2JENcjs = require('./chunk-RHGK2JEN.cjs');
|
|
|
187
187
|
var _chunk6BWKJ6QScjs = require('./chunk-6BWKJ6QS.cjs');
|
|
188
188
|
|
|
189
189
|
|
|
190
|
-
var
|
|
190
|
+
var _chunkS7MTDRYAcjs = require('./chunk-S7MTDRYA.cjs');
|
|
191
191
|
|
|
192
192
|
|
|
193
193
|
var _chunkUFDAAQFXcjs = require('./chunk-UFDAAQFX.cjs');
|
|
@@ -214,13 +214,13 @@ var _chunk5QIKR7RRcjs = require('./chunk-5QIKR7RR.cjs');
|
|
|
214
214
|
var _chunkKNBBQHO2cjs = require('./chunk-KNBBQHO2.cjs');
|
|
215
215
|
|
|
216
216
|
|
|
217
|
-
var
|
|
217
|
+
var _chunkEH3464KFcjs = require('./chunk-EH3464KF.cjs');
|
|
218
218
|
|
|
219
219
|
|
|
220
220
|
var _chunkC5GUTBZKcjs = require('./chunk-C5GUTBZK.cjs');
|
|
221
221
|
|
|
222
222
|
|
|
223
|
-
var
|
|
223
|
+
var _chunkZTP3BJG6cjs = require('./chunk-ZTP3BJG6.cjs');
|
|
224
224
|
|
|
225
225
|
|
|
226
226
|
var _chunkNO3WWW3Ncjs = require('./chunk-NO3WWW3N.cjs');
|
|
@@ -327,7 +327,7 @@ function getDocsTitle(docs) {
|
|
|
327
327
|
}
|
|
328
328
|
_chunkS3JO3N4Hcjs.__name.call(void 0, getDocsTitle, "getDocsTitle");
|
|
329
329
|
function loadPages(contentDir, docs) {
|
|
330
|
-
return
|
|
330
|
+
return _chunkMY5PZYADcjs.discoverFarmDocsPages.call(void 0, contentDir, docs).map((page) => _chunkMY5PZYADcjs.loadFarmDocsPage.call(void 0, contentDir, docs, page.slug)).filter((page) => Boolean(page)).sort((a, b) => a.href.localeCompare(b.href));
|
|
331
331
|
}
|
|
332
332
|
_chunkS3JO3N4Hcjs.__name.call(void 0, loadPages, "loadPages");
|
|
333
333
|
function findSocialImagePath(html) {
|
|
@@ -348,14 +348,14 @@ async function addHandlerRoute(routes, pathname, handler, absolutePaths) {
|
|
|
348
348
|
}
|
|
349
349
|
_chunkS3JO3N4Hcjs.__name.call(void 0, addHandlerRoute, "addHandlerRoute");
|
|
350
350
|
async function compileFarmDocsManifest(docs, options) {
|
|
351
|
-
const contentDir =
|
|
351
|
+
const contentDir = _chunkMY5PZYADcjs.resolveFarmDocsContentDir.call(void 0, docs, options);
|
|
352
352
|
const pages = loadPages(contentDir, docs);
|
|
353
353
|
const absolutePaths = [
|
|
354
354
|
_path2.default.resolve(options.root),
|
|
355
355
|
_path2.default.resolve(contentDir),
|
|
356
356
|
docs.configPath || ""
|
|
357
357
|
];
|
|
358
|
-
const handler =
|
|
358
|
+
const handler = _chunkMY5PZYADcjs.createFarmDocsHandler.call(void 0, docs, {
|
|
359
359
|
root: options.root,
|
|
360
360
|
srcDir: options.srcDir,
|
|
361
361
|
clientEntry: options.clientEntry,
|
|
@@ -364,7 +364,7 @@ async function compileFarmDocsManifest(docs, options) {
|
|
|
364
364
|
globalStylesheetHref: options.globalStylesheetHref,
|
|
365
365
|
isPathGuarded: options.isPathGuarded
|
|
366
366
|
});
|
|
367
|
-
const apiHandler =
|
|
367
|
+
const apiHandler = _chunkJOTUZIM4cjs.createFarmDocsAPIHandler.call(void 0, {
|
|
368
368
|
rootDir: options.root,
|
|
369
369
|
srcDir: options.srcDir,
|
|
370
370
|
docs,
|
|
@@ -375,7 +375,7 @@ async function compileFarmDocsManifest(docs, options) {
|
|
|
375
375
|
const apiMarkdown = {};
|
|
376
376
|
for (const page of pages) {
|
|
377
377
|
const htmlResponse = await addHandlerRoute(routes, page.href, handler, absolutePaths);
|
|
378
|
-
const markdownPath =
|
|
378
|
+
const markdownPath = _chunkMY5PZYADcjs.getFarmDocsMarkdownPath.call(void 0, page.href);
|
|
379
379
|
await addHandlerRoute(routes, markdownPath, handler, absolutePaths);
|
|
380
380
|
if (htmlResponse) {
|
|
381
381
|
const socialImagePath = findSocialImagePath(await htmlResponse.text());
|
|
@@ -459,7 +459,7 @@ async function compileFarmDocsManifest(docs, options) {
|
|
|
459
459
|
post: await compileResponse(postResponse, absolutePaths),
|
|
460
460
|
search: {
|
|
461
461
|
pages: publicPages.map((page) => ({
|
|
462
|
-
...
|
|
462
|
+
..._chunkMY5PZYADcjs.toFarmDocsMarkdownPage.call(void 0, page),
|
|
463
463
|
sourcePath: `farm-docs:${page.slug || "index"}`
|
|
464
464
|
})),
|
|
465
465
|
search: _nullishCoalesce(searchConfig, () => ( true)),
|
|
@@ -647,7 +647,7 @@ async function createFarmRouteRuntimeManifest(options) {
|
|
|
647
647
|
const routes = [];
|
|
648
648
|
for (const [pattern, entry] of options.routeManager.getRoutes()) {
|
|
649
649
|
const routeModule = await options.routeManager.loadRouteModule(entry.modulePath);
|
|
650
|
-
const rendering = await
|
|
650
|
+
const rendering = await _chunkQEILRWVVcjs.resolveRouteRenderingConfigFromFile.call(void 0, routeModule, entry.modulePath);
|
|
651
651
|
const runtimeConfig = await options.routeManager.resolveRouteRuntimeConfig(pattern);
|
|
652
652
|
routes.push({
|
|
653
653
|
kind: "page",
|
|
@@ -1141,13 +1141,26 @@ function resolveNitroRuntimeDependency(root, specifier) {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
_chunkS3JO3N4Hcjs.__name.call(void 0, resolveNitroRuntimeDependency, "resolveNitroRuntimeDependency");
|
|
1143
1143
|
function resolveNitroInternalRuntimeAliases(root) {
|
|
1144
|
-
const
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1144
|
+
const nitroEntry = resolveNitroPackageEntry(root);
|
|
1145
|
+
const runtimeDir = _path2.default.dirname(nitroEntry);
|
|
1146
|
+
const nitroRequire = _module.createRequire.call(void 0, nitroEntry);
|
|
1147
|
+
return {
|
|
1148
|
+
...Object.fromEntries(
|
|
1149
|
+
["app", "error/hooks", "runtime-config", "shutdown", "task"].map((moduleName) => [
|
|
1150
|
+
`#nitro/runtime/${moduleName}`,
|
|
1151
|
+
_path2.default.join(runtimeDir, "internal", `${moduleName}.mjs`).split(_path2.default.sep).join("/")
|
|
1152
|
+
])
|
|
1153
|
+
),
|
|
1154
|
+
// Farm's generated workflow and cron wrappers live under `.farm/` and
|
|
1155
|
+
// import these. An app that only depends on @farm.js/core (pnpm) cannot
|
|
1156
|
+
// resolve them from there, and an unresolved id ships as a bare import.
|
|
1157
|
+
...Object.fromEntries(
|
|
1158
|
+
["nitro/app", "nitro/h3", "nitro/task"].map((specifier) => [
|
|
1159
|
+
specifier,
|
|
1160
|
+
nitroRequire.resolve(specifier).split(_path2.default.sep).join("/")
|
|
1161
|
+
])
|
|
1162
|
+
)
|
|
1163
|
+
};
|
|
1151
1164
|
}
|
|
1152
1165
|
_chunkS3JO3N4Hcjs.__name.call(void 0, resolveNitroInternalRuntimeAliases, "resolveNitroInternalRuntimeAliases");
|
|
1153
1166
|
function createPrerenderRuntimeResolverPlugin(root, resolveNitroEntry = resolveNitroPackageEntry) {
|
|
@@ -1302,18 +1315,6 @@ function shouldUseExternalMetadataImageRuntime(preset, usesImageRuntime) {
|
|
|
1302
1315
|
return usesImageRuntime && preset !== "vercel-edge" && !isCloudflareImagePreset(preset);
|
|
1303
1316
|
}
|
|
1304
1317
|
_chunkS3JO3N4Hcjs.__name.call(void 0, shouldUseExternalMetadataImageRuntime, "shouldUseExternalMetadataImageRuntime");
|
|
1305
|
-
function resolveImageRuntime(config, preset) {
|
|
1306
|
-
if (config.images.provider === "none") return "none";
|
|
1307
|
-
const cloudflarePreset = isCloudflareImagePreset(preset);
|
|
1308
|
-
if (config.images.provider === "node" && cloudflarePreset) {
|
|
1309
|
-
throw new Error('images.provider "node" cannot run in a Cloudflare deployment');
|
|
1310
|
-
}
|
|
1311
|
-
if (config.images.provider === "cloudflare" && !cloudflarePreset) {
|
|
1312
|
-
throw new Error('images.provider "cloudflare" requires a Cloudflare deployment preset');
|
|
1313
|
-
}
|
|
1314
|
-
return config.images.provider === "cloudflare" || config.images.provider === "auto" && cloudflarePreset ? "cloudflare" : "node";
|
|
1315
|
-
}
|
|
1316
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, resolveImageRuntime, "resolveImageRuntime");
|
|
1317
1318
|
function isNitroRollupExternal(id) {
|
|
1318
1319
|
const normalizedId = id.replace(/\\/g, "/");
|
|
1319
1320
|
return NODE_BUILTIN_MODULES.has(id) || NITRO_EXTERNAL_MODULES.has(id) || normalizedId.startsWith(".prisma/") || normalizedId.includes("/node_modules/@prisma/client/") || normalizedId.includes("/node_modules/.prisma/client/");
|
|
@@ -1699,7 +1700,7 @@ async function buildUniversal(config, routeManager, apiRouteManager, serverRende
|
|
|
1699
1700
|
assertFarmDocsRuntimeSupported(config, preset);
|
|
1700
1701
|
const srcDir = config.srcDir || "src";
|
|
1701
1702
|
const distDir = config.distDir || ".farm";
|
|
1702
|
-
const deployOutputDir =
|
|
1703
|
+
const deployOutputDir = _chunkEX4MKHXNcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
1703
1704
|
const lifecyclePluginManager = options.pluginManager;
|
|
1704
1705
|
const productionViteResultPromise = Promise.allSettled([
|
|
1705
1706
|
Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkA6WIQH5Zcjs.loadFarmProductionVite.call(void 0, ))))
|
|
@@ -1951,7 +1952,7 @@ async function mergeBuiltFontCss(outputDir, fontCssSource) {
|
|
|
1951
1952
|
}
|
|
1952
1953
|
const normalizedFontCss = typeof fontCss === "string" ? fontCss : Buffer.from(fontCss).toString("utf8");
|
|
1953
1954
|
await fs4.writeFile(fontCssPath, normalizedFontCss);
|
|
1954
|
-
await fs4.writeFile(clientCssPath,
|
|
1955
|
+
await fs4.writeFile(clientCssPath, _chunkROQ4C4LJcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
|
|
1955
1956
|
}
|
|
1956
1957
|
_chunkS3JO3N4Hcjs.__name.call(void 0, mergeBuiltFontCss, "mergeBuiltFontCss");
|
|
1957
1958
|
var _IncompleteClientBuildOutputError = class _IncompleteClientBuildOutputError extends Error {
|
|
@@ -2001,7 +2002,7 @@ function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, optio
|
|
|
2001
2002
|
const key = `${_path2.default.resolve(root)}\0${mode}\0${options.asyncOwnerIslands === true}\0${_path2.default.resolve(modulePath)}`;
|
|
2002
2003
|
let plan = cache.get(key);
|
|
2003
2004
|
if (!plan) {
|
|
2004
|
-
plan =
|
|
2005
|
+
plan = _chunkROQ4C4LJcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
|
|
2005
2006
|
cache.set(key, plan);
|
|
2006
2007
|
}
|
|
2007
2008
|
return { ...plan, isolatedBoundaries: [...plan.isolatedBoundaries] };
|
|
@@ -2030,14 +2031,14 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2030
2031
|
`[Farm.js] isolated hydration kept route-wide because integration provider "${unsupportedIntegrationProvider.name}" does not declare supportsIsolatedHydration: true.`
|
|
2031
2032
|
);
|
|
2032
2033
|
}
|
|
2033
|
-
const isolatedMode =
|
|
2034
|
+
const isolatedMode = _chunkROQ4C4LJcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
2034
2035
|
_optionalChain([config, 'access', _39 => _39.experimental, 'optionalAccess', _40 => _40.isolatedClientHydration]),
|
|
2035
2036
|
{
|
|
2036
2037
|
serverComponents: _optionalChain([config, 'access', _41 => _41.experimental, 'optionalAccess', _42 => _42.serverComponents]) === true,
|
|
2037
2038
|
hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
|
|
2038
2039
|
}
|
|
2039
2040
|
);
|
|
2040
|
-
const planOptions =
|
|
2041
|
+
const planOptions = _chunkROQ4C4LJcjs.getFarmClientHydrationPlanOptions.call(void 0,
|
|
2041
2042
|
config.renderer,
|
|
2042
2043
|
Boolean(unsupportedIntegrationProvider)
|
|
2043
2044
|
);
|
|
@@ -2084,7 +2085,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2084
2085
|
};
|
|
2085
2086
|
}
|
|
2086
2087
|
});
|
|
2087
|
-
const layoutAppliesToRoute =
|
|
2088
|
+
const layoutAppliesToRoute = _chunkL6HYACBEcjs.routeBoundaryCoversDirectory;
|
|
2088
2089
|
const routeDirectory = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (route) => _nullishCoalesce(route.directory, () => ( route.pattern)), "routeDirectory");
|
|
2089
2090
|
const adapterOwnsDocsRuntime = Boolean(
|
|
2090
2091
|
_chunkPSV6XKPOcjs.isReactRenderer.call(void 0, config.renderer) && _optionalChain([config, 'access', _43 => _43.docs, 'optionalAccess', _44 => _44.enabled]) && _optionalChain([config, 'access', _45 => _45.docs, 'access', _46 => _46.adapter, 'optionalAccess', _47 => _47.server]) && config.docs.adapter.react
|
|
@@ -2095,7 +2096,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2095
2096
|
), "isAdapterDocsRoute");
|
|
2096
2097
|
const syntheticDocsEntry = _optionalChain([config, 'access', _50 => _50.docs, 'optionalAccess', _51 => _51.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
|
|
2097
2098
|
const syntheticDocsPatterns = syntheticDocsEntry ? syntheticDocsEntry === "/" ? ["/", "/[...slug]"] : [syntheticDocsEntry, `${syntheticDocsEntry}/[...slug]`] : [];
|
|
2098
|
-
const markdownPagePlan =
|
|
2099
|
+
const markdownPagePlan = _chunkROQ4C4LJcjs.createMarkdownPageHydrationPlanner.call(void 0,
|
|
2099
2100
|
_chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkOHY2ZWUGcjs.resolveMdxConfig.call(void 0, config.mdx), root),
|
|
2100
2101
|
root,
|
|
2101
2102
|
isolatedMode,
|
|
@@ -2111,7 +2112,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2111
2112
|
planOptions
|
|
2112
2113
|
)
|
|
2113
2114
|
}));
|
|
2114
|
-
|
|
2115
|
+
_chunkROQ4C4LJcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
|
|
2115
2116
|
clientLayouts.map((layout) => ({
|
|
2116
2117
|
pattern: layout.pattern,
|
|
2117
2118
|
depth: layout.pattern.split("/").filter(Boolean).length,
|
|
@@ -2120,7 +2121,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2120
2121
|
[
|
|
2121
2122
|
...routePlans.map(({ route, metadata }) => ({
|
|
2122
2123
|
pattern: routeDirectory(route),
|
|
2123
|
-
depth:
|
|
2124
|
+
depth: _chunkL6HYACBEcjs.getRouteDirectoryDepth.call(void 0, routeDirectory(route)),
|
|
2124
2125
|
metadata
|
|
2125
2126
|
})),
|
|
2126
2127
|
...syntheticDocsPatterns.map((pattern) => ({
|
|
@@ -2143,7 +2144,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2143
2144
|
for (const layout of clientLayouts) {
|
|
2144
2145
|
const matchesBuiltRoute = pageRoutes.some((route) => layoutAppliesToRoute(layout.pattern, routeDirectory(route))) || Boolean(adapterDocsEntry && layoutAppliesToRoute(layout.pattern, adapterDocsEntry));
|
|
2145
2146
|
if (matchesBuiltRoute && layout.suppressedAsyncHydration) {
|
|
2146
|
-
_chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F ${
|
|
2147
|
+
_chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F ${_chunkROQ4C4LJcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`);
|
|
2147
2148
|
}
|
|
2148
2149
|
}
|
|
2149
2150
|
if (isolatedMode === "analyze") {
|
|
@@ -2167,7 +2168,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2167
2168
|
);
|
|
2168
2169
|
if (metadata.suppressedAsyncHydration) {
|
|
2169
2170
|
_chunk5QIKR7RRcjs.logger.warn(
|
|
2170
|
-
`\u26A0\uFE0F ${
|
|
2171
|
+
`\u26A0\uFE0F ${_chunkROQ4C4LJcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
|
|
2171
2172
|
);
|
|
2172
2173
|
}
|
|
2173
2174
|
if (metadata.shouldHydrate || metadata.hasIsolatedClientBoundaries || applicableClientLayouts.length > 0) {
|
|
@@ -2192,7 +2193,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2192
2193
|
...applicableClientLayouts.filter((layout) => layout.hasIsolatedClientBoundaries).flatMap((layout) => layout.isolatedBoundaries)
|
|
2193
2194
|
],
|
|
2194
2195
|
// The server renders a server tree only below a hydrating layout.
|
|
2195
|
-
...
|
|
2196
|
+
..._chunkROQ4C4LJcjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
|
|
2196
2197
|
});
|
|
2197
2198
|
_chunk5QIKR7RRcjs.logger.info(`\u{1F4F1} Found hydratable route: ${route.pattern} -> ${route.modulePath}`);
|
|
2198
2199
|
}
|
|
@@ -2228,7 +2229,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2228
2229
|
}
|
|
2229
2230
|
const clientRouteSlots = routeSlots.filter((slot) => {
|
|
2230
2231
|
try {
|
|
2231
|
-
return
|
|
2232
|
+
return _chunkROQ4C4LJcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root).shouldHydrate;
|
|
2232
2233
|
} catch (error) {
|
|
2233
2234
|
_chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
|
|
2234
2235
|
return false;
|
|
@@ -2258,7 +2259,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2258
2259
|
config.trailingSlash,
|
|
2259
2260
|
_chunkRHGK2JENcjs.getIntegrationProviders.call(void 0, config.integrations),
|
|
2260
2261
|
config.basePath,
|
|
2261
|
-
|
|
2262
|
+
_chunkROQ4C4LJcjs.generateClientCachePersistenceCode.call(void 0, _chunkROQ4C4LJcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
|
|
2262
2263
|
adapterOwnsDocsRuntime ? _chunkCY2ZQ5C6cjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
|
|
2263
2264
|
);
|
|
2264
2265
|
await fs4.writeFile(clientEntryPath, clientHydrationCode);
|
|
@@ -2275,7 +2276,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2275
2276
|
const postcssConfigPath = _path2.default.join(clientEntryDir, "postcss.config.cjs");
|
|
2276
2277
|
await fs4.writeFile(postcssConfigPath, "module.exports = { plugins: [] };\n");
|
|
2277
2278
|
postcssSearchPath = clientEntryDir;
|
|
2278
|
-
tailwindVitePlugin = await
|
|
2279
|
+
tailwindVitePlugin = await _chunkROQ4C4LJcjs.loadTailwindVitePlugin.call(void 0, {
|
|
2279
2280
|
builder: productionVite.builder,
|
|
2280
2281
|
announce: true
|
|
2281
2282
|
});
|
|
@@ -2346,7 +2347,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2346
2347
|
}
|
|
2347
2348
|
},
|
|
2348
2349
|
plugins: [
|
|
2349
|
-
|
|
2350
|
+
_chunkROQ4C4LJcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
2350
2351
|
createFarmPrivateClientSourcemapsPlugin({
|
|
2351
2352
|
outDir: _path2.default.join(_path2.default.dirname(outputDir), FARM_CLIENT_SOURCEMAPS_DIR)
|
|
2352
2353
|
}),
|
|
@@ -2371,7 +2372,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2371
2372
|
...rendererVitePlugins,
|
|
2372
2373
|
...config.vite.plugins || [],
|
|
2373
2374
|
farmServerOnlyEntriesPlugin(),
|
|
2374
|
-
|
|
2375
|
+
_chunkROQ4C4LJcjs.farmDocsClientConfigPlugin.call(void 0,
|
|
2375
2376
|
adapterOwnsDocsRuntime ? _chunkCY2ZQ5C6cjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
|
|
2376
2377
|
),
|
|
2377
2378
|
// Plugin to redirect @farm.js/core imports to client-only exports
|
|
@@ -2433,7 +2434,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2433
2434
|
} : void 0,
|
|
2434
2435
|
// Ensure React is bundled for client
|
|
2435
2436
|
resolve: {
|
|
2436
|
-
alias:
|
|
2437
|
+
alias: _chunkROQ4C4LJcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
|
|
2437
2438
|
dedupe: [...config.renderer.dedupe || []]
|
|
2438
2439
|
},
|
|
2439
2440
|
// Optimize dependencies - exclude server-side code from client bundle
|
|
@@ -2446,7 +2447,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2446
2447
|
]
|
|
2447
2448
|
}
|
|
2448
2449
|
};
|
|
2449
|
-
await viteBuild(
|
|
2450
|
+
await viteBuild(_chunkROQ4C4LJcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite));
|
|
2450
2451
|
await mergeBuiltFontCss(outputDir);
|
|
2451
2452
|
await validateClientBuildOutput(root, srcDir, outputDir);
|
|
2452
2453
|
} finally {
|
|
@@ -3205,7 +3206,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
|
|
|
3205
3206
|
direction: {}
|
|
3206
3207
|
}, plugins = [], renderer = _chunkPSV6XKPOcjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule) {
|
|
3207
3208
|
const toImportPath = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (targetPath) => targetPath.replace(/\\/g, "/"), "toImportPath");
|
|
3208
|
-
const clientPluginEntry =
|
|
3209
|
+
const clientPluginEntry = _chunkROQ4C4LJcjs.generateFarmClientPluginEntryCode.call(void 0,
|
|
3209
3210
|
plugins,
|
|
3210
3211
|
root,
|
|
3211
3212
|
srcDir,
|
|
@@ -3216,7 +3217,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
|
|
|
3216
3217
|
import { createRoot, hydrateRoot } from "react-dom/client";` : appSetupPath ? `import React, { createRoot, hydrateRoot, configureApp as __farmConfigureApp } from ${JSON.stringify(renderer.client)};
|
|
3217
3218
|
import __farmAppSetup from ${JSON.stringify(_chunk5QIKR7RRcjs.toPosixPath.call(void 0, appSetupPath))};
|
|
3218
3219
|
__farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};`;
|
|
3219
|
-
const providerClientCode =
|
|
3220
|
+
const providerClientCode = _chunkROQ4C4LJcjs.generateFarmIntegrationProviderClientCode.call(void 0,
|
|
3220
3221
|
integrationProviders,
|
|
3221
3222
|
root,
|
|
3222
3223
|
_nullishCoalesce(renderer.componentExtensions, () => ( []))
|
|
@@ -3228,12 +3229,12 @@ __farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot
|
|
|
3228
3229
|
const hydratingLayoutPatterns = layoutRoutes.filter((layout) => layout.shouldHydrate).map((layout) => layout.pattern);
|
|
3229
3230
|
layoutRoutes.forEach((layout, index) => {
|
|
3230
3231
|
const relativePath = toImportPath(layout.modulePath);
|
|
3231
|
-
const rendersOnClient = !layout.hasIsolatedClientBoundaries && hydratingLayoutPatterns.some((pattern) =>
|
|
3232
|
+
const rendersOnClient = !layout.hasIsolatedClientBoundaries && hydratingLayoutPatterns.some((pattern) => _chunkPN676AZFcjs.layoutsCanCoverSamePage.call(void 0, layout.pattern, pattern));
|
|
3232
3233
|
if (rendersOnClient) {
|
|
3233
3234
|
layoutImportStatements.push(`import Layout${index} from "${relativePath}";`);
|
|
3234
3235
|
}
|
|
3235
|
-
const groupScope =
|
|
3236
|
-
const groupFields = groupScope ? `, urlPattern: ${JSON.stringify(
|
|
3236
|
+
const groupScope = _chunkL6HYACBEcjs.getRouteGroupScope.call(void 0, layout.pattern);
|
|
3237
|
+
const groupFields = groupScope ? `, urlPattern: ${JSON.stringify(_chunkL6HYACBEcjs.stripRouteGroups.call(void 0, layout.pattern))}, groupScope: ${JSON.stringify(groupScope)}` : "";
|
|
3237
3238
|
layoutRegistrations.push(
|
|
3238
3239
|
` { pattern: ${JSON.stringify(layout.pattern)}${groupFields}, Component: ${rendersOnClient ? `Layout${index}` : "null"}, shouldHydrate: ${JSON.stringify(layout.shouldHydrate)}, islandStrategy: ${JSON.stringify(layout.islandStrategy)} }`
|
|
3239
3240
|
);
|
|
@@ -3736,7 +3737,7 @@ function hasHydratableLayout(pathname) {
|
|
|
3736
3737
|
});
|
|
3737
3738
|
}
|
|
3738
3739
|
|
|
3739
|
-
${
|
|
3740
|
+
${_chunkROQ4C4LJcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
|
|
3740
3741
|
// Wrap a page element with applicable layouts
|
|
3741
3742
|
function wrapWithLayouts(pageElement, pathname, params) {
|
|
3742
3743
|
const layouts = getApplicableLayouts(pathname);
|
|
@@ -4715,7 +4716,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
4715
4716
|
_path2.default.join(postcssConfigDir, "postcss.config.cjs"),
|
|
4716
4717
|
"module.exports = { plugins: [] };\n"
|
|
4717
4718
|
);
|
|
4718
|
-
tailwindVitePlugin = await
|
|
4719
|
+
tailwindVitePlugin = await _chunkROQ4C4LJcjs.loadTailwindVitePlugin.call(void 0, {
|
|
4719
4720
|
builder: productionVite.builder,
|
|
4720
4721
|
label: "for SSR"
|
|
4721
4722
|
});
|
|
@@ -4811,7 +4812,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
4811
4812
|
}
|
|
4812
4813
|
const middlewareRoutes = await discoverMiddlewareRoutes(appDirs);
|
|
4813
4814
|
const instrumentationPath = _chunkKCMTCM6Icjs.resolveFarmInstrumentationFile.call(void 0, root, config.srcDir || "src");
|
|
4814
|
-
const notFoundPath =
|
|
4815
|
+
const notFoundPath = _chunkROQ4C4LJcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
|
|
4815
4816
|
if (notFoundPath) _chunk5QIKR7RRcjs.logger.info(`\u{1F4CB} Found custom 404 page: ${notFoundPath}`);
|
|
4816
4817
|
layoutRoutes.sort((a, b) => {
|
|
4817
4818
|
const depthA = a.pattern.split("/").filter(Boolean).length;
|
|
@@ -4833,8 +4834,8 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
4833
4834
|
);
|
|
4834
4835
|
const hasObservabilityHandler = !!config.observability && typeof config.observability === "object" && "onEvent" in config.observability;
|
|
4835
4836
|
const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _63 => _63.mdx, 'optionalAccess', _64 => _64.components]));
|
|
4836
|
-
const hasMiddlewareConfig =
|
|
4837
|
-
const hasRouteContextConfig =
|
|
4837
|
+
const hasMiddlewareConfig = _chunkL6HYACBEcjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
|
|
4838
|
+
const hasRouteContextConfig = _chunkEX4MKHXNcjs.hasCustomFarmRouteContext.call(void 0, config);
|
|
4838
4839
|
const hasServerRuntimePlugins = hasFarmServerRuntimePlugins(config);
|
|
4839
4840
|
const hasPluginRoutes = hasFarmPluginRoutes(config);
|
|
4840
4841
|
const hasServerCacheConfig = hasFarmServerCacheConfig(config.cache);
|
|
@@ -4844,18 +4845,18 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
4844
4845
|
const hasConfiguredRuntimePlugins = Boolean(
|
|
4845
4846
|
hasRuntimeConfigModule && (config.plugins || []).length > 0
|
|
4846
4847
|
);
|
|
4847
|
-
if (
|
|
4848
|
+
if (_chunkJOTUZIM4cjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
|
|
4848
4849
|
const adapterGuardedPaths = new Set(getFarmDocsGuardedPaths(config, middlewareRoutes));
|
|
4849
|
-
|
|
4850
|
+
_chunkJOTUZIM4cjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
|
|
4850
4851
|
config.docs,
|
|
4851
4852
|
{ root, srcDir: config.srcDir },
|
|
4852
4853
|
(pathname) => adapterGuardedPaths.has(pathname)
|
|
4853
4854
|
);
|
|
4854
4855
|
}
|
|
4855
|
-
const farmDocsCspNonceMarker =
|
|
4856
|
-
const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _65 => _65.docs, 'optionalAccess', _66 => _66.enabled]) && _chunkC5GUTBZKcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? await
|
|
4856
|
+
const farmDocsCspNonceMarker = _chunk25LPIZSXcjs.createFarmCspNonce.call(void 0, config.security);
|
|
4857
|
+
const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _65 => _65.docs, 'optionalAccess', _66 => _66.enabled]) && _chunkC5GUTBZKcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? await _chunkZTP3BJG6cjs._runWithFarmCspNonce.call(void 0,
|
|
4857
4858
|
farmDocsCspNonceMarker,
|
|
4858
|
-
async () => _optionalChain([config, 'access', _67 => _67.docs, 'access', _68 => _68.adapter, 'optionalAccess', _69 => _69.server]) ? await
|
|
4859
|
+
async () => _optionalChain([config, 'access', _67 => _67.docs, 'access', _68 => _68.adapter, 'optionalAccess', _69 => _69.server]) ? await _chunkJOTUZIM4cjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
|
|
4859
4860
|
root,
|
|
4860
4861
|
srcDir: config.srcDir,
|
|
4861
4862
|
clientEntry: FARM_CLIENT_JS_SRC_PLACEHOLDER,
|
|
@@ -5017,7 +5018,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5017
5018
|
__FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _75 => _75.env, 'optionalAccess', _76 => _76.public]) || {})
|
|
5018
5019
|
},
|
|
5019
5020
|
plugins: [
|
|
5020
|
-
|
|
5021
|
+
_chunkROQ4C4LJcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
5021
5022
|
...tailwindVitePlugin ? [tailwindVitePlugin] : [],
|
|
5022
5023
|
...rendererVitePlugins,
|
|
5023
5024
|
...config.vite.plugins || [],
|
|
@@ -5070,7 +5071,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5070
5071
|
resolve: {
|
|
5071
5072
|
alias: [
|
|
5072
5073
|
...shouldAliasReactServerToWebBuild(config.renderer, preset) ? [createFarmReactWebServerAlias(hasReactDomEdgeServerBuild(root))] : [],
|
|
5073
|
-
...Object.entries(
|
|
5074
|
+
...Object.entries(_chunkROQ4C4LJcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
|
|
5074
5075
|
([find, replacement]) => ({ find, replacement })
|
|
5075
5076
|
)
|
|
5076
5077
|
],
|
|
@@ -5078,7 +5079,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5078
5079
|
dedupe: [...config.renderer.dedupe || []]
|
|
5079
5080
|
}
|
|
5080
5081
|
};
|
|
5081
|
-
await viteBuild(
|
|
5082
|
+
await viteBuild(_chunkROQ4C4LJcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
|
|
5082
5083
|
} finally {
|
|
5083
5084
|
if (postcssConfigDir) {
|
|
5084
5085
|
try {
|
|
@@ -5118,7 +5119,7 @@ function readFarmPageLastModified(pageRoutes) {
|
|
|
5118
5119
|
_chunkS3JO3N4Hcjs.__name.call(void 0, readFarmPageLastModified, "readFarmPageLastModified");
|
|
5119
5120
|
function getFarmDocsGuardedPaths(config, middlewareRoutes) {
|
|
5120
5121
|
if (!_optionalChain([config, 'access', _77 => _77.docs, 'optionalAccess', _78 => _78.enabled])) return [];
|
|
5121
|
-
const contentDir =
|
|
5122
|
+
const contentDir = _chunkMY5PZYADcjs.resolveFarmDocsContentDir.call(void 0, config.docs, {
|
|
5122
5123
|
root: config.root,
|
|
5123
5124
|
srcDir: config.srcDir
|
|
5124
5125
|
});
|
|
@@ -5126,7 +5127,7 @@ function getFarmDocsGuardedPaths(config, middlewareRoutes) {
|
|
|
5126
5127
|
config: { middleware: config.middleware, integrations: config.integrations },
|
|
5127
5128
|
middlewareRoutes
|
|
5128
5129
|
};
|
|
5129
|
-
return
|
|
5130
|
+
return _chunkMY5PZYADcjs.discoverFarmDocsPages.call(void 0, contentDir, config.docs).flatMap((page) => [page.href, _chunkMY5PZYADcjs.getFarmDocsMarkdownPath.call(void 0, page.href)]).filter((pathname) => _chunkL6HYACBEcjs.farmPathGuardCoversPage.call(void 0, guards, pathname));
|
|
5130
5131
|
}
|
|
5131
5132
|
_chunkS3JO3N4Hcjs.__name.call(void 0, getFarmDocsGuardedPaths, "getFarmDocsGuardedPaths");
|
|
5132
5133
|
function getFarmAppOwnedDocsEnginePaths(agent, applicationMetadataRoutes) {
|
|
@@ -5297,17 +5298,6 @@ function applyConfiguredResponseHeaders(response, pathname) {
|
|
|
5297
5298
|
`.trim();
|
|
5298
5299
|
}
|
|
5299
5300
|
_chunkS3JO3N4Hcjs.__name.call(void 0, generateConfiguredResponseHeadersRuntimeSource, "generateConfiguredResponseHeadersRuntimeSource");
|
|
5300
|
-
function parseRouteRenderingDirectiveFromDisk(modulePath) {
|
|
5301
|
-
try {
|
|
5302
|
-
const source = _fs.readFileSync.call(void 0, modulePath, "utf8");
|
|
5303
|
-
const directive = _chunkKK22JPQMcjs.parseRouteRenderingDirective.call(void 0, source);
|
|
5304
|
-
if (_chunkKK22JPQMcjs.findRequestBoundSourceBlockers.call(void 0, source).length === 0) return directive;
|
|
5305
|
-
return { ..._nullishCoalesce(directive, () => ( { ssg: false, ppr: false, directive: "" })), requestBound: true };
|
|
5306
|
-
} catch (e29) {
|
|
5307
|
-
return void 0;
|
|
5308
|
-
}
|
|
5309
|
-
}
|
|
5310
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, parseRouteRenderingDirectiveFromDisk, "parseRouteRenderingDirectiveFromDisk");
|
|
5311
5301
|
function generatePreloadResponseRuntimeSource() {
|
|
5312
5302
|
return `
|
|
5313
5303
|
// Farm builds buffered HTML responses from strings it already holds. Remember
|
|
@@ -5535,7 +5525,7 @@ function renderFarmRouteServerTree(element) { return element; }`;
|
|
|
5535
5525
|
const hasGeneratedMetadataImages = metadataImageRoutes.some(
|
|
5536
5526
|
(image) => image.sourceType === "module"
|
|
5537
5527
|
);
|
|
5538
|
-
const hasMiddlewareRuntime = middlewareRoutes.length > 0 ||
|
|
5528
|
+
const hasMiddlewareRuntime = middlewareRoutes.length > 0 || _chunkL6HYACBEcjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
|
|
5539
5529
|
const farmDocsFontAssets = _optionalChain([config, 'access', _102 => _102.docs, 'optionalAccess', _103 => _103.enabled]) ? _chunkHREOKQWTcjs.toFarmDocsPublicFontAssets.call(void 0, _chunkHREOKQWTcjs.resolveFarmDocsFontAssets.call(void 0, config.root)) : [];
|
|
5540
5530
|
const integrationProviders = _chunkRHGK2JENcjs.getIntegrationProviders.call(void 0, config.integrations);
|
|
5541
5531
|
const renderedIntegrationProviders = integrationProviders.filter(
|
|
@@ -5546,7 +5536,7 @@ function renderFarmRouteServerTree(element) { return element; }`;
|
|
|
5546
5536
|
`Integration provider components are not supported by the "${config.renderer.name}" renderer.`
|
|
5547
5537
|
);
|
|
5548
5538
|
}
|
|
5549
|
-
const providerServerModules =
|
|
5539
|
+
const providerServerModules = _chunkROQ4C4LJcjs.generateFarmIntegrationProviderServerModules.call(void 0,
|
|
5550
5540
|
renderedIntegrationProviders,
|
|
5551
5541
|
config.root,
|
|
5552
5542
|
_nullishCoalesce(config.renderer.componentExtensions, () => ( []))
|
|
@@ -5566,14 +5556,14 @@ function renderFarmRouteServerTree(element) { return element; }`;
|
|
|
5566
5556
|
const unsupportedIntegrationProvider = renderedIntegrationProviders.find(
|
|
5567
5557
|
(provider) => provider.supportsIsolatedHydration !== true
|
|
5568
5558
|
);
|
|
5569
|
-
const isolatedHydrationMode =
|
|
5559
|
+
const isolatedHydrationMode = _chunkROQ4C4LJcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
5570
5560
|
_optionalChain([config, 'access', _106 => _106.experimental, 'optionalAccess', _107 => _107.isolatedClientHydration]),
|
|
5571
5561
|
{
|
|
5572
5562
|
serverComponents: _optionalChain([config, 'access', _108 => _108.experimental, 'optionalAccess', _109 => _109.serverComponents]) === true,
|
|
5573
5563
|
hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
|
|
5574
5564
|
}
|
|
5575
5565
|
);
|
|
5576
|
-
const hydrationPlanOptions =
|
|
5566
|
+
const hydrationPlanOptions = _chunkROQ4C4LJcjs.getFarmClientHydrationPlanOptions.call(void 0,
|
|
5577
5567
|
config.renderer,
|
|
5578
5568
|
Boolean(unsupportedIntegrationProvider)
|
|
5579
5569
|
);
|
|
@@ -5587,7 +5577,7 @@ function renderFarmRouteServerTree(element) { return element; }`;
|
|
|
5587
5577
|
hydrationPlanOptions
|
|
5588
5578
|
)
|
|
5589
5579
|
}));
|
|
5590
|
-
const markdownPagePlan =
|
|
5580
|
+
const markdownPagePlan = _chunkROQ4C4LJcjs.createMarkdownPageHydrationPlanner.call(void 0,
|
|
5591
5581
|
_chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkOHY2ZWUGcjs.resolveMdxConfig.call(void 0, config.mdx), config.root),
|
|
5592
5582
|
config.root,
|
|
5593
5583
|
isolatedHydrationMode,
|
|
@@ -5605,7 +5595,7 @@ function renderFarmRouteServerTree(element) { return element; }`;
|
|
|
5605
5595
|
)
|
|
5606
5596
|
])
|
|
5607
5597
|
);
|
|
5608
|
-
|
|
5598
|
+
_chunkROQ4C4LJcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
|
|
5609
5599
|
layoutHydrationPlans.map((layout) => ({
|
|
5610
5600
|
pattern: layout.pattern,
|
|
5611
5601
|
depth: layout.pattern.split("/").filter(Boolean).length,
|
|
@@ -5614,10 +5604,10 @@ function renderFarmRouteServerTree(element) { return element; }`;
|
|
|
5614
5604
|
pageRoutes.map((route) => ({
|
|
5615
5605
|
// Compared by directory so a grouped layout applies only inside its group.
|
|
5616
5606
|
pattern: _nullishCoalesce(route.directory, () => ( route.pattern)),
|
|
5617
|
-
depth:
|
|
5607
|
+
depth: _chunkL6HYACBEcjs.getRouteDirectoryDepth.call(void 0, _nullishCoalesce(route.directory, () => ( route.pattern))),
|
|
5618
5608
|
metadata: pageHydrationPlans.get(route.modulePath)
|
|
5619
5609
|
})),
|
|
5620
|
-
|
|
5610
|
+
_chunkL6HYACBEcjs.routeBoundaryCoversDirectory
|
|
5621
5611
|
);
|
|
5622
5612
|
const providerServerImports = [
|
|
5623
5613
|
providerServerModules.hasClerkProvider ? `import { ClerkProvider as FarmClerkProvider } from "@clerk/react";` : "",
|
|
@@ -5671,7 +5661,7 @@ function renderFarmRouteServerTree(element) { return element; }`;
|
|
|
5671
5661
|
`import * as ${varName} from ${toVirtualEntryImportSpecifier(route.modulePath)};`
|
|
5672
5662
|
);
|
|
5673
5663
|
const clientMetadata = pageHydrationPlans.get(route.modulePath);
|
|
5674
|
-
const renderingDirective =
|
|
5664
|
+
const renderingDirective = _chunkQEILRWVVcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
|
|
5675
5665
|
pageRegistrations.push(`
|
|
5676
5666
|
{
|
|
5677
5667
|
pattern: ${JSON.stringify(route.pattern)},${route.directory ? `
|
|
@@ -5679,7 +5669,7 @@ function renderFarmRouteServerTree(element) { return element; }`;
|
|
|
5679
5669
|
module: ${varName},
|
|
5680
5670
|
shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},${clientMetadata.shouldHydrate ? `
|
|
5681
5671
|
clientModule: ${JSON.stringify(_chunk5QIKR7RRcjs.toViteModuleId.call(void 0, route.modulePath, config.root))},` : ""}
|
|
5682
|
-
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${
|
|
5672
|
+
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkROQ4C4LJcjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${renderingDirective ? `
|
|
5683
5673
|
rendering: ${JSON.stringify(renderingDirective)},` : ""}
|
|
5684
5674
|
${route.source !== void 0 ? `markdownSource: {
|
|
5685
5675
|
source: ${JSON.stringify(route.source)},
|
|
@@ -5736,12 +5726,12 @@ function renderFarmRouteServerTree(element) { return element; }`;
|
|
|
5736
5726
|
errorImports.push(
|
|
5737
5727
|
`import * as ${varName} from ${toVirtualEntryImportSpecifier(errorRoute.modulePath)};`
|
|
5738
5728
|
);
|
|
5739
|
-
const groupScope =
|
|
5729
|
+
const groupScope = _chunkL6HYACBEcjs.getRouteGroupScope.call(void 0, errorRoute.pattern);
|
|
5740
5730
|
errorRegistrations.push(`
|
|
5741
5731
|
{
|
|
5742
|
-
pattern: ${JSON.stringify(
|
|
5732
|
+
pattern: ${JSON.stringify(_chunkL6HYACBEcjs.stripRouteGroups.call(void 0, errorRoute.pattern))},${groupScope ? `
|
|
5743
5733
|
groupScope: ${JSON.stringify(groupScope)},
|
|
5744
|
-
directoryDepth: ${
|
|
5734
|
+
directoryDepth: ${_chunkL6HYACBEcjs.getRouteDirectoryDepth.call(void 0, errorRoute.pattern)},` : ""}
|
|
5745
5735
|
module: ${varName},
|
|
5746
5736
|
}`);
|
|
5747
5737
|
});
|
|
@@ -5930,7 +5920,7 @@ import { fileURLToPath as farmDocsFileURLToPath } from "node:url";` : "";
|
|
|
5930
5920
|
const integrationRuntimeImport = integrationRuntimeExports.length ? `import { ${integrationRuntimeExports.join(", ")} } from "@farm.js/core/integrations";` : "";
|
|
5931
5921
|
const instrumentationImport = instrumentationPath ? `import * as FarmInstrumentationModule from ${toVirtualEntryImportSpecifier(instrumentationPath)};` : "";
|
|
5932
5922
|
const nativeAuth = generateNativeAuthIntegrationSource(config.auth);
|
|
5933
|
-
const nativeMCP =
|
|
5923
|
+
const nativeMCP = _chunkPN676AZFcjs.generateNativeMCPPluginSource.call(void 0, config.mcp);
|
|
5934
5924
|
const integrationImports = `
|
|
5935
5925
|
${configModulePath ? `import * as FarmUserConfigModule from ${toVirtualEntryImportSpecifier(configModulePath)};` : ""}
|
|
5936
5926
|
${layerConfigImports}
|
|
@@ -5938,7 +5928,7 @@ ${integrationRuntimeImport}
|
|
|
5938
5928
|
${nativeAuth.importSource}
|
|
5939
5929
|
${nativeMCP.importSource}
|
|
5940
5930
|
`;
|
|
5941
|
-
const imageRuntime =
|
|
5931
|
+
const imageRuntime = _chunkROQ4C4LJcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
|
|
5942
5932
|
const imageRuntimeImport = imageRuntime === "none" ? "" : `import { _withFarmImageSourceClientAddress, createCloudflareImageTransformer, createFarmImageHandler } from "@farm.js/core/image/server";`;
|
|
5943
5933
|
const imageNodeRuntimeImport = imageRuntime === "node" ? `import { createNodeImageFetcher, createNodeImageUrlValidator, createSharpImageTransformer } from "@farm.js/core/image/sharp";` : "";
|
|
5944
5934
|
const apiHandlerCode = apiRoutes.length > 0 ? `
|
|
@@ -6117,7 +6107,7 @@ const farmResolvedRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs);
|
|
|
6117
6107
|
|
|
6118
6108
|
function FarmDefault404Page() {
|
|
6119
6109
|
return React.createElement(React.Fragment, null,
|
|
6120
|
-
React.createElement("style", null, ${JSON.stringify(
|
|
6110
|
+
React.createElement("style", null, ${JSON.stringify(_chunkROQ4C4LJcjs.DEFAULT_NOT_FOUND_STYLES)}),
|
|
6121
6111
|
React.createElement("main", {
|
|
6122
6112
|
className: "farm-default-not-found",
|
|
6123
6113
|
"aria-labelledby": "farm-default-not-found-title",
|
|
@@ -6420,12 +6410,12 @@ function fetchFarmInnerRequest(request, context) {
|
|
|
6420
6410
|
}
|
|
6421
6411
|
const farmLocalAPIBasePath = ${JSON.stringify(_chunkKNBBQHO2cjs.resolveFarmAPIServerBasePath.call(void 0, config.api))};
|
|
6422
6412
|
const farmOpenAPIReference = ${JSON.stringify(openAPIReference)};
|
|
6423
|
-
${_optionalChain([config, 'access', _139 => _139.agent, 'optionalAccess', _140 => _140.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(
|
|
6413
|
+
${_optionalChain([config, 'access', _139 => _139.agent, 'optionalAccess', _140 => _140.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkL6HYACBEcjs.resolveFarmApiCatalogInput.call(void 0, config))};
|
|
6424
6414
|
` : ""}${_optionalChain([config, 'access', _141 => _141.agent, 'optionalAccess', _142 => _142.manifest]) !== false ? `const farmAppManifestInput = ${JSON.stringify(
|
|
6425
|
-
|
|
6415
|
+
_chunkL6HYACBEcjs.resolveFarmAppManifestInput.call(void 0, config, {
|
|
6426
6416
|
build: config.deploymentId,
|
|
6427
|
-
packages:
|
|
6428
|
-
webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ?
|
|
6417
|
+
packages: _chunkROQ4C4LJcjs.resolveFarmAppPackages.call(void 0, config.root),
|
|
6418
|
+
webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkROQ4C4LJcjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
|
|
6429
6419
|
})
|
|
6430
6420
|
)};
|
|
6431
6421
|
${servesDefaultMCP ? "farmAppManifestInput.defaultMCP = getFarmDefaultMCPServer;\n" : ""}// A guard written for an MCP server's path keeps its tools out of the public view.
|
|
@@ -6899,8 +6889,8 @@ function stripFarmDocumentWrappers(markup) {
|
|
|
6899
6889
|
function peelFarmDocumentPrefix(markup) {
|
|
6900
6890
|
let inner = markup.replace(/^\\s+/, "");
|
|
6901
6891
|
let hoisted = "";
|
|
6902
|
-
const wrapper = /^<div\\b[^>]*style=["']display\\s*:\\s*contents["'][^>]*>/i;
|
|
6903
|
-
const hoistable = /${
|
|
6892
|
+
const wrapper = /^<div\\b[^>]*style=["']display\\s*:\\s*contents;?\\s*["'][^>]*>/i;
|
|
6893
|
+
const hoistable = /${_chunkL6HYACBEcjs.HOISTED_HEAD_ELEMENT.source}/i;
|
|
6904
6894
|
let match;
|
|
6905
6895
|
while ((match = wrapper.exec(inner) || hoistable.exec(inner))) {
|
|
6906
6896
|
if (!/^<div/i.test(match[0])) hoisted += match[0];
|
|
@@ -7431,7 +7421,7 @@ function createFarmAgentRobotsResponse(request) {
|
|
|
7431
7421
|
// a route guard.
|
|
7432
7422
|
const farmAgentGuardedPages = new Set(${JSON.stringify(
|
|
7433
7423
|
pageRoutes.map((route) => route.pattern).filter(
|
|
7434
|
-
(pattern) => !pattern.includes("[") &&
|
|
7424
|
+
(pattern) => !pattern.includes("[") && _chunkL6HYACBEcjs.farmPathGuardCoversPage.call(void 0,
|
|
7435
7425
|
{
|
|
7436
7426
|
config: { middleware: config.middleware, integrations: config.integrations },
|
|
7437
7427
|
middlewareRoutes
|
|
@@ -7478,7 +7468,7 @@ ${servesDefaultMCP ? `// agent.mcp: the default read-only MCP server at /mcp, as
|
|
|
7478
7468
|
// aside for a page route that answers /mcp and for any MCP server published or
|
|
7479
7469
|
// registered at runtime, such as the docs engine's.
|
|
7480
7470
|
const farmDefaultMCPServer = ${JSON.stringify(
|
|
7481
|
-
_chunkBMOBTMDRcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root),
|
|
7471
|
+
_chunkBMOBTMDRcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunkEH3464KFcjs.FARM_VERSION)
|
|
7482
7472
|
)};
|
|
7483
7473
|
let farmDefaultMCPRouteFree;
|
|
7484
7474
|
function getFarmDefaultMCPServer() {
|
|
@@ -8515,7 +8505,7 @@ ${hasServerRuntimeIntegrations ? `
|
|
|
8515
8505
|
// agent.manifest: /.well-known/farmjs.json (and 0.1.34's /.well-known/farmjs), the app's
|
|
8516
8506
|
// public manifest; Farm Infra's signed request gets the full view.
|
|
8517
8507
|
if (
|
|
8518
|
-
[${JSON.stringify(
|
|
8508
|
+
[${JSON.stringify(_chunkL6HYACBEcjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunkL6HYACBEcjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
|
|
8519
8509
|
normalizeRuntimePath(routePathname),
|
|
8520
8510
|
)
|
|
8521
8511
|
) {
|
|
@@ -8527,7 +8517,7 @@ ${hasServerRuntimeIntegrations ? `
|
|
|
8527
8517
|
` : ""}
|
|
8528
8518
|
${_optionalChain([config, 'access', _159 => _159.agent, 'optionalAccess', _160 => _160.apiCatalog]) ? `
|
|
8529
8519
|
// agent.apiCatalog: list the OpenAPI and MCP surfaces at the RFC 9727 path.
|
|
8530
|
-
if (normalizeRuntimePath(routePathname) === ${JSON.stringify(
|
|
8520
|
+
if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkL6HYACBEcjs.FARM_API_CATALOG_PATH)}) {
|
|
8531
8521
|
return applyProductionMiddlewareHeaders(
|
|
8532
8522
|
createFarmApiCatalogResponse(request.method, farmApiCatalogInput, request),
|
|
8533
8523
|
middlewareHeaders,
|
|
@@ -9912,9 +9902,9 @@ function getPhysicalPrerenderBypassReason(options) {
|
|
|
9912
9902
|
if (rewriteSources.some((source) => middlewarePatternMatches(source, pathname))) {
|
|
9913
9903
|
return "rewrite";
|
|
9914
9904
|
}
|
|
9915
|
-
if (
|
|
9916
|
-
if (
|
|
9917
|
-
if (
|
|
9905
|
+
if (_chunkL6HYACBEcjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
|
|
9906
|
+
if (_chunkL6HYACBEcjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
|
|
9907
|
+
if (_chunkEX4MKHXNcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
|
|
9918
9908
|
if (farmServerRuntimePluginsMayHandlePath(config, pathname)) return "server runtime plugin";
|
|
9919
9909
|
const manifestEntry = getManifestPageEntry(routeRuntimeManifest, pathname);
|
|
9920
9910
|
if (_optionalChain([manifestEntry, 'optionalAccess', _177 => _177.rendering]) === "dynamic") return "dynamic runtime manifest";
|
|
@@ -9949,10 +9939,10 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
|
|
|
9949
9939
|
const nitroBuilder = nitroBuilderResult.value;
|
|
9950
9940
|
const isVercel = preset === "vercel" || preset === "vercel-edge";
|
|
9951
9941
|
const isCloudflareWorker = preset === "cloudflare-module";
|
|
9952
|
-
const outputDir =
|
|
9942
|
+
const outputDir = _chunkEX4MKHXNcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
9953
9943
|
const runtimeServerOutputDir = isVercel ? _path2.default.join(outputDir, "functions", "__nitro.func") : _path2.default.join(outputDir, "server");
|
|
9954
9944
|
const ssrOutputDir = _path2.default.join(root, distDir, "ssr");
|
|
9955
|
-
const imageRuntime =
|
|
9945
|
+
const imageRuntime = _chunkROQ4C4LJcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
|
|
9956
9946
|
const hasGeneratedMetadataImages = Array.from(routeManager.getMetadataImages().values()).some(
|
|
9957
9947
|
(image) => image.sourceType === "module"
|
|
9958
9948
|
);
|
|
@@ -9973,7 +9963,7 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
|
|
|
9973
9963
|
const ssgCollectionPromise = routeManager.collectSSGPages();
|
|
9974
9964
|
const middlewareRoutesPromise = discoverMiddlewareRoutes(_chunkWBKEZXWEcjs.getFarmAppDirectories.call(void 0, config));
|
|
9975
9965
|
const configuredResponseRoutesPromise = Promise.all([config.redirects(), config.rewrites()]);
|
|
9976
|
-
const farmWorkflows = await
|
|
9966
|
+
const farmWorkflows = await _chunkJEIG3EWEcjs.prepareFarmWorkflowsForNitro.call(void 0, config);
|
|
9977
9967
|
const farmCron = await _chunk6EXBPJ24cjs.prepareFarmCronForNitro.call(void 0, config);
|
|
9978
9968
|
const [{ ssg: ssgPages }, middlewareRoutes, [configuredRedirects, configuredRewrites]] = await Promise.all([
|
|
9979
9969
|
ssgCollectionPromise,
|
|
@@ -10349,7 +10339,11 @@ function toFarmNodeResponse(request, response) {
|
|
|
10349
10339
|
...farmWorkflows.tasks,
|
|
10350
10340
|
...farmCron.tasks
|
|
10351
10341
|
},
|
|
10352
|
-
|
|
10342
|
+
// Vercel crons call Farm's own secret-checked workflow and cron routes
|
|
10343
|
+
// (postProcessVercelOutput). Nitro's Vercel preset would also turn
|
|
10344
|
+
// scheduledTasks into a `/_vercel/cron` route that runs tasks without a
|
|
10345
|
+
// secret check unless CRON_SECRET is set, and double-schedules them when it is.
|
|
10346
|
+
scheduledTasks: isVercel ? {} : scheduledTasks,
|
|
10353
10347
|
...isCloudflareWorker && cloudflareCronConfig ? {
|
|
10354
10348
|
cloudflare: cloudflareCronConfig
|
|
10355
10349
|
} : {},
|
|
@@ -10456,7 +10450,7 @@ function toFarmNodeResponse(request, response) {
|
|
|
10456
10450
|
if (config.security.csp && config.security.csp.nonce) {
|
|
10457
10451
|
nitroInstance.hooks.hook("prerender:generate", async (route) => {
|
|
10458
10452
|
if (!route.contents || !_optionalChain([route, 'access', _207 => _207.contentType, 'optionalAccess', _208 => _208.toLowerCase, 'call', _209 => _209(), 'access', _210 => _210.includes, 'call', _211 => _211("html")])) return;
|
|
10459
|
-
const staticCsp = await
|
|
10453
|
+
const staticCsp = await _chunk25LPIZSXcjs.applyFarmCspHashesToHtml.call(void 0, route.contents, config.security);
|
|
10460
10454
|
if (!staticCsp) return;
|
|
10461
10455
|
route.contents = staticCsp.html;
|
|
10462
10456
|
const routeRule = nitroInstance.options.routeRules[route.route] || {};
|
|
@@ -10526,13 +10520,13 @@ function toFarmNodeResponse(request, response) {
|
|
|
10526
10520
|
}
|
|
10527
10521
|
if (prerenderRoutes.length > 0) {
|
|
10528
10522
|
_chunk5QIKR7RRcjs.logger.info(`\u{1F4C4} Pre-rendering ${prerenderRoutes.length} SSG page(s)`);
|
|
10529
|
-
const previousPrerender = process.env[
|
|
10530
|
-
process.env[
|
|
10523
|
+
const previousPrerender = process.env[_chunkIFWSR7YZcjs.FARM_PRERENDER_ENV];
|
|
10524
|
+
process.env[_chunkIFWSR7YZcjs.FARM_PRERENDER_ENV] = "1";
|
|
10531
10525
|
try {
|
|
10532
10526
|
await nitroBuilder.prerender(nitroInstance);
|
|
10533
10527
|
} finally {
|
|
10534
|
-
if (previousPrerender === void 0) delete process.env[
|
|
10535
|
-
else process.env[
|
|
10528
|
+
if (previousPrerender === void 0) delete process.env[_chunkIFWSR7YZcjs.FARM_PRERENDER_ENV];
|
|
10529
|
+
else process.env[_chunkIFWSR7YZcjs.FARM_PRERENDER_ENV] = previousPrerender;
|
|
10536
10530
|
}
|
|
10537
10531
|
}
|
|
10538
10532
|
const sharpRuntimeStagePromise = imageRuntime === "node" ? stageSharpRuntime(config, root, distDir, fs4, preset) : Promise.resolve(null);
|
|
@@ -10707,7 +10701,7 @@ async function postProcessVercelOutput(root, outputDir, fs4, config, farmWorkflo
|
|
|
10707
10701
|
presetRoutes: Array.isArray(vercelConfig.routes) ? vercelConfig.routes : [],
|
|
10708
10702
|
runtimeRoutes
|
|
10709
10703
|
});
|
|
10710
|
-
const vercelConfigWithWorkflowCrons =
|
|
10704
|
+
const vercelConfigWithWorkflowCrons = _chunkJEIG3EWEcjs.applyFarmWorkflowVercelCrons.call(void 0,
|
|
10711
10705
|
vercelConfig,
|
|
10712
10706
|
farmWorkflows.workflows
|
|
10713
10707
|
);
|
|
@@ -10723,7 +10717,7 @@ async function copyFarmDocsContentForVercel(config, root, nitroFuncDir, fs4) {
|
|
|
10723
10717
|
const docsContentDir = resolveBuildDocsContentDir(config, root);
|
|
10724
10718
|
if (!docsContentDir) return;
|
|
10725
10719
|
const bundledContentDir = _path2.default.join(nitroFuncDir, "farm-docs-content");
|
|
10726
|
-
const lastModifiedManifest =
|
|
10720
|
+
const lastModifiedManifest = _chunkMY5PZYADcjs.createFarmDocsLastModifiedManifest.call(void 0, docsContentDir, {
|
|
10727
10721
|
fallback: "now"
|
|
10728
10722
|
});
|
|
10729
10723
|
await fs4.rm(bundledContentDir, { recursive: true, force: true });
|
|
@@ -10733,7 +10727,7 @@ async function copyFarmDocsContentForVercel(config, root, nitroFuncDir, fs4) {
|
|
|
10733
10727
|
force: true
|
|
10734
10728
|
});
|
|
10735
10729
|
await fs4.writeFile(
|
|
10736
|
-
_path2.default.join(bundledContentDir,
|
|
10730
|
+
_path2.default.join(bundledContentDir, _chunkMY5PZYADcjs.FARM_DOCS_LAST_MODIFIED_MANIFEST),
|
|
10737
10731
|
`${JSON.stringify(lastModifiedManifest, null, 2)}
|
|
10738
10732
|
`
|
|
10739
10733
|
);
|
|
@@ -10763,7 +10757,7 @@ async function stageSharpRuntime(config, root, distDir, fs4, preset) {
|
|
|
10763
10757
|
if (!resolvePackageJson(projectRequire, "sharp")) {
|
|
10764
10758
|
try {
|
|
10765
10759
|
sharpRequire = _module.createRequire.call(void 0, projectRequire.resolve("@farm.js/core"));
|
|
10766
|
-
} catch (
|
|
10760
|
+
} catch (e29) {
|
|
10767
10761
|
}
|
|
10768
10762
|
}
|
|
10769
10763
|
const copiedPackages = /* @__PURE__ */ new Map();
|
|
@@ -10810,7 +10804,7 @@ async function stageSharpRuntime(config, root, distDir, fs4, preset) {
|
|
|
10810
10804
|
try {
|
|
10811
10805
|
await copyPackage("sharp", sharpRequire);
|
|
10812
10806
|
if (!copiedPackages.has("sharp")) {
|
|
10813
|
-
throw new Error(`Farm image optimization requires sharp. ${
|
|
10807
|
+
throw new Error(`Farm image optimization requires sharp. ${_chunkROQ4C4LJcjs.SHARP_INSTALL_HINT}`);
|
|
10814
10808
|
}
|
|
10815
10809
|
} catch (error) {
|
|
10816
10810
|
await fs4.rm(stageDir, { recursive: true, force: true });
|
|
@@ -10897,7 +10891,7 @@ function resolveMetadataImageRuntimePackageJson(root) {
|
|
|
10897
10891
|
if (packageJsonPath) return packageJsonPath;
|
|
10898
10892
|
try {
|
|
10899
10893
|
return resolvePackageJson(_module.createRequire.call(void 0, projectRequire.resolve("@farm.js/core")), "@vercel/og");
|
|
10900
|
-
} catch (
|
|
10894
|
+
} catch (e30) {
|
|
10901
10895
|
return null;
|
|
10902
10896
|
}
|
|
10903
10897
|
}
|
|
@@ -10948,7 +10942,7 @@ function resolvePackageJson(parentRequire, packageName) {
|
|
|
10948
10942
|
const resolved = parentRequire.resolve(request);
|
|
10949
10943
|
if (resolved.endsWith(".json")) return resolved;
|
|
10950
10944
|
_nullishCoalesce(metadataModule, () => ( (metadataModule = resolved)));
|
|
10951
|
-
} catch (
|
|
10945
|
+
} catch (e31) {
|
|
10952
10946
|
}
|
|
10953
10947
|
}
|
|
10954
10948
|
try {
|
|
@@ -10959,13 +10953,13 @@ function resolvePackageJson(parentRequire, packageName) {
|
|
|
10959
10953
|
try {
|
|
10960
10954
|
const manifest = JSON.parse(_fs.readFileSync.call(void 0, candidate, "utf8"));
|
|
10961
10955
|
if (manifest.name === packageName) return candidate;
|
|
10962
|
-
} catch (
|
|
10956
|
+
} catch (e32) {
|
|
10963
10957
|
}
|
|
10964
10958
|
}
|
|
10965
10959
|
if (_path2.default.basename(directory) === "node_modules") break;
|
|
10966
10960
|
directory = _path2.default.dirname(directory);
|
|
10967
10961
|
}
|
|
10968
|
-
} catch (
|
|
10962
|
+
} catch (e33) {
|
|
10969
10963
|
}
|
|
10970
10964
|
return null;
|
|
10971
10965
|
}
|
|
@@ -10975,13 +10969,13 @@ async function copyPrismaClientForVercel(root, nitroFuncDir, fs4) {
|
|
|
10975
10969
|
let prismaClientDir;
|
|
10976
10970
|
try {
|
|
10977
10971
|
prismaClientDir = _path2.default.dirname(projectRequire.resolve("@prisma/client/default.js"));
|
|
10978
|
-
} catch (
|
|
10972
|
+
} catch (e34) {
|
|
10979
10973
|
return;
|
|
10980
10974
|
}
|
|
10981
10975
|
const generatedClientDir = _path2.default.join(prismaClientDir, "..", "..", ".prisma", "client");
|
|
10982
10976
|
try {
|
|
10983
10977
|
await fs4.access(generatedClientDir);
|
|
10984
|
-
} catch (
|
|
10978
|
+
} catch (e35) {
|
|
10985
10979
|
return;
|
|
10986
10980
|
}
|
|
10987
10981
|
const targetNodeModules = _path2.default.join(nitroFuncDir, "node_modules");
|
|
@@ -11048,7 +11042,7 @@ function createBuildTargetBaseline(config) {
|
|
|
11048
11042
|
preset,
|
|
11049
11043
|
distDir,
|
|
11050
11044
|
outputDir,
|
|
11051
|
-
outputWasDerived: outputDir ===
|
|
11045
|
+
outputWasDerived: outputDir === _chunkEX4MKHXNcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
|
|
11052
11046
|
};
|
|
11053
11047
|
}
|
|
11054
11048
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createBuildTargetBaseline, "createBuildTargetBaseline");
|
|
@@ -11058,8 +11052,8 @@ function resolveBuildTargets(config, options, baseline) {
|
|
|
11058
11052
|
const distDir = config.distDir || ".farm";
|
|
11059
11053
|
const outputWasReplaced = config.deploy.outputDir !== baseline.outputDir;
|
|
11060
11054
|
const shouldRefreshDerivedOutput = baseline.outputWasDerived && !outputWasReplaced && (preset !== baseline.preset || distDir !== baseline.distDir);
|
|
11061
|
-
const deployTarget = preset === config.deploy.preset ? config.deploy.target :
|
|
11062
|
-
const outputDir = shouldRefreshDerivedOutput ?
|
|
11055
|
+
const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkEX4MKHXNcjs.getDeployTargetForPreset.call(void 0, preset);
|
|
11056
|
+
const outputDir = shouldRefreshDerivedOutput ? _chunkEX4MKHXNcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
|
|
11063
11057
|
return {
|
|
11064
11058
|
root,
|
|
11065
11059
|
preset,
|
|
@@ -11067,7 +11061,7 @@ function resolveBuildTargets(config, options, baseline) {
|
|
|
11067
11061
|
distDir,
|
|
11068
11062
|
deployTarget,
|
|
11069
11063
|
outputDir,
|
|
11070
|
-
deployOutputDir:
|
|
11064
|
+
deployOutputDir: _chunkEX4MKHXNcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
|
|
11071
11065
|
};
|
|
11072
11066
|
}
|
|
11073
11067
|
_chunkS3JO3N4Hcjs.__name.call(void 0, resolveBuildTargets, "resolveBuildTargets");
|
|
@@ -11105,7 +11099,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
11105
11099
|
};
|
|
11106
11100
|
config = {
|
|
11107
11101
|
...config,
|
|
11108
|
-
images:
|
|
11102
|
+
images: _chunkROQ4C4LJcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
|
|
11109
11103
|
root: targets.root,
|
|
11110
11104
|
preset: targets.preset
|
|
11111
11105
|
})
|
|
@@ -11133,18 +11127,18 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
11133
11127
|
root,
|
|
11134
11128
|
rendererBuild.signal
|
|
11135
11129
|
);
|
|
11136
|
-
const farmApp =
|
|
11130
|
+
const farmApp = _chunkROQ4C4LJcjs.createFarmApp.call(void 0, config, projectModuleServer);
|
|
11137
11131
|
await farmApp.initialize();
|
|
11138
11132
|
const routeManager = farmApp.getRouteManager();
|
|
11139
11133
|
const serverRenderer = farmApp.getServerRenderer();
|
|
11140
|
-
const typeArtifacts =
|
|
11134
|
+
const typeArtifacts = _chunkQEILRWVVcjs.generateFarmTypeArtifacts.call(void 0, {
|
|
11141
11135
|
root,
|
|
11142
11136
|
srcDir,
|
|
11143
11137
|
layers: config.layers,
|
|
11144
11138
|
plugins: config.plugins,
|
|
11145
11139
|
extraRoutes: [
|
|
11146
11140
|
..._optionalChain([config, 'access', _218 => _218.openapi, 'optionalAccess', _219 => _219.enabled]) && config.openapi.route ? [config.openapi.route] : [],
|
|
11147
|
-
...
|
|
11141
|
+
..._chunkMY5PZYADcjs.getFarmDocsRouteTypeEntries.call(void 0, config.docs)
|
|
11148
11142
|
],
|
|
11149
11143
|
suppressLintOnLink: config.suppressLintOnLink,
|
|
11150
11144
|
componentExtensions: config.renderer.componentExtensions,
|
|
@@ -11153,7 +11147,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
11153
11147
|
const message = error instanceof Error ? error.message : String(error);
|
|
11154
11148
|
_chunk5QIKR7RRcjs.logger.warn(`Route type generation failed (farm.d.ts may be stale): ${message}`);
|
|
11155
11149
|
});
|
|
11156
|
-
const apiRouteManager = new (0,
|
|
11150
|
+
const apiRouteManager = new (0, _chunkS7MTDRYAcjs.APIRouteManager)(
|
|
11157
11151
|
_chunkWBKEZXWEcjs.getFarmAppDirectories.call(void 0, config),
|
|
11158
11152
|
projectModuleServer,
|
|
11159
11153
|
{
|
|
@@ -11240,7 +11234,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
11240
11234
|
ssr: true,
|
|
11241
11235
|
buildLifetime
|
|
11242
11236
|
});
|
|
11243
|
-
const viteConfig =
|
|
11237
|
+
const viteConfig = _chunkROQ4C4LJcjs.mergeFarmViteConfig.call(void 0,
|
|
11244
11238
|
{
|
|
11245
11239
|
root,
|
|
11246
11240
|
appType: "custom",
|
|
@@ -11252,7 +11246,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
11252
11246
|
},
|
|
11253
11247
|
plugins: [
|
|
11254
11248
|
...rendererVitePlugins,
|
|
11255
|
-
|
|
11249
|
+
_chunkROQ4C4LJcjs.farmFontImportsPlugin.call(void 0, {
|
|
11256
11250
|
root,
|
|
11257
11251
|
basePath: config.basePath,
|
|
11258
11252
|
publicDir: config.publicDir
|
|
@@ -11264,7 +11258,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
11264
11258
|
hmr: false
|
|
11265
11259
|
},
|
|
11266
11260
|
resolve: {
|
|
11267
|
-
alias:
|
|
11261
|
+
alias: _chunkROQ4C4LJcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
|
|
11268
11262
|
dedupe: [...config.renderer.dedupe || []]
|
|
11269
11263
|
},
|
|
11270
11264
|
optimizeDeps: {
|
|
@@ -11380,7 +11374,7 @@ function resolveLegacyPageEntry(config, root, srcDir) {
|
|
|
11380
11374
|
_chunkS3JO3N4Hcjs.__name.call(void 0, resolveLegacyPageEntry, "resolveLegacyPageEntry");
|
|
11381
11375
|
async function buildNitro(config, routeManager, apiRouteManager, serverRenderer, preset, root, distDir, pluginManager) {
|
|
11382
11376
|
const [{ createNitroConfig }, { createNitro, build: nitroBuild }] = await Promise.all([
|
|
11383
|
-
import("./nitro-
|
|
11377
|
+
import("./nitro-NPGU6VBT.cjs"),
|
|
11384
11378
|
import("nitro/builder")
|
|
11385
11379
|
]);
|
|
11386
11380
|
let nitroConfig = await createNitroConfig(
|
|
@@ -11393,7 +11387,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
|
|
|
11393
11387
|
if (pluginManager) {
|
|
11394
11388
|
nitroConfig = await pluginManager.runHookSerial("beforeNitroBuild", nitroConfig);
|
|
11395
11389
|
}
|
|
11396
|
-
const outputDir =
|
|
11390
|
+
const outputDir = _chunkEX4MKHXNcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
11397
11391
|
const serverOutputDir = _path2.default.join(outputDir, "server");
|
|
11398
11392
|
const publicOutputDir = _path2.default.join(outputDir, "public");
|
|
11399
11393
|
const { mkdir, cp } = await import("fs/promises");
|
|
@@ -11452,7 +11446,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
|
|
|
11452
11446
|
const { readFile } = await import("fs/promises");
|
|
11453
11447
|
const manifestContent = await readFile(clientManifestPath, "utf-8");
|
|
11454
11448
|
farmRegistry.clientManifest = JSON.parse(manifestContent);
|
|
11455
|
-
} catch (
|
|
11449
|
+
} catch (e36) {
|
|
11456
11450
|
farmRegistry.clientManifest = {};
|
|
11457
11451
|
}
|
|
11458
11452
|
} catch (error) {
|
|
@@ -11464,7 +11458,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
|
|
|
11464
11458
|
root,
|
|
11465
11459
|
preset,
|
|
11466
11460
|
distDir,
|
|
11467
|
-
outputDir:
|
|
11461
|
+
outputDir: _chunkEX4MKHXNcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
|
|
11468
11462
|
});
|
|
11469
11463
|
}
|
|
11470
11464
|
}
|