@farm.js/core 0.2.0 → 0.2.3
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-xPua9Zdz.d.ts → agent-mcp.d-DuZjglYX.d.ts} +1 -1
- package/dist/{agent-mcp.d-DhZf5-v0.d.mts → agent-mcp.d-gI3ahrF6.d.mts} +1 -1
- package/dist/agent-runtime.d.mts +4 -4
- package/dist/agent-runtime.d.ts +4 -4
- package/dist/analyzer-5RSMYPWD.cjs +17 -0
- package/dist/{analyzer-LQ4LVDCW.mjs → analyzer-7TNBOI3J.mjs} +2 -2
- package/dist/api/node.d.mts +6 -6
- package/dist/api/node.d.ts +6 -6
- package/dist/api/route-manager.cjs +5 -5
- package/dist/api/route-manager.d.mts +6 -6
- package/dist/api/route-manager.d.ts +6 -6
- package/dist/api/route-manager.mjs +4 -4
- package/dist/api/runtime.d.mts +5 -5
- package/dist/api/runtime.d.ts +5 -5
- package/dist/api.cjs +6 -6
- package/dist/api.d.mts +7 -7
- package/dist/api.d.ts +7 -7
- package/dist/api.mjs +5 -5
- package/dist/{app-manifest.d-D6l1Wkn6.d.ts → app-manifest.d-B3h89j6a.d.ts} +1 -1
- package/dist/{app-manifest.d-Bq9VWtpk.d.mts → app-manifest.d-bHK9EGPI.d.mts} +1 -1
- package/dist/app-markdown.d.mts +5 -5
- package/dist/app-markdown.d.ts +5 -5
- package/dist/{app.d-gnTrW72o.d.ts → app.d-C3uyET_L.d.ts} +4 -4
- package/dist/{app.d-Bn1bqBkf.d.mts → app.d-Cr7fXGvJ.d.mts} +4 -4
- package/dist/{chunk-MEIZIRMK.mjs → chunk-2FKGY2ZS.mjs} +1 -1
- package/dist/{chunk-YOVSWY2E.mjs → chunk-2XDRRAAD.mjs} +1 -1
- package/dist/{chunk-GAD63TH7.mjs → chunk-4WCEWA22.mjs} +4 -4
- package/dist/{chunk-YQXLBYY2.cjs → chunk-5B2Y4EVS.cjs} +32 -8
- package/dist/{chunk-QCVP22KW.cjs → chunk-5RYBQKBY.cjs} +3 -3
- package/dist/{chunk-VFZQXADS.cjs → chunk-6QWBZGGP.cjs} +139 -137
- package/dist/{chunk-DVL3UVYT.mjs → chunk-6XABTMXR.mjs} +2 -2
- package/dist/{chunk-RDT2LJES.mjs → chunk-6YOMQ4GX.mjs} +9 -9
- package/dist/chunk-7QGA6UX6.cjs +26 -0
- package/dist/{chunk-LGL5QKUJ.cjs → chunk-A4WDDASS.cjs} +2 -2
- package/dist/{chunk-V36K4TSU.mjs → chunk-ADKPJZPP.mjs} +1 -1
- package/dist/{chunk-LQZXCSYG.mjs → chunk-B6K2ZM3C.mjs} +5 -3
- package/dist/{chunk-Z7YIQ7AJ.cjs → chunk-C2J5LMH6.cjs} +1 -1
- package/dist/{chunk-D7KBMJ7L.mjs → chunk-CIRC2LRP.mjs} +1 -1
- package/dist/{chunk-RMLXUVR5.cjs → chunk-CS6GXE42.cjs} +91 -21
- package/dist/{chunk-DNERKYN4.cjs → chunk-CSCORWIQ.cjs} +15 -15
- package/dist/{chunk-GK2RCRT2.mjs → chunk-CTHQE7DO.mjs} +1 -1
- package/dist/{chunk-PRKFECGT.cjs → chunk-DZWX7FDX.cjs} +6 -4
- package/dist/{chunk-ZVEKOMZS.mjs → chunk-ERY4VYUH.mjs} +1 -1
- package/dist/{chunk-4ER5KYSC.cjs → chunk-F6JSVP5C.cjs} +3 -3
- package/dist/chunk-G7LNCHTS.mjs +21 -0
- package/dist/{chunk-ZCT6B5PQ.cjs → chunk-GWFNJLDN.cjs} +11 -11
- package/dist/{chunk-O47IT4CS.cjs → chunk-H7DAFRYR.cjs} +4 -4
- package/dist/{chunk-MX4G24YS.mjs → chunk-HOBCEE5J.mjs} +17 -15
- package/dist/{chunk-ZF7N222A.mjs → chunk-IPKL7L6B.mjs} +2 -2
- package/dist/{chunk-54INSSWI.mjs → chunk-IQQ3SWH6.mjs} +99 -56
- package/dist/{chunk-MUQP2APN.cjs → chunk-JJUHUPRB.cjs} +2 -2
- package/dist/{chunk-2LHO4HTP.cjs → chunk-K7RXZ77U.cjs} +2 -2
- package/dist/{chunk-SIHHYNX4.mjs → chunk-KJMRW3IP.mjs} +1 -1
- package/dist/{chunk-PYPHM7AS.cjs → chunk-LH7S7FI3.cjs} +5 -1
- package/dist/chunk-O77EKGAS.mjs +36 -0
- package/dist/{chunk-WXPY5FRF.cjs → chunk-P2PF5FUW.cjs} +2 -2
- package/dist/{chunk-WOPQQCP3.mjs → chunk-P3UT3OLV.mjs} +3 -3
- package/dist/{chunk-PZ5ZJAAO.mjs → chunk-POCWXRXW.mjs} +1 -1
- package/dist/{chunk-Z23OCU33.cjs → chunk-RF3VCNV7.cjs} +6 -6
- package/dist/{chunk-MLMDOIBY.mjs → chunk-RS4QZOFK.mjs} +3 -3
- package/dist/{chunk-MZG5M4JS.cjs → chunk-SO4USIKL.cjs} +4 -4
- package/dist/{chunk-HYYOVRED.mjs → chunk-SPVXL37B.mjs} +1 -1
- package/dist/{chunk-VWPGK6UV.cjs → chunk-TAXZQNFZ.cjs} +74 -74
- package/dist/{chunk-KKXGBQ2K.mjs → chunk-UKGAP2OK.mjs} +4 -4
- package/dist/{chunk-DZXD6CYJ.mjs → chunk-V2RXBDV6.mjs} +4 -0
- package/dist/{chunk-FFROR7QD.mjs → chunk-VZRY3CL5.mjs} +1 -1
- package/dist/{chunk-LO5BNR6Y.mjs → chunk-W5T3ZAFU.mjs} +25 -1
- package/dist/{chunk-ADCVSTFV.cjs → chunk-WAQIO2VD.cjs} +2 -2
- package/dist/{chunk-JKNQMGZE.cjs → chunk-WFL7CD5C.cjs} +12 -12
- package/dist/{chunk-KJW6KEOZ.mjs → chunk-WRT775N6.mjs} +92 -22
- package/dist/{chunk-RP55BUJM.mjs → chunk-XGBDRC5B.mjs} +2 -2
- package/dist/{chunk-J6JAUJPC.cjs → chunk-XLJ2REOI.cjs} +385 -342
- package/dist/{chunk-ZTNU4XCC.cjs → chunk-Y3MTKPLN.cjs} +7 -7
- package/dist/{chunk-MNBFSAWF.cjs → chunk-YCGOQKVC.cjs} +20 -1
- package/dist/{chunk-T4VF6BYV.cjs → chunk-YPPAYYSX.cjs} +6 -6
- package/dist/{chunk-PATIHHC7.cjs → chunk-ZQOHL6TX.cjs} +2 -2
- package/dist/{client-component.d-DT5OKBZu.d.ts → client-component.d-BavTzqsn.d.ts} +1 -1
- package/dist/{client-component.d-34DDMZcl.d.mts → client-component.d-X3j9FOZ2.d.mts} +1 -1
- package/dist/{client-plugins.d-D9CnUvZ5.d.ts → client-plugins.d-CqTr5IrQ.d.ts} +64 -4
- package/dist/{client-plugins.d-D7k9t9Ge.d.mts → client-plugins.d-DnnAopKG.d.mts} +64 -4
- package/dist/client-plugins.d.mts +4 -4
- package/dist/client-plugins.d.ts +4 -4
- package/dist/client.d.mts +10 -10
- package/dist/client.d.ts +10 -10
- package/dist/config.d.mts +4 -4
- package/dist/config.d.ts +4 -4
- package/dist/desktop.cjs +5 -1
- package/dist/desktop.d.mts +11 -7
- package/dist/desktop.d.ts +11 -7
- package/dist/desktop.mjs +4 -0
- package/dist/{dev-guard-M3ZCDWCK.cjs → dev-guard-5NUIX6IZ.cjs} +4 -3
- package/dist/{dev-guard-TFVWJNIB.mjs → dev-guard-L42ZZRCZ.mjs} +2 -1
- package/dist/{devtools-R77KAJA4.mjs → devtools-VPFBH6I2.mjs} +1 -1
- package/dist/{devtools-IUU4SWQL.cjs → devtools-YTND2OWT.cjs} +2 -2
- package/dist/docs.cjs +3 -3
- package/dist/docs.d.mts +6 -6
- package/dist/docs.d.ts +6 -6
- package/dist/docs.mjs +2 -2
- package/dist/environment/vite.cjs +4 -4
- package/dist/environment/vite.d.mts +1 -1
- package/dist/environment/vite.d.ts +1 -1
- package/dist/environment/vite.mjs +3 -3
- package/dist/{generate-route-types.d-BFOMM8Ef.d.mts → generate-route-types.d-CAiRw4N0.d.mts} +1 -1
- package/dist/{generate-route-types.d-C2m8myHb.d.ts → generate-route-types.d-Dz8MOQ3u.d.ts} +1 -1
- package/dist/{handler.d-fxTjv3Nn.d.mts → handler.d-BSlpYCDB.d.mts} +2 -2
- package/dist/{handler.d-DbZvbwNi.d.ts → handler.d-DgX7gPO6.d.ts} +2 -2
- package/dist/{headers.d-OBHpGTF_.d.mts → headers.d-Cf8l5LMo.d.mts} +1 -1
- package/dist/{headers.d-oeWybIk8.d.ts → headers.d-CmxW42R2.d.ts} +1 -1
- package/dist/index.cjs +29 -28
- package/dist/{index.d-CRrPQwlO.d.mts → index.d-7xoJqKRZ.d.mts} +1 -1
- package/dist/{index.d-BM-dKdzH.d.ts → index.d-BZZt7kxO.d.ts} +1 -1
- package/dist/index.d.mts +27 -27
- package/dist/index.d.ts +27 -27
- package/dist/index.mjs +24 -23
- package/dist/integrations/orm.d.mts +4 -4
- package/dist/integrations/orm.d.ts +4 -4
- package/dist/integrations.d.mts +4 -4
- package/dist/integrations.d.ts +4 -4
- package/dist/internal/app-markdown-runtime.d.mts +5 -5
- package/dist/internal/app-markdown-runtime.d.ts +5 -5
- package/dist/internal/build-runtime.cjs +24 -23
- package/dist/internal/build-runtime.d.mts +7 -7
- package/dist/internal/build-runtime.d.ts +7 -7
- package/dist/internal/build-runtime.mjs +23 -22
- package/dist/internal/cli-runtime.cjs +12 -9
- package/dist/internal/cli-runtime.d.mts +20 -12
- package/dist/internal/cli-runtime.d.ts +20 -12
- package/dist/internal/cli-runtime.mjs +11 -8
- 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 +8 -8
- package/dist/internal/client-runtime.d.ts +8 -8
- package/dist/internal/compression-runtime.d.mts +4 -4
- package/dist/internal/compression-runtime.d.ts +4 -4
- package/dist/internal/config-runtime.cjs +5 -4
- package/dist/internal/config-runtime.d.mts +8 -8
- package/dist/internal/config-runtime.d.ts +8 -8
- package/dist/internal/config-runtime.mjs +4 -3
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/native-server-fns.cjs +4 -4
- package/dist/internal/native-server-fns.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +4 -4
- package/dist/internal/production-runtime.d.mts +13 -13
- package/dist/internal/production-runtime.d.ts +13 -13
- package/dist/internal/production-runtime.mjs +3 -3
- package/dist/internal/spa-router.d.mts +6 -6
- package/dist/internal/spa-router.d.ts +6 -6
- package/dist/internal/start-manifest.d.mts +4 -4
- package/dist/internal/start-manifest.d.ts +4 -4
- package/dist/{layers.d-CH0bC4QL.d.mts → layers.d-dNBkiNE9.d.mts} +1 -1
- package/dist/{layers.d-CH0bC4QL.d.ts → layers.d-dNBkiNE9.d.ts} +1 -1
- package/dist/{manager-STAB5TVZ.cjs → manager-YRIENS63.cjs} +4 -4
- package/dist/{manager-EFPBRS3U.mjs → manager-YTJOAHII.mjs} +3 -3
- package/dist/markdown.d.mts +4 -4
- package/dist/markdown.d.ts +4 -4
- package/dist/middleware.d.mts +4 -4
- package/dist/middleware.d.ts +4 -4
- package/dist/mobile.d.mts +4 -4
- package/dist/mobile.d.ts +4 -4
- package/dist/{mount.d-TnD-Mebk.d.ts → mount.d-CD-xVBu7.d.ts} +1 -1
- package/dist/{mount.d-B7RiwjiO.d.mts → mount.d-Dd0xeRMl.d.mts} +1 -1
- package/dist/{navigation-delegate.d-VBCF0EeN.d.ts → navigation-delegate.d-Bses_F-y.d.ts} +1 -1
- package/dist/{navigation-delegate.d-Boz2511c.d.mts → navigation-delegate.d-dBNg976E.d.mts} +1 -1
- package/dist/navigation.d.mts +7 -7
- package/dist/navigation.d.ts +7 -7
- package/dist/plugin.cjs +19 -18
- package/dist/plugin.d.mts +8 -8
- package/dist/plugin.d.ts +8 -8
- package/dist/plugin.mjs +18 -17
- package/dist/{render-plan.d-BrumV_ZE.d.ts → render-plan.d-DaIwnRK2.d.ts} +1 -1
- package/dist/{render-plan.d-BwnmyfNk.d.mts → render-plan.d-vOdZHHLI.d.mts} +1 -1
- package/dist/renderer-client.d.mts +8 -8
- package/dist/renderer-client.d.ts +8 -8
- package/dist/{request.d-Dd5nRTO5.d.mts → request.d-B8U4pVFP.d.mts} +1 -1
- package/dist/{request.d-NUi01-5e.d.ts → request.d-CgXp3EEc.d.ts} +1 -1
- package/dist/request.d.mts +5 -5
- package/dist/request.d.ts +5 -5
- package/dist/{route-rendering.d-BK0Pf7_k.d.mts → route-rendering.d-BQvNYQqu.d.mts} +1 -1
- package/dist/{route-rendering.d-CJR5BPXV.d.ts → route-rendering.d-Di0AxFix.d.ts} +1 -1
- package/dist/{router.d-C-JSFCPU.d.ts → router.d-BJVGhSAJ.d.ts} +1 -1
- package/dist/{router.d-CNUS3x1j.d.mts → router.d-hNedVdoB.d.mts} +1 -1
- package/dist/routes.cjs +3 -3
- package/dist/{routes.d-D7RWvfqL.d.ts → routes.d-CYe98R_8.d.ts} +1 -1
- package/dist/{routes.d-BWvpUoYu.d.mts → routes.d-DBGnKaUQ.d.mts} +1 -1
- package/dist/routes.d.mts +4 -4
- package/dist/routes.d.ts +4 -4
- package/dist/routes.mjs +2 -2
- package/dist/{rsc-pipeline-DHISDFT7.mjs → rsc-pipeline-2JSNRVIL.mjs} +6 -5
- package/dist/{rsc-pipeline-UBWVU3NF.cjs → rsc-pipeline-WTKDMTE2.cjs} +7 -6
- package/dist/{runtime-XKRQW3YT.cjs → runtime-I4GV4CDP.cjs} +8 -8
- package/dist/{runtime-VUKMY44G.mjs → runtime-RNSTQY27.mjs} +5 -5
- package/dist/{runtime.d-B2T4bM5_.d.ts → runtime.d-0R8nHCM6.d.ts} +1 -1
- package/dist/{runtime.d-CsOpO6yQ.d.mts → runtime.d-DpeuF_T-.d.mts} +1 -1
- package/dist/{cli-runtime.d-LwIb0swO.d.mts → schema-dependencies.d-_Wyey4Wv.d.mts} +21 -13
- package/dist/{cli-runtime.d-Vvxf-Z8a.d.ts → schema-dependencies.d-tkUHREqz.d.ts} +21 -13
- package/dist/{schema.d-BM-uVGpx.d.mts → schema.d-HlGSe1on.d.mts} +1 -1
- package/dist/{schema.d-BM-uVGpx.d.ts → schema.d-HlGSe1on.d.ts} +1 -1
- package/dist/schema.d.mts +1 -1
- package/dist/schema.d.ts +1 -1
- package/dist/{server-components-status.d-DOYt4E_Q.d.ts → server-components-status.d-B2Z5WvO5.d.ts} +2 -2
- package/dist/{server-components-status.d-Cc5rir0l.d.mts → server-components-status.d-sN7ju-ie.d.mts} +2 -2
- package/dist/server-plugins.d.mts +6 -6
- package/dist/server-plugins.d.ts +6 -6
- package/dist/server.cjs +46 -45
- package/dist/server.d.mts +14 -14
- package/dist/server.d.ts +14 -14
- package/dist/server.mjs +20 -19
- package/dist/{spa-router.d-Cq5UFJvq.d.mts → spa-router.d-D3AtR2Bc.d.mts} +2 -2
- package/dist/{spa-router.d-C7FcpLxU.d.ts → spa-router.d-MjT6sGb9.d.ts} +2 -2
- package/dist/{ssg.d-BzNZemk7.d.mts → ssg.d-B32Cp_XW.d.mts} +3 -3
- package/dist/{ssg.d-DUhacIxj.d.ts → ssg.d-C1SNuPz5.d.ts} +3 -3
- package/dist/storage.d.mts +2 -2
- package/dist/storage.d.ts +2 -2
- package/dist/{store-core.d-BX3yXrxA.d.ts → store-core.d-BZ3YXs70.d.ts} +2 -2
- package/dist/{store-core.d-DbUAtSBK.d.mts → store-core.d-BbVdaoA0.d.mts} +2 -2
- package/dist/testing.cjs +6 -6
- package/dist/testing.d.mts +4 -4
- package/dist/testing.d.ts +4 -4
- package/dist/testing.mjs +5 -5
- package/dist/{types.d-C5hlNbHa.d.mts → types.d-CRiwa0jj.d.mts} +1 -1
- package/dist/{types.d-C5hlNbHa.d.ts → types.d-CRiwa0jj.d.ts} +1 -1
- package/dist/{utils.d-BhJJEXzo.d.ts → utils.d-Bjbm44fP.d.ts} +1 -1
- package/dist/{utils.d-NOMkLFpC.d.mts → utils.d-CoLozp7-.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +19 -18
- package/dist/vite.d.mts +9 -9
- package/dist/vite.d.ts +9 -9
- package/dist/vite.mjs +18 -17
- package/package.json +1 -1
- package/dist/analyzer-ZFC2L6NZ.cjs +0 -17
- package/dist/chunk-OZAVCLXY.mjs +0 -17
- /package/dist/{chunk-OAAVIFOJ.cjs → chunk-2LGM5WIK.cjs} +0 -0
- /package/dist/{chunk-ZRTBDHO2.mjs → chunk-MVNIAD6O.mjs} +0 -0
|
@@ -32,7 +32,7 @@ var _chunk6AUPJYHFcjs = require('./chunk-6AUPJYHF.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkF6JSVP5Ccjs = require('./chunk-F6JSVP5C.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -41,7 +41,7 @@ var _chunk4ER5KYSCcjs = require('./chunk-4ER5KYSC.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkK7RXZ77Ucjs = require('./chunk-K7RXZ77U.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
@@ -71,7 +71,7 @@ var _chunkTDAH76RRcjs = require('./chunk-TDAH76RR.cjs');
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
var
|
|
74
|
+
var _chunk2LGM5WIKcjs = require('./chunk-2LGM5WIK.cjs');
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
var _chunkI5PDHLKEcjs = require('./chunk-I5PDHLKE.cjs');
|
|
@@ -117,14 +117,14 @@ var _chunkKDUVIJSZcjs = require('./chunk-KDUVIJSZ.cjs');
|
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
|
|
120
|
-
var
|
|
120
|
+
var _chunkTAXZQNFZcjs = require('./chunk-TAXZQNFZ.cjs');
|
|
121
121
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
|
|
127
|
-
var
|
|
127
|
+
var _chunkWAQIO2VDcjs = require('./chunk-WAQIO2VD.cjs');
|
|
128
128
|
|
|
129
129
|
|
|
130
130
|
var _chunkIGA3OTFYcjs = require('./chunk-IGA3OTFY.cjs');
|
|
@@ -133,11 +133,11 @@ var _chunkIGA3OTFYcjs = require('./chunk-IGA3OTFY.cjs');
|
|
|
133
133
|
|
|
134
134
|
|
|
135
135
|
|
|
136
|
-
var
|
|
136
|
+
var _chunkYPPAYYSXcjs = require('./chunk-YPPAYYSX.cjs');
|
|
137
137
|
|
|
138
138
|
|
|
139
139
|
|
|
140
|
-
var
|
|
140
|
+
var _chunkH7DAFRYRcjs = require('./chunk-H7DAFRYR.cjs');
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
|
|
@@ -165,7 +165,7 @@ var _chunkUOFTT6S4cjs = require('./chunk-UOFTT6S4.cjs');
|
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
|
|
168
|
-
var
|
|
168
|
+
var _chunkSO4USIKLcjs = require('./chunk-SO4USIKL.cjs');
|
|
169
169
|
|
|
170
170
|
|
|
171
171
|
|
|
@@ -173,7 +173,7 @@ var _chunkMZG5M4JScjs = require('./chunk-MZG5M4JS.cjs');
|
|
|
173
173
|
var _chunkR6GOH5CHcjs = require('./chunk-R6GOH5CH.cjs');
|
|
174
174
|
|
|
175
175
|
|
|
176
|
-
var
|
|
176
|
+
var _chunkJJUHUPRBcjs = require('./chunk-JJUHUPRB.cjs');
|
|
177
177
|
|
|
178
178
|
|
|
179
179
|
var _chunk323JTLXRcjs = require('./chunk-323JTLXR.cjs');
|
|
@@ -194,7 +194,7 @@ var _chunk323JTLXRcjs = require('./chunk-323JTLXR.cjs');
|
|
|
194
194
|
|
|
195
195
|
|
|
196
196
|
|
|
197
|
-
var
|
|
197
|
+
var _chunkGWFNJLDNcjs = require('./chunk-GWFNJLDN.cjs');
|
|
198
198
|
|
|
199
199
|
|
|
200
200
|
|
|
@@ -288,11 +288,11 @@ var _chunkOCQSYDMGcjs = require('./chunk-OCQSYDMG.cjs');
|
|
|
288
288
|
var _chunkNQUZDXKJcjs = require('./chunk-NQUZDXKJ.cjs');
|
|
289
289
|
|
|
290
290
|
|
|
291
|
-
var
|
|
291
|
+
var _chunkY3MTKPLNcjs = require('./chunk-Y3MTKPLN.cjs');
|
|
292
292
|
|
|
293
293
|
|
|
294
294
|
|
|
295
|
-
var
|
|
295
|
+
var _chunkYCGOQKVCcjs = require('./chunk-YCGOQKVC.cjs');
|
|
296
296
|
|
|
297
297
|
|
|
298
298
|
var _chunkYHALJBYTcjs = require('./chunk-YHALJBYT.cjs');
|
|
@@ -320,7 +320,7 @@ var _chunk7ZDLE77Pcjs = require('./chunk-7ZDLE77P.cjs');
|
|
|
320
320
|
var _chunkH5AC3XSEcjs = require('./chunk-H5AC3XSE.cjs');
|
|
321
321
|
|
|
322
322
|
|
|
323
|
-
var
|
|
323
|
+
var _chunkC2J5LMH6cjs = require('./chunk-C2J5LMH6.cjs');
|
|
324
324
|
|
|
325
325
|
|
|
326
326
|
var _chunkO7B6LJWEcjs = require('./chunk-O7B6LJWE.cjs');
|
|
@@ -686,7 +686,7 @@ async function compileFarmDocsManifest(docs, options) {
|
|
|
686
686
|
isPathGuarded: options.isPathGuarded,
|
|
687
687
|
basePath
|
|
688
688
|
});
|
|
689
|
-
const apiHandler =
|
|
689
|
+
const apiHandler = _chunkK7RXZ77Ucjs.createFarmDocsAPIHandler.call(void 0, {
|
|
690
690
|
rootDir: options.root,
|
|
691
691
|
srcDir: options.srcDir,
|
|
692
692
|
docs,
|
|
@@ -1113,7 +1113,7 @@ async function createFarmRouteRuntimeManifest(options) {
|
|
|
1113
1113
|
const routes = [];
|
|
1114
1114
|
for (const [pattern, entry] of options.routeManager.getRoutes()) {
|
|
1115
1115
|
const routeModule = await options.routeManager.loadRouteModule(entry.modulePath);
|
|
1116
|
-
const rendering = await
|
|
1116
|
+
const rendering = await _chunkYPPAYYSXcjs.resolveRouteRenderingConfigFromFile.call(void 0, routeModule, entry.modulePath);
|
|
1117
1117
|
const runtimeConfig = await options.routeManager.resolveRouteRuntimeConfig(pattern);
|
|
1118
1118
|
routes.push({
|
|
1119
1119
|
kind: "page",
|
|
@@ -1855,7 +1855,7 @@ function farmStripPlatformConfigPlugin(configFiles) {
|
|
|
1855
1855
|
// removed block used (`readFileSync` for a version, say).
|
|
1856
1856
|
enforce: "pre",
|
|
1857
1857
|
transform: {
|
|
1858
|
-
filter: { id:
|
|
1858
|
+
filter: { id: _chunkTAXZQNFZcjs.fileNamePattern.call(void 0, configFiles) },
|
|
1859
1859
|
async handler(code, id) {
|
|
1860
1860
|
const file = id.split("?", 1)[0];
|
|
1861
1861
|
if (!files.has(_path2.default.resolve(file)) && !files.has(realPath(file))) return null;
|
|
@@ -2272,7 +2272,7 @@ async function writeFarmVercelEdgeMiddlewareFunction(options) {
|
|
|
2272
2272
|
logLevel: "silent",
|
|
2273
2273
|
plugins: [edgeNodeModulesPlugin(coreDir, unsupported)],
|
|
2274
2274
|
resolve: {
|
|
2275
|
-
alias:
|
|
2275
|
+
alias: _chunkTAXZQNFZcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
|
|
2276
2276
|
conditionNames: ["edge-light", "worker", "browser", "import", "module", "default"]
|
|
2277
2277
|
},
|
|
2278
2278
|
transform: {
|
|
@@ -2675,7 +2675,7 @@ function createOmittedMetadataImageRuntimePlugin(externalizeOtherImports) {
|
|
|
2675
2675
|
return {
|
|
2676
2676
|
name: "farm-omitted-metadata-image-runtime",
|
|
2677
2677
|
resolveId: {
|
|
2678
|
-
filter: { id:
|
|
2678
|
+
filter: { id: _chunkTAXZQNFZcjs.exactIdPattern.call(void 0, ["@vercel/og"]) },
|
|
2679
2679
|
handler(source, importer) {
|
|
2680
2680
|
if (source !== "@vercel/og") return null;
|
|
2681
2681
|
const fromCoreRuntime = importer !== void 0 && isFarmCoreModule(importer) && !/^og\.[cm]?[jt]sx?$/.test(_path2.default.basename(importer.split("?", 1)[0]));
|
|
@@ -2684,7 +2684,7 @@ function createOmittedMetadataImageRuntimePlugin(externalizeOtherImports) {
|
|
|
2684
2684
|
}
|
|
2685
2685
|
},
|
|
2686
2686
|
load: {
|
|
2687
|
-
filter: { id:
|
|
2687
|
+
filter: { id: _chunkTAXZQNFZcjs.exactIdPattern.call(void 0, [FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID]) },
|
|
2688
2688
|
handler(id) {
|
|
2689
2689
|
if (id !== FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID) return null;
|
|
2690
2690
|
return `
|
|
@@ -3311,7 +3311,7 @@ function collectFarmPrerenderedMarkdownBodies(pageRoutes) {
|
|
|
3311
3311
|
for (const route of pageRoutes) {
|
|
3312
3312
|
if (route.source === void 0 || !_chunk27IPPPCVcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) continue;
|
|
3313
3313
|
const { body } = _chunk27IPPPCVcjs.parseMarkdownFrontmatter.call(void 0, route.source);
|
|
3314
|
-
const rendering =
|
|
3314
|
+
const rendering = _chunkYPPAYYSXcjs.resolveRouteRenderingConfig.call(void 0,
|
|
3315
3315
|
_chunk27IPPPCVcjs.readFarmMarkdownRouteConfig.call(void 0, body),
|
|
3316
3316
|
route.source
|
|
3317
3317
|
);
|
|
@@ -3359,7 +3359,7 @@ async function writeFarmVideoPlayerToClient(outputDir) {
|
|
|
3359
3359
|
const filePath = _path2.default.join(outputDir, _chunkO7B6LJWEcjs.FARM_VIDEO_PLAYER_PATH.slice(1));
|
|
3360
3360
|
await fs5.mkdir(_path2.default.dirname(filePath), { recursive: true });
|
|
3361
3361
|
try {
|
|
3362
|
-
await fs5.writeFile(filePath,
|
|
3362
|
+
await fs5.writeFile(filePath, _chunkTAXZQNFZcjs.FARM_VIDEO_PLAYER_HTML, { flag: "wx" });
|
|
3363
3363
|
} catch (error) {
|
|
3364
3364
|
if (error.code !== "EEXIST") throw error;
|
|
3365
3365
|
}
|
|
@@ -3393,7 +3393,7 @@ async function mergeBuiltFontCss(outputDir, fontCssSource) {
|
|
|
3393
3393
|
}
|
|
3394
3394
|
const normalizedFontCss = typeof fontCss === "string" ? fontCss : Buffer.from(fontCss).toString("utf8");
|
|
3395
3395
|
await fs5.writeFile(fontCssPath, normalizedFontCss);
|
|
3396
|
-
await fs5.writeFile(clientCssPath,
|
|
3396
|
+
await fs5.writeFile(clientCssPath, _chunkTAXZQNFZcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
|
|
3397
3397
|
}
|
|
3398
3398
|
function importsFarmClientBlockedPackage(id, packageName) {
|
|
3399
3399
|
return id === packageName || id.startsWith(`${packageName}/`);
|
|
@@ -3443,10 +3443,10 @@ async function validateClientBuildOutput(root, srcDir, outputDir) {
|
|
|
3443
3443
|
}
|
|
3444
3444
|
}
|
|
3445
3445
|
function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, options = {}) {
|
|
3446
|
-
const key =
|
|
3446
|
+
const key = _chunkGWFNJLDNcjs.getClientModuleHydrationPlanKey.call(void 0, modulePath, root, mode, options);
|
|
3447
3447
|
let plan = cache.get(key);
|
|
3448
3448
|
if (!plan) {
|
|
3449
|
-
plan =
|
|
3449
|
+
plan = _chunkGWFNJLDNcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
|
|
3450
3450
|
cache.set(key, plan);
|
|
3451
3451
|
}
|
|
3452
3452
|
return { ...plan, isolatedBoundaries: [...plan.isolatedBoundaries] };
|
|
@@ -3480,14 +3480,14 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3480
3480
|
`[Farm.js] Client components hydrate with their route, not as islands, because integration provider "${unsupportedIntegrationProvider.name}" doesn't declare \`islands: true\`.`
|
|
3481
3481
|
);
|
|
3482
3482
|
}
|
|
3483
|
-
const isolatedMode =
|
|
3483
|
+
const isolatedMode = _chunkGWFNJLDNcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
3484
3484
|
_optionalChain([config, 'access', _108 => _108.experimental, 'optionalAccess', _109 => _109.isolatedClientHydration]),
|
|
3485
3485
|
{
|
|
3486
3486
|
serverComponents: _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, config)) === "rsc",
|
|
3487
3487
|
hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
|
|
3488
3488
|
}
|
|
3489
3489
|
);
|
|
3490
|
-
const planOptions =
|
|
3490
|
+
const planOptions = _chunkGWFNJLDNcjs.getFarmClientHydrationPlanOptions.call(void 0,
|
|
3491
3491
|
config.renderer,
|
|
3492
3492
|
Boolean(unsupportedIntegrationProvider)
|
|
3493
3493
|
);
|
|
@@ -3512,7 +3512,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3512
3512
|
);
|
|
3513
3513
|
const syntheticDocsEntry = _optionalChain([config, 'access', _112 => _112.docs, 'optionalAccess', _113 => _113.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
|
|
3514
3514
|
const syntheticDocsPatterns = syntheticDocsEntry ? syntheticDocsEntry === "/" ? ["/", "/[...slug]"] : [syntheticDocsEntry, `${syntheticDocsEntry}/[...slug]`] : [];
|
|
3515
|
-
const plan = (operation) => sourceSnapshot ?
|
|
3515
|
+
const plan = (operation) => sourceSnapshot ? _chunkGWFNJLDNcjs.withFarmSourceSnapshotOf.call(void 0, sourceSnapshot, operation) : _chunkGWFNJLDNcjs.withFarmSourceSnapshot.call(void 0, operation);
|
|
3516
3516
|
const { clientLayouts, clientRouteSlots } = plan(() => {
|
|
3517
3517
|
const clientLayouts2 = layoutRoutes.map((layout) => {
|
|
3518
3518
|
try {
|
|
@@ -3559,7 +3559,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3559
3559
|
};
|
|
3560
3560
|
}
|
|
3561
3561
|
});
|
|
3562
|
-
const markdownPagePlan =
|
|
3562
|
+
const markdownPagePlan = _chunkGWFNJLDNcjs.createMarkdownPageHydrationPlanner.call(void 0,
|
|
3563
3563
|
_chunkYQ5NVEFScjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkYQ5NVEFScjs.resolveMdxConfig.call(void 0, config.mdx), root),
|
|
3564
3564
|
root,
|
|
3565
3565
|
isolatedMode,
|
|
@@ -3575,7 +3575,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3575
3575
|
pagePlanOptions
|
|
3576
3576
|
)
|
|
3577
3577
|
}));
|
|
3578
|
-
|
|
3578
|
+
_chunkGWFNJLDNcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
|
|
3579
3579
|
clientLayouts2.map((layout) => ({
|
|
3580
3580
|
pattern: layout.pattern,
|
|
3581
3581
|
depth: layout.pattern.split("/").filter(Boolean).length,
|
|
@@ -3609,7 +3609,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3609
3609
|
const matchesBuiltRoute = pageRoutes.some((route) => layoutAppliesToRoute(layout.pattern, routeDirectory(route))) || docsEntries.some((docsEntry) => layoutAppliesToRoute(layout.pattern, docsEntry));
|
|
3610
3610
|
if (matchesBuiltRoute && layout.suppressedAsyncHydration) {
|
|
3611
3611
|
_chunk7ZDLE77Pcjs.logger.warn(
|
|
3612
|
-
`\u26A0\uFE0F ${
|
|
3612
|
+
`\u26A0\uFE0F ${_chunkGWFNJLDNcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`
|
|
3613
3613
|
);
|
|
3614
3614
|
}
|
|
3615
3615
|
}
|
|
@@ -3644,7 +3644,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3644
3644
|
);
|
|
3645
3645
|
if (metadata.suppressedAsyncHydration) {
|
|
3646
3646
|
_chunk7ZDLE77Pcjs.logger.warn(
|
|
3647
|
-
`\u26A0\uFE0F ${
|
|
3647
|
+
`\u26A0\uFE0F ${_chunkGWFNJLDNcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
|
|
3648
3648
|
);
|
|
3649
3649
|
}
|
|
3650
3650
|
const slotBoundaries = serverSlotPlans.filter(
|
|
@@ -3652,7 +3652,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3652
3652
|
).flatMap(({ plan: plan2 }) => plan2.isolatedBoundaries);
|
|
3653
3653
|
if (metadata.shouldHydrate || metadata.hasIsolatedClientBoundaries || applicableClientLayouts.length > 0 || slotBoundaries.length > 0) {
|
|
3654
3654
|
const relativePath = route.modulePath.replace(root, "").replace(/^\//, "");
|
|
3655
|
-
const islandStrategy =
|
|
3655
|
+
const islandStrategy = _chunkTAXZQNFZcjs.resolveFarmRouteRootStrategy.call(void 0,
|
|
3656
3656
|
route,
|
|
3657
3657
|
metadata,
|
|
3658
3658
|
clientLayouts2,
|
|
@@ -3671,7 +3671,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3671
3671
|
...applicableClientLayouts.filter((layout) => layout.hasIsolatedClientBoundaries || layout.serverTreeLayout).flatMap((layout) => layout.isolatedBoundaries)
|
|
3672
3672
|
],
|
|
3673
3673
|
// The server renders a server tree only below a hydrating layout.
|
|
3674
|
-
...
|
|
3674
|
+
..._chunkGWFNJLDNcjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
|
|
3675
3675
|
});
|
|
3676
3676
|
_chunk7ZDLE77Pcjs.logger.info(`\u{1F4F1} Found hydratable route: ${route.pattern} -> ${route.modulePath}`);
|
|
3677
3677
|
}
|
|
@@ -3708,7 +3708,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3708
3708
|
}
|
|
3709
3709
|
const clientRouteSlots2 = routeSlots.filter((slot) => {
|
|
3710
3710
|
try {
|
|
3711
|
-
const metadata =
|
|
3711
|
+
const metadata = _chunkGWFNJLDNcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root);
|
|
3712
3712
|
return metadata.shouldHydrate && (!islandsMode || metadata.isClientComponent);
|
|
3713
3713
|
} catch (error) {
|
|
3714
3714
|
_chunk7ZDLE77Pcjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
|
|
@@ -3761,11 +3761,11 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3761
3761
|
config.trailingSlash,
|
|
3762
3762
|
_chunkN4AM7Q34cjs.getIntegrationProviders.call(void 0, config.integrations),
|
|
3763
3763
|
config.basePath,
|
|
3764
|
-
|
|
3764
|
+
_chunkTAXZQNFZcjs.generateClientCachePersistenceCode.call(void 0, _chunkTAXZQNFZcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
|
|
3765
3765
|
adapterOwnsDocsRuntime ? _chunkP4ZLFUNBcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0,
|
|
3766
3766
|
_chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, config)) === "islands",
|
|
3767
3767
|
platform,
|
|
3768
|
-
islandsMode ?
|
|
3768
|
+
islandsMode ? _chunkGWFNJLDNcjs.collectFarmServerStylesheets.call(void 0,
|
|
3769
3769
|
[
|
|
3770
3770
|
...layoutRoutes.map((layout) => layout.modulePath),
|
|
3771
3771
|
...pageRoutes.filter((route) => !isAdapterDocsRoute(route.pattern)).map((route) => route.modulePath)
|
|
@@ -3789,7 +3789,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3789
3789
|
await fs5.writeFile(_path2.default.join(clientEntryDir, "farm-client-root.tsx"), clientEntry.root);
|
|
3790
3790
|
}
|
|
3791
3791
|
const clientInput = { [entryName]: clientEntryPath };
|
|
3792
|
-
if (platform === "web" &&
|
|
3792
|
+
if (platform === "web" && _chunkTAXZQNFZcjs.canBootFarmIslandsClient.call(void 0, config)) {
|
|
3793
3793
|
const clientBootPath = _path2.default.join(clientEntryDir, "farm-client-boot.tsx");
|
|
3794
3794
|
await fs5.writeFile(
|
|
3795
3795
|
clientBootPath,
|
|
@@ -3810,7 +3810,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3810
3810
|
const postcssConfigPath = _path2.default.join(clientEntryDir, "postcss.config.cjs");
|
|
3811
3811
|
await fs5.writeFile(postcssConfigPath, "module.exports = { plugins: [] };\n");
|
|
3812
3812
|
postcssSearchPath = clientEntryDir;
|
|
3813
|
-
tailwindVitePlugin = await
|
|
3813
|
+
tailwindVitePlugin = await _chunkWAQIO2VDcjs.loadTailwindVitePlugin.call(void 0, {
|
|
3814
3814
|
builder: productionVite.builder,
|
|
3815
3815
|
announce: true
|
|
3816
3816
|
});
|
|
@@ -3831,7 +3831,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3831
3831
|
target: FARM_CLIENT_BUILD_TARGET,
|
|
3832
3832
|
// Tailwind CSS 4 already requires newer browsers than that baseline. An app's own
|
|
3833
3833
|
// `build.target` or `build.cssTarget` still decides, as Vite derives one from the other.
|
|
3834
|
-
..._optionalChain([config, 'access', _116 => _116.vite, 'optionalAccess', _117 => _117.build, 'optionalAccess', _118 => _118.target]) === void 0 && _optionalChain([config, 'access', _119 => _119.vite, 'optionalAccess', _120 => _120.build, 'optionalAccess', _121 => _121.cssTarget]) === void 0 && (
|
|
3834
|
+
..._optionalChain([config, 'access', _116 => _116.vite, 'optionalAccess', _117 => _117.build, 'optionalAccess', _118 => _118.target]) === void 0 && _optionalChain([config, 'access', _119 => _119.vite, 'optionalAccess', _120 => _120.build, 'optionalAccess', _121 => _121.cssTarget]) === void 0 && (_chunkWAQIO2VDcjs.includesTailwindVitePlugin.call(void 0, tailwindVitePlugin) || _chunkWAQIO2VDcjs.includesTailwindVitePlugin.call(void 0, _optionalChain([config, 'access', _122 => _122.vite, 'optionalAccess', _123 => _123.plugins]))) ? { cssTarget: _chunkWAQIO2VDcjs.TAILWIND_CSS_BROWSER_TARGET } : {},
|
|
3835
3835
|
outDir: outputDir,
|
|
3836
3836
|
emptyOutDir: platform === "web",
|
|
3837
3837
|
// Never public: see resolveFarmClientSourcemap.
|
|
@@ -3864,7 +3864,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3864
3864
|
}
|
|
3865
3865
|
},
|
|
3866
3866
|
plugins: [
|
|
3867
|
-
|
|
3867
|
+
_chunkTAXZQNFZcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
3868
3868
|
createFarmPrivateClientSourcemapsPlugin({
|
|
3869
3869
|
outDir: _path2.default.join(
|
|
3870
3870
|
_path2.default.dirname(outputDir),
|
|
@@ -3926,7 +3926,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3926
3926
|
distDir: config.distDir || ".farm"
|
|
3927
3927
|
}),
|
|
3928
3928
|
farmNavigationPlugin(config.renderer),
|
|
3929
|
-
|
|
3929
|
+
_chunkTAXZQNFZcjs.farmDocsClientConfigPlugin.call(void 0,
|
|
3930
3930
|
adapterOwnsDocsRuntime ? _chunkP4ZLFUNBcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
|
|
3931
3931
|
),
|
|
3932
3932
|
// Plugin to redirect @farm.js/core imports to client-only exports
|
|
@@ -3959,7 +3959,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3959
3959
|
},
|
|
3960
3960
|
load: {
|
|
3961
3961
|
filter: {
|
|
3962
|
-
id:
|
|
3962
|
+
id: _chunkTAXZQNFZcjs.exactIdPattern.call(void 0, [
|
|
3963
3963
|
"\0empty-module",
|
|
3964
3964
|
"\0empty-api-route",
|
|
3965
3965
|
"\0farm-i18n-client-bridge",
|
|
@@ -3997,7 +3997,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3997
3997
|
{ ...config, isolatedClientBoundaryModules, programmaticClientRoutes, sourceSnapshot },
|
|
3998
3998
|
pluginManager
|
|
3999
3999
|
),
|
|
4000
|
-
|
|
4000
|
+
_chunkGWFNJLDNcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
|
|
4001
4001
|
],
|
|
4002
4002
|
mode: "production",
|
|
4003
4003
|
css: postcssSearchPath ? {
|
|
@@ -4005,7 +4005,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
4005
4005
|
} : void 0,
|
|
4006
4006
|
// Ensure React is bundled for client
|
|
4007
4007
|
resolve: {
|
|
4008
|
-
alias:
|
|
4008
|
+
alias: _chunkTAXZQNFZcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
|
|
4009
4009
|
dedupe: [...config.renderer.dedupe || []]
|
|
4010
4010
|
},
|
|
4011
4011
|
// Optimize dependencies - exclude server-side code from client bundle
|
|
@@ -4019,7 +4019,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
4019
4019
|
}
|
|
4020
4020
|
};
|
|
4021
4021
|
await viteBuild(
|
|
4022
|
-
|
|
4022
|
+
_chunkTAXZQNFZcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite, { clientOutput: true })
|
|
4023
4023
|
);
|
|
4024
4024
|
if (platform === "mobile") {
|
|
4025
4025
|
await fs5.rm(_path2.default.join(outputDir, `${entryName}.css`), { force: true });
|
|
@@ -4113,9 +4113,9 @@ async function fetchFarmNavigationDocument(url, headers, recover = true, signal)
|
|
|
4113
4113
|
return response;
|
|
4114
4114
|
}
|
|
4115
4115
|
|
|
4116
|
-
${streamNavigations ? `${
|
|
4116
|
+
${streamNavigations ? `${_chunkTAXZQNFZcjs.FARM_NAVIGATION_STREAM_READER_SOURCE}
|
|
4117
4117
|
|
|
4118
|
-
${
|
|
4118
|
+
${_chunkTAXZQNFZcjs.FARM_EARLY_NAVIGATION_SOURCE}` : ""}
|
|
4119
4119
|
|
|
4120
4120
|
function clearFarmPrefetchCacheOnDeploymentMismatch(router, error) {
|
|
4121
4121
|
if (error?.name === "FarmDeploymentMismatchError") {
|
|
@@ -5425,7 +5425,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
|
|
|
5425
5425
|
direction: {}
|
|
5426
5426
|
}, plugins = [], renderer = _chunkLEZJZX4Ccjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false, platform, serverStylesheets = []) {
|
|
5427
5427
|
const toImportPath = (targetPath) => targetPath.replace(/\\/g, "/");
|
|
5428
|
-
const clientPluginEntry =
|
|
5428
|
+
const clientPluginEntry = _chunkWAQIO2VDcjs.generateFarmClientPluginEntryCode.call(void 0,
|
|
5429
5429
|
plugins,
|
|
5430
5430
|
root,
|
|
5431
5431
|
srcDir,
|
|
@@ -5450,7 +5450,7 @@ import { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};
|
|
|
5450
5450
|
const React = { ...__farmRendererClient };`
|
|
5451
5451
|
);
|
|
5452
5452
|
const hydrateFarmRouteCall = _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) ? "return hydrateRoot(container, route.element);" : "return route.layouts.length > 0 ? hydrateRoot(container, route.element, route) : hydrateRoot(container, route.element);";
|
|
5453
|
-
const providerClientCode =
|
|
5453
|
+
const providerClientCode = _chunkTAXZQNFZcjs.generateFarmIntegrationProviderClientCode.call(void 0,
|
|
5454
5454
|
integrationProviders,
|
|
5455
5455
|
root,
|
|
5456
5456
|
_nullishCoalesce(renderer.componentExtensions, () => ( []))
|
|
@@ -5584,7 +5584,7 @@ mountFarmDocsSearch();
|
|
|
5584
5584
|
|
|
5585
5585
|
${generateUniversalRouterStateRuntime()}
|
|
5586
5586
|
|
|
5587
|
-
${
|
|
5587
|
+
${_chunkTAXZQNFZcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
|
|
5588
5588
|
|
|
5589
5589
|
// SPA Router for server-rendered pages (HTML swap)
|
|
5590
5590
|
const spaRouter = {
|
|
@@ -6126,7 +6126,7 @@ ${layoutRegistrations.join(",\n")}
|
|
|
6126
6126
|
${generateFarmClientRouteMatchSource({ lazyMatcher })}
|
|
6127
6127
|
|
|
6128
6128
|
${layoutComponentsRuntime}/*farm-root-start*/
|
|
6129
|
-
${
|
|
6129
|
+
${_chunkTAXZQNFZcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
|
|
6130
6130
|
// Wrap a page element with applicable layouts
|
|
6131
6131
|
function wrapWithLayouts(pageElement, pathname, params) {
|
|
6132
6132
|
const layouts = getApplicableLayouts(pathname);
|
|
@@ -6161,7 +6161,7 @@ function createLayoutPageBoundary(route, pageElement, serverHtml) {
|
|
|
6161
6161
|
return React.createElement("div", props, pageElement);
|
|
6162
6162
|
}
|
|
6163
6163
|
let farmLastRouteState = null;
|
|
6164
|
-
${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${
|
|
6164
|
+
${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${_chunkTAXZQNFZcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
|
|
6165
6165
|
function farmTreeLayoutsOf(pathname) {
|
|
6166
6166
|
return getApplicableLayouts(pathname).filter(function(layout) {
|
|
6167
6167
|
return layout.serverTree === true;
|
|
@@ -6795,7 +6795,7 @@ function fitsSegmentResponse(currentRoot, nextRoot) {
|
|
|
6795
6795
|
return true;
|
|
6796
6796
|
}` : ""}
|
|
6797
6797
|
|
|
6798
|
-
${
|
|
6798
|
+
${_chunkTAXZQNFZcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
|
|
6799
6799
|
|
|
6800
6800
|
function activateNavigationScripts(root) {
|
|
6801
6801
|
for (const script of Array.from(root?.querySelectorAll?.("script") || [])) {
|
|
@@ -6901,7 +6901,7 @@ function getLayoutShell(root, patterns, index) {
|
|
|
6901
6901
|
return shell.innerHTML;
|
|
6902
6902
|
}
|
|
6903
6903
|
|
|
6904
|
-
${islandValues ?
|
|
6904
|
+
${islandValues ? _chunkTAXZQNFZcjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceSharedLayoutBoundary(currentRoot, nextRoot, refresh = false) {
|
|
6905
6905
|
// A refresh keeps the islands still on the page: the ones in streamed Suspense content too.
|
|
6906
6906
|
if (refresh) revealFarmStreamedContent(nextRoot);
|
|
6907
6907
|
const currentPatterns = getLayoutPatterns(currentRoot);
|
|
@@ -7602,7 +7602,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7602
7602
|
_path2.default.join(postcssConfigDir, "postcss.config.cjs"),
|
|
7603
7603
|
"module.exports = { plugins: [] };\n"
|
|
7604
7604
|
);
|
|
7605
|
-
tailwindVitePlugin = await
|
|
7605
|
+
tailwindVitePlugin = await _chunkWAQIO2VDcjs.loadTailwindVitePlugin.call(void 0, {
|
|
7606
7606
|
builder: productionVite.builder,
|
|
7607
7607
|
label: "for SSR"
|
|
7608
7608
|
});
|
|
@@ -7685,7 +7685,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7685
7685
|
const appDirs = _chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, config);
|
|
7686
7686
|
let openAPIReference = null;
|
|
7687
7687
|
if (config.openapi.enabled && config.openapi.route) {
|
|
7688
|
-
const { OpenAPIManager, renderOpenAPIReferenceHTML } = await import("./manager-
|
|
7688
|
+
const { OpenAPIManager, renderOpenAPIReferenceHTML } = await import("./manager-YRIENS63.cjs");
|
|
7689
7689
|
const openAPIManager = new OpenAPIManager(appDirs, config.openapi, {
|
|
7690
7690
|
mode: "production",
|
|
7691
7691
|
apiBaseURL: config.api.baseURL,
|
|
@@ -7710,7 +7710,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7710
7710
|
}))
|
|
7711
7711
|
);
|
|
7712
7712
|
const instrumentationPath = _chunkI5PDHLKEcjs.resolveFarmInstrumentationFile.call(void 0, root, config.srcDir || "src");
|
|
7713
|
-
const notFoundPath =
|
|
7713
|
+
const notFoundPath = _chunkTAXZQNFZcjs.resolveFarmNotFoundComponentPath.call(void 0,
|
|
7714
7714
|
config,
|
|
7715
7715
|
appDirs,
|
|
7716
7716
|
routeManager.getRendererNotFoundPath()
|
|
@@ -7737,8 +7737,8 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7737
7737
|
const hasObservabilityHandler = !!config.observability && typeof config.observability === "object" && "onEvent" in config.observability;
|
|
7738
7738
|
const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _133 => _133.mdx, 'optionalAccess', _134 => _134.components]));
|
|
7739
7739
|
const hasMiddlewareConfig = _chunkIGBQSUT5cjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
|
|
7740
|
-
const hasRouteContextConfig =
|
|
7741
|
-
const hasServerRuntimePlugins =
|
|
7740
|
+
const hasRouteContextConfig = _chunk2LGM5WIKcjs.hasCustomFarmRouteContext.call(void 0, config);
|
|
7741
|
+
const hasServerRuntimePlugins = _chunkWAQIO2VDcjs.hasFarmServerRuntimePlugins.call(void 0, config.plugins);
|
|
7742
7742
|
const hasPluginRoutes = hasFarmPluginRoutes(config);
|
|
7743
7743
|
const hasServerCacheConfig = hasFarmServerCacheConfig(config.cache);
|
|
7744
7744
|
const configModulePath = hasServerRuntimeIntegrations || hasObservabilityHandler || hasMdxComponentConfig || hasMiddlewareConfig || hasRouteContextConfig || hasServerRuntimePlugins || hasPluginRoutes || hasServerCacheConfig || hasFarmServerStorageConfig(config.storage) || hasIntegrationProviders ? await findFarmConfigPath(root) : null;
|
|
@@ -7749,7 +7749,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7749
7749
|
);
|
|
7750
7750
|
if (_chunkVZ2P6GRCcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
|
|
7751
7751
|
const adapterGuardedPaths = new Set(getFarmDocsGuardedPaths(config, middlewareRoutes));
|
|
7752
|
-
|
|
7752
|
+
_chunkK7RXZ77Ucjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
|
|
7753
7753
|
config.docs,
|
|
7754
7754
|
{ root, srcDir: config.srcDir },
|
|
7755
7755
|
(pathname) => adapterGuardedPaths.has(pathname),
|
|
@@ -7759,7 +7759,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7759
7759
|
const farmDocsCspNonceMarker = _chunkIEZFFXSCcjs.createFarmCspNonce.call(void 0, config.security);
|
|
7760
7760
|
const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _135 => _135.docs, 'optionalAccess', _136 => _136.enabled]) && _chunkVIDUNAQEcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? await _chunkIBZW57NWcjs._runWithFarmCspNonce.call(void 0,
|
|
7761
7761
|
farmDocsCspNonceMarker,
|
|
7762
|
-
async () => _optionalChain([config, 'access', _137 => _137.docs, 'access', _138 => _138.adapter, 'optionalAccess', _139 => _139.server]) ? await
|
|
7762
|
+
async () => _optionalChain([config, 'access', _137 => _137.docs, 'access', _138 => _138.adapter, 'optionalAccess', _139 => _139.server]) ? await _chunkK7RXZ77Ucjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
|
|
7763
7763
|
root,
|
|
7764
7764
|
srcDir: config.srcDir,
|
|
7765
7765
|
clientEntry: FARM_CLIENT_JS_SRC_PLACEHOLDER,
|
|
@@ -7926,7 +7926,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7926
7926
|
__FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _145 => _145.env, 'optionalAccess', _146 => _146.public]) || {})
|
|
7927
7927
|
},
|
|
7928
7928
|
plugins: [
|
|
7929
|
-
|
|
7929
|
+
_chunkTAXZQNFZcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
7930
7930
|
...tailwindVitePlugin ? [tailwindVitePlugin] : [],
|
|
7931
7931
|
...rendererVitePlugins,
|
|
7932
7932
|
...config.vite.plugins || [],
|
|
@@ -7958,7 +7958,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7958
7958
|
},
|
|
7959
7959
|
pluginManager
|
|
7960
7960
|
),
|
|
7961
|
-
|
|
7961
|
+
_chunkGWFNJLDNcjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
|
|
7962
7962
|
...hasRuntimeConfigModule ? [
|
|
7963
7963
|
farmStripPlatformConfigPlugin(
|
|
7964
7964
|
[
|
|
@@ -7970,7 +7970,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7970
7970
|
{
|
|
7971
7971
|
name: "farm-virtual-ssr-entry",
|
|
7972
7972
|
resolveId: {
|
|
7973
|
-
filter: { id:
|
|
7973
|
+
filter: { id: _chunkTAXZQNFZcjs.exactIdPattern.call(void 0, [virtualEntryId, "\0virtual:farm-ssr-entry"]) },
|
|
7974
7974
|
handler(id) {
|
|
7975
7975
|
if (id === virtualEntryId || id === "\0virtual:farm-ssr-entry") {
|
|
7976
7976
|
return virtualEntryId;
|
|
@@ -7979,7 +7979,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7979
7979
|
}
|
|
7980
7980
|
},
|
|
7981
7981
|
load: {
|
|
7982
|
-
filter: { id:
|
|
7982
|
+
filter: { id: _chunkTAXZQNFZcjs.exactIdPattern.call(void 0, [virtualEntryId]) },
|
|
7983
7983
|
handler(id) {
|
|
7984
7984
|
if (id === virtualEntryId) {
|
|
7985
7985
|
return virtualEntryCode;
|
|
@@ -7991,7 +7991,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7991
7991
|
{
|
|
7992
7992
|
name: "capture-ssr-bundle",
|
|
7993
7993
|
configResolved(config2) {
|
|
7994
|
-
polyroute =
|
|
7994
|
+
polyroute = _chunkYCGOQKVCcjs.hasPolyroutePlugin.call(void 0, config2.plugins);
|
|
7995
7995
|
},
|
|
7996
7996
|
enforce: "post",
|
|
7997
7997
|
generateBundle: {
|
|
@@ -8019,7 +8019,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
8019
8019
|
resolve: {
|
|
8020
8020
|
alias: [
|
|
8021
8021
|
...shouldAliasReactServerToWebBuild(config.renderer, preset) ? [createFarmReactWebServerAlias(hasReactDomEdgeServerBuild(root))] : [],
|
|
8022
|
-
...Object.entries(
|
|
8022
|
+
...Object.entries(_chunkTAXZQNFZcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
|
|
8023
8023
|
([find, replacement]) => ({ find, replacement })
|
|
8024
8024
|
)
|
|
8025
8025
|
],
|
|
@@ -8027,7 +8027,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
8027
8027
|
dedupe: [...config.renderer.dedupe || []]
|
|
8028
8028
|
}
|
|
8029
8029
|
};
|
|
8030
|
-
await viteBuild(
|
|
8030
|
+
await viteBuild(_chunkTAXZQNFZcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
|
|
8031
8031
|
} finally {
|
|
8032
8032
|
if (postcssConfigDir) {
|
|
8033
8033
|
try {
|
|
@@ -8483,8 +8483,8 @@ function generateVirtualEntryCode(apiRoutes, pageRoutes, layoutRoutes, routeSlot
|
|
|
8483
8483
|
);
|
|
8484
8484
|
const searchPreserveRoutesSource = searchPreserveRoutes.length > 0 ? JSON.stringify(searchPreserveRoutes) : "";
|
|
8485
8485
|
const farmIslandsMode = _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, config)) === "islands";
|
|
8486
|
-
const farmRendererActions =
|
|
8487
|
-
const farmClientBoot =
|
|
8486
|
+
const farmRendererActions = _chunkTAXZQNFZcjs.resolveFarmIslxActionsMode.call(void 0, config) === "renderer";
|
|
8487
|
+
const farmClientBoot = _chunkTAXZQNFZcjs.canBootFarmIslandsClient.call(void 0, config);
|
|
8488
8488
|
const farmMobileClient = shouldBuildFarmMobileClient(config);
|
|
8489
8489
|
const farmMobileShells = farmMobileClient && config.mobileShells ? config.mobileShells : null;
|
|
8490
8490
|
const hasCompressionRuntime = config.compress && _chunkRLC7NNTAcjs.resolveFarmInstrumentationRuntime.call(void 0, preset) !== "edge";
|
|
@@ -8498,7 +8498,7 @@ function generateVirtualEntryCode(apiRoutes, pageRoutes, layoutRoutes, routeSlot
|
|
|
8498
8498
|
const servesAiCatalog = _optionalChain([config, 'access', _173 => _173.agent, 'optionalAccess', _174 => _174.aiCatalog]) !== false;
|
|
8499
8499
|
const hasPluginRuntime = hasRuntimeIntegrationConfig || hasServerRuntimePlugins;
|
|
8500
8500
|
const hasInfraAnalyticsRuntime = config.analytics !== false && _chunkRLC7NNTAcjs.resolveFarmInstrumentationRuntime.call(void 0, preset) === "nodejs";
|
|
8501
|
-
const reportsWebMCPCalls = hasInfraAnalyticsRuntime &&
|
|
8501
|
+
const reportsWebMCPCalls = hasInfraAnalyticsRuntime && _chunkH7DAFRYRcjs._farmWebMCPReportsEnabled.call(void 0, config.plugins);
|
|
8502
8502
|
const hasPrecompiledDocs = Boolean(farmDocsPrecompiledManifest);
|
|
8503
8503
|
const adapterOwnsDocsRuntime = _chunkVZ2P6GRCcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs);
|
|
8504
8504
|
if (_optionalChain([config, 'access', _175 => _175.docs, 'optionalAccess', _176 => _176.enabled]) && _optionalChain([config, 'access', _177 => _177.docs, 'access', _178 => _178.roots, 'optionalAccess', _179 => _179.length]) && !adapterOwnsDocsRuntime) {
|
|
@@ -8584,7 +8584,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
8584
8584
|
`Integration provider components are not supported by the "${config.renderer.name}" renderer.`
|
|
8585
8585
|
);
|
|
8586
8586
|
}
|
|
8587
|
-
const providerServerModules =
|
|
8587
|
+
const providerServerModules = _chunkTAXZQNFZcjs.generateFarmIntegrationProviderServerModules.call(void 0,
|
|
8588
8588
|
renderedIntegrationProviders,
|
|
8589
8589
|
config.root,
|
|
8590
8590
|
_nullishCoalesce(config.renderer.componentExtensions, () => ( []))
|
|
@@ -8604,14 +8604,14 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
8604
8604
|
const unsupportedIntegrationProvider = renderedIntegrationProviders.find(
|
|
8605
8605
|
(provider) => !_chunkN4AM7Q34cjs.providerSupportsIslands.call(void 0, provider)
|
|
8606
8606
|
);
|
|
8607
|
-
const isolatedHydrationMode =
|
|
8607
|
+
const isolatedHydrationMode = _chunkGWFNJLDNcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
8608
8608
|
_optionalChain([config, 'access', _184 => _184.experimental, 'optionalAccess', _185 => _185.isolatedClientHydration]),
|
|
8609
8609
|
{
|
|
8610
8610
|
serverComponents: _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, config)) === "rsc",
|
|
8611
8611
|
hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
|
|
8612
8612
|
}
|
|
8613
8613
|
);
|
|
8614
|
-
const hydrationPlanOptions =
|
|
8614
|
+
const hydrationPlanOptions = _chunkGWFNJLDNcjs.getFarmClientHydrationPlanOptions.call(void 0,
|
|
8615
8615
|
config.renderer,
|
|
8616
8616
|
Boolean(unsupportedIntegrationProvider)
|
|
8617
8617
|
);
|
|
@@ -8619,7 +8619,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
8619
8619
|
...hydrationPlanOptions,
|
|
8620
8620
|
serverOwners: _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, config)) === "islands"
|
|
8621
8621
|
};
|
|
8622
|
-
const { layoutHydrationPlans, pageHydrationPlans } =
|
|
8622
|
+
const { layoutHydrationPlans, pageHydrationPlans } = _chunkGWFNJLDNcjs.withFarmSourceSnapshot.call(void 0, () => {
|
|
8623
8623
|
const layoutHydrationPlans2 = layoutRoutes.map((layout) => ({
|
|
8624
8624
|
...layout,
|
|
8625
8625
|
hydration: getCachedClientModuleHydrationPlan(
|
|
@@ -8630,7 +8630,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
8630
8630
|
{ ...hydrationPlanOptions, serverTreeLayouts: pageHydrationPlanOptions.serverOwners }
|
|
8631
8631
|
)
|
|
8632
8632
|
}));
|
|
8633
|
-
const markdownPagePlan =
|
|
8633
|
+
const markdownPagePlan = _chunkGWFNJLDNcjs.createMarkdownPageHydrationPlanner.call(void 0,
|
|
8634
8634
|
_chunkYQ5NVEFScjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkYQ5NVEFScjs.resolveMdxConfig.call(void 0, config.mdx), config.root),
|
|
8635
8635
|
config.root,
|
|
8636
8636
|
isolatedHydrationMode,
|
|
@@ -8650,7 +8650,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
8650
8650
|
);
|
|
8651
8651
|
return { layoutHydrationPlans: layoutHydrationPlans2, pageHydrationPlans: pageHydrationPlans2 };
|
|
8652
8652
|
});
|
|
8653
|
-
|
|
8653
|
+
_chunkGWFNJLDNcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
|
|
8654
8654
|
layoutHydrationPlans.map((layout) => ({
|
|
8655
8655
|
pattern: layout.pattern,
|
|
8656
8656
|
depth: layout.pattern.split("/").filter(Boolean).length,
|
|
@@ -8678,7 +8678,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
8678
8678
|
apiImports.push(
|
|
8679
8679
|
`import * as ${varName} from ${toVirtualEntryImportSpecifier(route.filePath)};`
|
|
8680
8680
|
);
|
|
8681
|
-
if (
|
|
8681
|
+
if (_chunkYCGOQKVCcjs.isPolyrouteRouteFileName.call(void 0, _path2.default.basename(route.filePath))) {
|
|
8682
8682
|
nativeAPIRoutes.push(`[${JSON.stringify(route.path)}, ${varName}]`);
|
|
8683
8683
|
}
|
|
8684
8684
|
apiRegistrations.push(`
|
|
@@ -8698,8 +8698,8 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
8698
8698
|
orderedPageRoutes.forEach((route, index) => {
|
|
8699
8699
|
const varName = `pageRoute${index}`;
|
|
8700
8700
|
if (_chunk27IPPPCVcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) {
|
|
8701
|
-
const renderingDirective2 =
|
|
8702
|
-
const markdownServerTree = pageHydrationPlanOptions.serverOwners &&
|
|
8701
|
+
const renderingDirective2 = _chunkYPPAYYSXcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
|
|
8702
|
+
const markdownServerTree = pageHydrationPlanOptions.serverOwners && _chunkGWFNJLDNcjs.usesFarmServerTree.call(void 0, pageHydrationPlans.get(route.modulePath));
|
|
8703
8703
|
pageRegistrations.push(`
|
|
8704
8704
|
{
|
|
8705
8705
|
pattern: ${JSON.stringify(route.pattern)},${route.directory ? `
|
|
@@ -8707,14 +8707,14 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
8707
8707
|
rendering: ${JSON.stringify(renderingDirective2)},` : ""}${markdownServerTree ? "\n serverTree: true," : ""}
|
|
8708
8708
|
module: createFarmMarkdownRouteModule({
|
|
8709
8709
|
source: ${JSON.stringify(_nullishCoalesce(route.source, () => ( "")))},
|
|
8710
|
-
filePath: ${JSON.stringify(
|
|
8710
|
+
filePath: ${JSON.stringify(_chunkTAXZQNFZcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.modulePath))},
|
|
8711
8711
|
components: farmMdxComponents,
|
|
8712
8712
|
config: farmMdxConfig,${_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer) ? "" : "\n renderer: React,"}
|
|
8713
8713
|
}),
|
|
8714
8714
|
markdownSource: {
|
|
8715
8715
|
source: ${JSON.stringify(_nullishCoalesce(route.source, () => ( "")))},
|
|
8716
8716
|
filePath: ${JSON.stringify(
|
|
8717
|
-
|
|
8717
|
+
_chunkTAXZQNFZcjs.toBakedMarkdownSourcePath.call(void 0, config.root, _nullishCoalesce(route.markdownSourcePath, () => ( route.modulePath)))
|
|
8718
8718
|
)},
|
|
8719
8719
|
},
|
|
8720
8720
|
}`);
|
|
@@ -8724,7 +8724,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
8724
8724
|
`import * as ${varName} from ${toVirtualEntryImportSpecifier(route.modulePath)};`
|
|
8725
8725
|
);
|
|
8726
8726
|
const clientMetadata = pageHydrationPlans.get(route.modulePath);
|
|
8727
|
-
const renderingDirective =
|
|
8727
|
+
const renderingDirective = _chunkYPPAYYSXcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
|
|
8728
8728
|
pageRegistrations.push(`
|
|
8729
8729
|
{
|
|
8730
8730
|
pattern: ${JSON.stringify(route.pattern)},${route.directory ? `
|
|
@@ -8732,8 +8732,8 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
8732
8732
|
module: ${varName},
|
|
8733
8733
|
shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},${clientMetadata.shouldHydrate ? `
|
|
8734
8734
|
clientModule: ${JSON.stringify(_chunk7ZDLE77Pcjs.toViteModuleId.call(void 0, route.modulePath, config.root))},` : ""}
|
|
8735
|
-
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${
|
|
8736
|
-
const rootStrategy =
|
|
8735
|
+
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkGWFNJLDNcjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${(() => {
|
|
8736
|
+
const rootStrategy = _chunkTAXZQNFZcjs.resolveFarmRouteRootStrategy.call(void 0,
|
|
8737
8737
|
route,
|
|
8738
8738
|
clientMetadata,
|
|
8739
8739
|
layoutHydrationPlans.map((layout) => ({ ...layout, ...layout.hydration })),
|
|
@@ -8746,7 +8746,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
8746
8746
|
rendering: ${JSON.stringify(renderingDirective)},` : ""}
|
|
8747
8747
|
${route.source !== void 0 ? `markdownSource: {
|
|
8748
8748
|
source: ${JSON.stringify(route.source)},
|
|
8749
|
-
filePath: ${JSON.stringify(
|
|
8749
|
+
filePath: ${JSON.stringify(_chunkTAXZQNFZcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.markdownSourcePath))},
|
|
8750
8750
|
},` : ""}
|
|
8751
8751
|
}`);
|
|
8752
8752
|
});
|
|
@@ -8770,7 +8770,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
8770
8770
|
pattern: ${JSON.stringify(layout.pattern)},
|
|
8771
8771
|
module: ${varName},
|
|
8772
8772
|
shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},
|
|
8773
|
-
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${treeLayoutPatterns.has(layout.pattern) ? "\n serverTree: true," : ""}${farmIslandsMode &&
|
|
8773
|
+
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${treeLayoutPatterns.has(layout.pattern) ? "\n serverTree: true," : ""}${farmIslandsMode && _chunkTAXZQNFZcjs.canFarmSkipKeptLayoutRender.call(void 0, layout.modulePath, config.root) ? "\n skipKeptRender: true," : ""}${// A layout whose client components hydrate as islands of their own (islands mode,
|
|
8774
8774
|
// isolatedClientHydration, or an async layout): it wraps a docs page as an app page.
|
|
8775
8775
|
clientMetadata.hasIsolatedClientBoundaries ? "\n islands: true," : ""}
|
|
8776
8776
|
}`);
|
|
@@ -8798,7 +8798,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
8798
8798
|
containerId: ${JSON.stringify(slot.containerId)},
|
|
8799
8799
|
interception: ${JSON.stringify(slot.interception)},
|
|
8800
8800
|
fallback: ${JSON.stringify(slot.fallback)},
|
|
8801
|
-
hydrates: ${!farmIslandsMode ||
|
|
8801
|
+
hydrates: ${!farmIslandsMode || _chunkGWFNJLDNcjs.getClientModuleMetadata.call(void 0, slot.modulePath, config.root).isClientComponent},
|
|
8802
8802
|
module: ${varName},
|
|
8803
8803
|
}`);
|
|
8804
8804
|
});
|
|
@@ -8844,7 +8844,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
8844
8844
|
metadataImageImports.push(
|
|
8845
8845
|
`import * as ${varName} from ${toVirtualEntryImportSpecifier(image.modulePath)};`
|
|
8846
8846
|
);
|
|
8847
|
-
const component = !_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer) &&
|
|
8847
|
+
const component = !_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer) && _chunkTAXZQNFZcjs.isRendererCompiledComponent.call(void 0, image.modulePath, _nullishCoalesce(_optionalChain([config, 'access', _189 => _189.renderer, 'optionalAccess', _190 => _190.componentExtensions]), () => ( [])));
|
|
8848
8848
|
metadataImageRegistrations.push(`
|
|
8849
8849
|
{
|
|
8850
8850
|
pattern: ${JSON.stringify(image.pattern)},
|
|
@@ -9118,10 +9118,10 @@ import { fileURLToPath as farmDocsFileURLToPath } from "node:url";` : "";
|
|
|
9118
9118
|
);
|
|
9119
9119
|
const nativeServerFns = (config.plugins || []).some(
|
|
9120
9120
|
(plugin) => _optionalChain([plugin, 'optionalAccess', _210 => _210.name]) === _chunk323JTLXRcjs.FARM_NATIVE_SERVER_FN_PLUGIN
|
|
9121
|
-
) ?
|
|
9121
|
+
) ? _chunkF6JSVP5Ccjs.collectFarmNativeServerFns.call(void 0, {
|
|
9122
9122
|
root: config.root,
|
|
9123
9123
|
srcDir: config.srcDir,
|
|
9124
|
-
entries:
|
|
9124
|
+
entries: _chunkF6JSVP5Ccjs.findFarmNativeScreenFiles.call(void 0, _chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, config))
|
|
9125
9125
|
}) : void 0;
|
|
9126
9126
|
const integrationImports = `
|
|
9127
9127
|
${configModulePath ? `import * as FarmUserConfigModule from ${toVirtualEntryImportSpecifier(configModulePath)};` : ""}
|
|
@@ -9136,7 +9136,7 @@ ${nativeServerFns ? `const __farmNativeServerFnRegistry = Object.assign(Object.c
|
|
|
9136
9136
|
${nativeServerFns.flatMap((module, index) => module.exports.map((entry) => ` ${JSON.stringify(entry.id)}: __farmNativeServerFns${index}[${JSON.stringify(entry.name)}],`)).join("\n")}
|
|
9137
9137
|
});` : ""}
|
|
9138
9138
|
`;
|
|
9139
|
-
const imageRuntime =
|
|
9139
|
+
const imageRuntime = _chunkTAXZQNFZcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
|
|
9140
9140
|
const imageRuntimeImport = imageRuntime === "none" ? "" : `import { _withFarmImageSourceClientAddress, createCloudflareImageTransformer, createFarmImageHandler } from "@farm.js/core/image/server";`;
|
|
9141
9141
|
const imageNodeRuntimeImport = imageRuntime === "node" ? `import { createNodeImageFetcher, createNodeImageUrlValidator, createSharpImageTransformer } from "@farm.js/core/image/sharp";` : "";
|
|
9142
9142
|
const apiHandlerCode = apiRoutes.length > 0 ? `
|
|
@@ -9318,7 +9318,7 @@ const farmResolvedRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs);
|
|
|
9318
9318
|
|
|
9319
9319
|
function renderFarmDefault404Page() {
|
|
9320
9320
|
return React.createElement(React.Fragment, null,
|
|
9321
|
-
React.createElement("style", null, ${JSON.stringify(
|
|
9321
|
+
React.createElement("style", null, ${JSON.stringify(_chunkTAXZQNFZcjs.DEFAULT_NOT_FOUND_STYLES)}),
|
|
9322
9322
|
React.createElement("main", {
|
|
9323
9323
|
className: "farm-default-not-found",
|
|
9324
9324
|
"aria-labelledby": "farm-default-not-found-title",
|
|
@@ -9359,7 +9359,7 @@ function createFarmNotFoundElement(pathname) {
|
|
|
9359
9359
|
function isFarmStaticNotFoundPrerender(pathname) {
|
|
9360
9360
|
return (
|
|
9361
9361
|
typeof process !== "undefined" &&
|
|
9362
|
-
process.env?.${
|
|
9362
|
+
process.env?.${_chunkH7DAFRYRcjs.FARM_PRERENDER_ENV} === "1" &&
|
|
9363
9363
|
pathname === ${JSON.stringify(_chunkTFCBJFP7cjs.applyFarmBasePath.call(void 0, FARM_STATIC_NOT_FOUND_PATH, config.basePath))}
|
|
9364
9364
|
);
|
|
9365
9365
|
}
|
|
@@ -9508,7 +9508,7 @@ ${_optionalChain([config, 'access', _220 => _220.agent, 'optionalAccess', _221 =
|
|
|
9508
9508
|
// to the build.
|
|
9509
9509
|
const farmNoindexPreview = resolveFarmPreviewDeployment(
|
|
9510
9510
|
globalThis.process?.env,
|
|
9511
|
-
${JSON.stringify(
|
|
9511
|
+
${JSON.stringify(_chunkJJUHUPRBcjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env))},
|
|
9512
9512
|
);` : ""}
|
|
9513
9513
|
const farmMdxComponents = ${mdxComponentsPath ? `(FarmMdxComponentsModule.components || Reflect.get(FarmMdxComponentsModule, "default") || {})` : `(configuredFarmMdxComponents && typeof configuredFarmMdxComponents === "object" ? configuredFarmMdxComponents : {})`};
|
|
9514
9514
|
const farmObservabilityConfig = farmUserConfig?.observability ?? ${JSON.stringify(
|
|
@@ -9648,7 +9648,7 @@ const farmDocsAppRenderer = ${_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, con
|
|
|
9648
9648
|
registerMCPServer: registerFarmMCPServer,
|
|
9649
9649
|
// A page built with this keeps its HTML string, so the preload budget and the response
|
|
9650
9650
|
// writer use it instead of reading and re-encoding the body. Older adapters ignore it.
|
|
9651
|
-
createHtmlResponse: farmOwnedHtmlResponse,${
|
|
9651
|
+
createHtmlResponse: farmOwnedHtmlResponse,${_chunkK7RXZ77Ucjs.farmDocsAdapterServesGuardedPages.call(void 0, config.docs) ? `
|
|
9652
9652
|
// The adapter keeps pages a path guard covers off search, llms.txt, the sitemap and MCP. It
|
|
9653
9653
|
// asks about any path its own content lists, so the guards decide here, not a page list.
|
|
9654
9654
|
isPathGuarded: (pathname) =>
|
|
@@ -9725,12 +9725,12 @@ const farmDeploymentCookiePath = ${JSON.stringify(config.basePath || "/")};
|
|
|
9725
9725
|
// runtime request.
|
|
9726
9726
|
const farmRuntimeErrorSlot = Symbol("farm.runtime.error.slot");
|
|
9727
9727
|
const farmOpenAPIReference = ${JSON.stringify(openAPIReference)};
|
|
9728
|
-
${_optionalChain([config, 'access', _241 => _241.agent, 'optionalAccess', _242 => _242.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(
|
|
9728
|
+
${_optionalChain([config, 'access', _241 => _241.agent, 'optionalAccess', _242 => _242.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkSO4USIKLcjs.resolveFarmApiCatalogInput.call(void 0, config))};
|
|
9729
9729
|
` : ""}${_optionalChain([config, 'access', _243 => _243.agent, 'optionalAccess', _244 => _244.manifest]) !== false ? `const farmAppManifestInput = ${JSON.stringify(
|
|
9730
|
-
|
|
9730
|
+
_chunkSO4USIKLcjs.resolveFarmAppManifestInput.call(void 0, config, {
|
|
9731
9731
|
build: config.deploymentId,
|
|
9732
|
-
packages:
|
|
9733
|
-
webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ?
|
|
9732
|
+
packages: _chunkTAXZQNFZcjs.resolveFarmAppPackages.call(void 0, config.root),
|
|
9733
|
+
webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkTAXZQNFZcjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
|
|
9734
9734
|
})
|
|
9735
9735
|
)};
|
|
9736
9736
|
${servesDefaultMCP ? "farmAppManifestInput.defaultMCP = getFarmDefaultMCPServer;\n" : ""}// A guard written for an MCP server's path keeps its tools out of the public view.
|
|
@@ -11242,7 +11242,7 @@ ${servesDefaultMCP ? `// agent.mcp: the default read-only MCP server at /mcp, as
|
|
|
11242
11242
|
// aside for a page route that answers /mcp and for any MCP server published or
|
|
11243
11243
|
// registered at runtime, such as the docs engine's.
|
|
11244
11244
|
const farmDefaultMCPServer = ${JSON.stringify(
|
|
11245
|
-
_chunkR6GOH5CHcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root),
|
|
11245
|
+
_chunkR6GOH5CHcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunkC2J5LMH6cjs.FARM_VERSION)
|
|
11246
11246
|
)};
|
|
11247
11247
|
let farmDefaultMCPRouteFree;
|
|
11248
11248
|
function getFarmDefaultMCPServer() {
|
|
@@ -11436,7 +11436,7 @@ ${edgeMiddlewareFilePaths.length > 0 ? `
|
|
|
11436
11436
|
// middleware guards is never prerendered. Read once: Nitro's prerender worker sets the variable.
|
|
11437
11437
|
const farmEdgeMiddlewareFiles = new Set(${JSON.stringify(edgeMiddlewareFilePaths)});
|
|
11438
11438
|
const farmPrerendering =
|
|
11439
|
-
typeof process !== "undefined" && process.env?.${
|
|
11439
|
+
typeof process !== "undefined" && process.env?.${_chunkH7DAFRYRcjs.FARM_PRERENDER_ENV} === "1";
|
|
11440
11440
|
` : ""}
|
|
11441
11441
|
const farmMiddlewareRunner = ${hasMiddlewareRuntime ? `createProductionMiddlewareRunner({
|
|
11442
11442
|
config: farmMiddlewareConfig,
|
|
@@ -11692,7 +11692,7 @@ ${hasInfraAnalyticsRuntime ? `
|
|
|
11692
11692
|
// endpoints, Markdown mirrors, and docs pages have no app route pattern, so they are
|
|
11693
11693
|
// labeled here; route.pattern keeps meaning the matched app route for plugins.
|
|
11694
11694
|
const farmBuiltInRoutePaths = new Set(${JSON.stringify(
|
|
11695
|
-
|
|
11695
|
+
_chunkSO4USIKLcjs.listFarmBuiltInRoutePaths.call(void 0, {
|
|
11696
11696
|
agent: {
|
|
11697
11697
|
...config.agent,
|
|
11698
11698
|
aiCatalog: servesAiCatalog,
|
|
@@ -12473,7 +12473,7 @@ ${hasServerRuntimeIntegrations ? `
|
|
|
12473
12473
|
// agent.manifest: /.well-known/farmjs.json (and 0.1.34's /.well-known/farmjs), the app's
|
|
12474
12474
|
// public manifest, the same document for every request.
|
|
12475
12475
|
if (
|
|
12476
|
-
[${JSON.stringify(
|
|
12476
|
+
[${JSON.stringify(_chunkSO4USIKLcjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunkSO4USIKLcjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
|
|
12477
12477
|
normalizeRuntimePath(routePathname),
|
|
12478
12478
|
)
|
|
12479
12479
|
) {
|
|
@@ -12485,7 +12485,7 @@ ${hasServerRuntimeIntegrations ? `
|
|
|
12485
12485
|
` : ""}
|
|
12486
12486
|
${_optionalChain([config, 'access', _275 => _275.agent, 'optionalAccess', _276 => _276.apiCatalog]) ? `
|
|
12487
12487
|
// agent.apiCatalog: list the OpenAPI and MCP surfaces at the RFC 9727 path.
|
|
12488
|
-
if (normalizeRuntimePath(routePathname) === ${JSON.stringify(
|
|
12488
|
+
if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkSO4USIKLcjs.FARM_API_CATALOG_PATH)}) {
|
|
12489
12489
|
return applyProductionMiddlewareHeaders(
|
|
12490
12490
|
createFarmApiCatalogResponse(request.method, farmApiCatalogInput, request),
|
|
12491
12491
|
middlewareHeaders,
|
|
@@ -14330,7 +14330,7 @@ function getPhysicalPrerenderBypassReason(options) {
|
|
|
14330
14330
|
}
|
|
14331
14331
|
if (_chunkIGBQSUT5cjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
|
|
14332
14332
|
if (_chunkIGBQSUT5cjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
|
|
14333
|
-
if (
|
|
14333
|
+
if (_chunk2LGM5WIKcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
|
|
14334
14334
|
if (farmServerRuntimePluginsMayHandlePath(config, pathname)) return "server runtime plugin";
|
|
14335
14335
|
const manifestEntry = getManifestPageEntry(routeRuntimeManifest, pathname);
|
|
14336
14336
|
if (_optionalChain([manifestEntry, 'optionalAccess', _296 => _296.rendering]) === "dynamic") return "dynamic runtime manifest";
|
|
@@ -14480,7 +14480,7 @@ async function resolveFarmStaticNotFoundPlan(options) {
|
|
|
14480
14480
|
prefixPatterns.add(entry);
|
|
14481
14481
|
}
|
|
14482
14482
|
if (_chunkVZ2P6GRCcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
|
|
14483
|
-
const adapterRoutes = await
|
|
14483
|
+
const adapterRoutes = await _chunkK7RXZ77Ucjs.listFarmDocsAdapterRoutes.call(void 0, config.docs, {
|
|
14484
14484
|
root: options.root,
|
|
14485
14485
|
srcDir: config.srcDir
|
|
14486
14486
|
});
|
|
@@ -14509,7 +14509,7 @@ async function resolveFarmStaticNotFoundPlan(options) {
|
|
|
14509
14509
|
if (config.openapi.specRoute) paths.add(config.openapi.specRoute);
|
|
14510
14510
|
}
|
|
14511
14511
|
if (config.workflows.route) prefixPatterns.add(config.workflows.route);
|
|
14512
|
-
const notFoundPath =
|
|
14512
|
+
const notFoundPath = _chunkTAXZQNFZcjs.resolveFarmNotFoundComponentPath.call(void 0,
|
|
14513
14513
|
config,
|
|
14514
14514
|
_chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, config),
|
|
14515
14515
|
routeManager.getRendererNotFoundPath()
|
|
@@ -14549,7 +14549,7 @@ async function getFarmDocsPrerenderPages(config, root, preset) {
|
|
|
14549
14549
|
}
|
|
14550
14550
|
return pages2;
|
|
14551
14551
|
}
|
|
14552
|
-
const pages = await
|
|
14552
|
+
const pages = await _chunkK7RXZ77Ucjs.listFarmDocsAdapterPages.call(void 0, config.docs, { root, srcDir: config.srcDir });
|
|
14553
14553
|
if (!pages) {
|
|
14554
14554
|
_chunk7ZDLE77Pcjs.logger.warn(
|
|
14555
14555
|
`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.`
|
|
@@ -14563,7 +14563,7 @@ async function listFarmDocsAnalyticsPages(config, root, preset) {
|
|
|
14563
14563
|
return [];
|
|
14564
14564
|
}
|
|
14565
14565
|
try {
|
|
14566
|
-
return await
|
|
14566
|
+
return await _chunkK7RXZ77Ucjs.listFarmDocsPagePaths.call(void 0, config.docs, {
|
|
14567
14567
|
root,
|
|
14568
14568
|
srcDir: config.srcDir,
|
|
14569
14569
|
adapter: _chunkVZ2P6GRCcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)
|
|
@@ -14601,10 +14601,10 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
|
|
|
14601
14601
|
const nitroBuilder = nitroBuilderResult.value;
|
|
14602
14602
|
const isVercel = preset === "vercel";
|
|
14603
14603
|
const isCloudflareWorker = preset === "cloudflare-module";
|
|
14604
|
-
const outputDir =
|
|
14604
|
+
const outputDir = _chunk2LGM5WIKcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
14605
14605
|
const runtimeServerOutputDir = isVercel ? _path2.default.join(outputDir, "functions", "__nitro.func") : _path2.default.join(outputDir, "server");
|
|
14606
14606
|
const ssrOutputDir = _path2.default.join(root, distDir, "ssr");
|
|
14607
|
-
const imageRuntime =
|
|
14607
|
+
const imageRuntime = _chunkTAXZQNFZcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
|
|
14608
14608
|
const hasGeneratedMetadataImages = Array.from(routeManager.getMetadataImages().values()).some(
|
|
14609
14609
|
(image) => image.sourceType === "module"
|
|
14610
14610
|
);
|
|
@@ -15520,13 +15520,13 @@ function toFarmNodeResponse(request, response) {
|
|
|
15520
15520
|
if (prerenderRoutes.length > 0) {
|
|
15521
15521
|
_chunk7ZDLE77Pcjs.logger.info(`\u{1F4C4} Pre-rendering ${prerenderRoutes.length} SSG page(s)`);
|
|
15522
15522
|
}
|
|
15523
|
-
const previousPrerender = process.env[
|
|
15524
|
-
process.env[
|
|
15523
|
+
const previousPrerender = process.env[_chunkH7DAFRYRcjs.FARM_PRERENDER_ENV];
|
|
15524
|
+
process.env[_chunkH7DAFRYRcjs.FARM_PRERENDER_ENV] = "1";
|
|
15525
15525
|
try {
|
|
15526
15526
|
await nitroBuilder.prerender(nitroInstance);
|
|
15527
15527
|
} finally {
|
|
15528
|
-
if (previousPrerender === void 0) delete process.env[
|
|
15529
|
-
else process.env[
|
|
15528
|
+
if (previousPrerender === void 0) delete process.env[_chunkH7DAFRYRcjs.FARM_PRERENDER_ENV];
|
|
15529
|
+
else process.env[_chunkH7DAFRYRcjs.FARM_PRERENDER_ENV] = previousPrerender;
|
|
15530
15530
|
}
|
|
15531
15531
|
}
|
|
15532
15532
|
const sharpRuntimeStagePromise = imageRuntime === "node" ? stageSharpRuntime(config, root, distDir, fs5, preset) : Promise.resolve(null);
|
|
@@ -15930,7 +15930,7 @@ async function stageSharpRuntime(config, root, distDir, fs5, preset) {
|
|
|
15930
15930
|
try {
|
|
15931
15931
|
await copyPackage("sharp", sharpRequire);
|
|
15932
15932
|
if (!copiedPackages.has("sharp")) {
|
|
15933
|
-
throw new Error(`Farm image optimization requires sharp. ${
|
|
15933
|
+
throw new Error(`Farm image optimization requires sharp. ${_chunkTAXZQNFZcjs.SHARP_INSTALL_HINT}`);
|
|
15934
15934
|
}
|
|
15935
15935
|
} catch (error) {
|
|
15936
15936
|
await fs5.rm(stageDir, { recursive: true, force: true });
|
|
@@ -16164,7 +16164,7 @@ async function createFarmProjectModuleSsrEnvironment() {
|
|
|
16164
16164
|
// src/build/index.ts
|
|
16165
16165
|
async function build(config, options = {}) {
|
|
16166
16166
|
return _chunkJYQMGMKTcjs.withProductionNodeEnv.call(void 0,
|
|
16167
|
-
() =>
|
|
16167
|
+
() => _chunkGWFNJLDNcjs.withPackageClientBoundaryCache.call(void 0, () => buildWithProductionNodeEnv(config, options))
|
|
16168
16168
|
);
|
|
16169
16169
|
}
|
|
16170
16170
|
function createBuildTargetBaseline(config) {
|
|
@@ -16175,7 +16175,7 @@ function createBuildTargetBaseline(config) {
|
|
|
16175
16175
|
preset,
|
|
16176
16176
|
distDir,
|
|
16177
16177
|
outputDir,
|
|
16178
|
-
outputWasDerived: outputDir ===
|
|
16178
|
+
outputWasDerived: outputDir === _chunk2LGM5WIKcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
|
|
16179
16179
|
};
|
|
16180
16180
|
}
|
|
16181
16181
|
function resolveBuildTargets(config, options, baseline) {
|
|
@@ -16184,8 +16184,8 @@ function resolveBuildTargets(config, options, baseline) {
|
|
|
16184
16184
|
const distDir = config.distDir || ".farm";
|
|
16185
16185
|
const outputWasReplaced = config.deploy.outputDir !== baseline.outputDir;
|
|
16186
16186
|
const shouldRefreshDerivedOutput = baseline.outputWasDerived && !outputWasReplaced && (preset !== baseline.preset || distDir !== baseline.distDir);
|
|
16187
|
-
const deployTarget = preset === config.deploy.preset ? config.deploy.target :
|
|
16188
|
-
const outputDir = shouldRefreshDerivedOutput ?
|
|
16187
|
+
const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunk2LGM5WIKcjs.getDeployTargetForPreset.call(void 0, preset);
|
|
16188
|
+
const outputDir = shouldRefreshDerivedOutput ? _chunk2LGM5WIKcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
|
|
16189
16189
|
return {
|
|
16190
16190
|
root,
|
|
16191
16191
|
preset,
|
|
@@ -16193,7 +16193,7 @@ function resolveBuildTargets(config, options, baseline) {
|
|
|
16193
16193
|
distDir,
|
|
16194
16194
|
deployTarget,
|
|
16195
16195
|
outputDir,
|
|
16196
|
-
deployOutputDir:
|
|
16196
|
+
deployOutputDir: _chunk2LGM5WIKcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
|
|
16197
16197
|
};
|
|
16198
16198
|
}
|
|
16199
16199
|
async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
@@ -16230,7 +16230,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
16230
16230
|
};
|
|
16231
16231
|
config = {
|
|
16232
16232
|
...config,
|
|
16233
|
-
images:
|
|
16233
|
+
images: _chunkTAXZQNFZcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
|
|
16234
16234
|
root: targets.root,
|
|
16235
16235
|
preset: targets.preset
|
|
16236
16236
|
})
|
|
@@ -16238,7 +16238,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
16238
16238
|
if (_optionalChain([config, 'access', _365 => _365.docs, 'optionalAccess', _366 => _366.enabled])) await _chunkTDAH76RRcjs.loadFarmDocsEngine.call(void 0, );
|
|
16239
16239
|
pluginManager.updateContext({ config });
|
|
16240
16240
|
const { root, preset, srcDir, distDir, deployOutputDir } = targets;
|
|
16241
|
-
|
|
16241
|
+
_chunkGWFNJLDNcjs.usePackageClientBoundaryCacheFile.call(void 0, _chunkGWFNJLDNcjs.resolvePackageClientBoundaryCacheFile.call(void 0, root, distDir));
|
|
16242
16242
|
_chunk7ZDLE77Pcjs.logger.info(`\u{1F69C} Building Farm.js application with preset: ${preset}...`);
|
|
16243
16243
|
await pluginManager.setupPlugins();
|
|
16244
16244
|
await pluginManager.runHookParallel("beforeBundle", {
|
|
@@ -16259,12 +16259,12 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
16259
16259
|
root,
|
|
16260
16260
|
rendererBuild.signal
|
|
16261
16261
|
);
|
|
16262
|
-
const farmApp =
|
|
16262
|
+
const farmApp = _chunkTAXZQNFZcjs.createFarmApp.call(void 0, config, projectModuleServer);
|
|
16263
16263
|
if (options.universal !== false) farmApp.getRouteManager().keepBuildSourceSnapshot();
|
|
16264
16264
|
await farmApp.initialize();
|
|
16265
16265
|
const routeManager = farmApp.getRouteManager();
|
|
16266
16266
|
const serverRenderer = farmApp.getServerRenderer();
|
|
16267
|
-
const typeArtifacts =
|
|
16267
|
+
const typeArtifacts = _chunkYPPAYYSXcjs.generateFarmTypeArtifacts.call(void 0, {
|
|
16268
16268
|
root,
|
|
16269
16269
|
srcDir,
|
|
16270
16270
|
layers: config.layers,
|
|
@@ -16277,12 +16277,14 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
16277
16277
|
suppressLintOnLink: config.suppressLintOnLink,
|
|
16278
16278
|
componentExtensions: config.renderer.componentExtensions,
|
|
16279
16279
|
renderer: config.renderer,
|
|
16280
|
-
i18nConfig: config.i18n
|
|
16280
|
+
i18nConfig: config.i18n,
|
|
16281
|
+
// Match the routes the API route manager below discovers through this server.
|
|
16282
|
+
polyroute: _chunkYCGOQKVCcjs.hasPolyroutePlugin.call(void 0, projectModuleServer.config.plugins)
|
|
16281
16283
|
}).catch((error) => {
|
|
16282
16284
|
const message = error instanceof Error ? error.message : String(error);
|
|
16283
16285
|
_chunk7ZDLE77Pcjs.logger.warn(`Route type generation failed (farm.d.ts may be stale): ${message}`);
|
|
16284
16286
|
});
|
|
16285
|
-
const apiRouteManager = new (0,
|
|
16287
|
+
const apiRouteManager = new (0, _chunkY3MTKPLNcjs.APIRouteManager)(
|
|
16286
16288
|
_chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, config),
|
|
16287
16289
|
projectModuleServer,
|
|
16288
16290
|
{
|
|
@@ -16369,7 +16371,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
16369
16371
|
ssr: true,
|
|
16370
16372
|
buildLifetime
|
|
16371
16373
|
});
|
|
16372
|
-
const viteConfig =
|
|
16374
|
+
const viteConfig = _chunkTAXZQNFZcjs.mergeFarmViteConfig.call(void 0,
|
|
16373
16375
|
{
|
|
16374
16376
|
root,
|
|
16375
16377
|
appType: "custom",
|
|
@@ -16381,13 +16383,13 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
16381
16383
|
},
|
|
16382
16384
|
plugins: [
|
|
16383
16385
|
...rendererVitePlugins,
|
|
16384
|
-
|
|
16386
|
+
_chunkTAXZQNFZcjs.farmFontImportsPlugin.call(void 0, {
|
|
16385
16387
|
root,
|
|
16386
16388
|
basePath: config.basePath,
|
|
16387
16389
|
publicDir: config.publicDir,
|
|
16388
|
-
isLayoutModule: (id) =>
|
|
16390
|
+
isLayoutModule: (id) => _chunkTAXZQNFZcjs.isFarmLayoutModule.call(void 0, id, _chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, config))
|
|
16389
16391
|
}),
|
|
16390
|
-
|
|
16392
|
+
_chunkGWFNJLDNcjs.farmEnvironmentFunctionsPlugin.call(void 0, { renderer: config.renderer }),
|
|
16391
16393
|
// Route modules load here at build time (rendering config, prerendering): `server-only`
|
|
16392
16394
|
// resolves as it does in the server build. Module-entry packages load pre-bundled, as in
|
|
16393
16395
|
// `farm dev`: unbundled, lucide-react alone is ~1,750 modules through the module runner,
|
|
@@ -16403,7 +16405,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
16403
16405
|
hmr: false
|
|
16404
16406
|
},
|
|
16405
16407
|
resolve: {
|
|
16406
|
-
alias:
|
|
16408
|
+
alias: _chunkTAXZQNFZcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
|
|
16407
16409
|
dedupe: [...config.renderer.dedupe || []]
|
|
16408
16410
|
},
|
|
16409
16411
|
optimizeDeps: {
|
|
@@ -16481,7 +16483,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
|
|
|
16481
16483
|
farmNavigationPlugin(config.renderer),
|
|
16482
16484
|
farmIslandContainersPlugin(config),
|
|
16483
16485
|
farmPlugin(config, pluginManager),
|
|
16484
|
-
|
|
16486
|
+
_chunkGWFNJLDNcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
|
|
16485
16487
|
],
|
|
16486
16488
|
mode: "production"
|
|
16487
16489
|
});
|
|
@@ -16515,7 +16517,7 @@ async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
|
|
|
16515
16517
|
farmI18nClientBridgePlugin(),
|
|
16516
16518
|
farmIslandContainersPlugin(config),
|
|
16517
16519
|
farmPlugin(config, pluginManager),
|
|
16518
|
-
|
|
16520
|
+
_chunkGWFNJLDNcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
|
|
16519
16521
|
],
|
|
16520
16522
|
mode: "production"
|
|
16521
16523
|
});
|
|
@@ -16543,7 +16545,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
|
|
|
16543
16545
|
if (pluginManager) {
|
|
16544
16546
|
nitroConfig = await pluginManager.runHookSerial("beforeNitroBuild", nitroConfig);
|
|
16545
16547
|
}
|
|
16546
|
-
const outputDir =
|
|
16548
|
+
const outputDir = _chunk2LGM5WIKcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
16547
16549
|
const serverOutputDir = _path2.default.join(outputDir, "server");
|
|
16548
16550
|
const publicOutputDir = _path2.default.join(outputDir, "public");
|
|
16549
16551
|
const { mkdir, cp } = await import("fs/promises");
|
|
@@ -16614,7 +16616,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
|
|
|
16614
16616
|
root,
|
|
16615
16617
|
preset,
|
|
16616
16618
|
distDir,
|
|
16617
|
-
outputDir:
|
|
16619
|
+
outputDir: _chunk2LGM5WIKcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir),
|
|
16618
16620
|
serverDir: _path2.default.resolve(nitro.options.output.serverDir)
|
|
16619
16621
|
});
|
|
16620
16622
|
}
|