@farm.js/core 0.1.76 → 0.1.77
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-Cftp2kFv.d.ts → agent-mcp.d-B1h3RznZ.d.ts} +1 -1
- package/dist/{agent-mcp.d-D0FMmqi0.d.mts → agent-mcp.d-WFQotg8M.d.mts} +1 -1
- package/dist/agent-runtime.cjs +2 -2
- package/dist/agent-runtime.d.mts +2 -2
- package/dist/agent-runtime.d.ts +2 -2
- package/dist/agent-runtime.mjs +1 -1
- package/dist/{analyzer-NLQKPN74.mjs → analyzer-64YS2OXQ.mjs} +2 -2
- package/dist/analyzer-HTNXLX6N.cjs +16 -0
- package/dist/api/node.d.mts +4 -4
- package/dist/api/node.d.ts +4 -4
- package/dist/api/route-manager.d.mts +4 -4
- package/dist/api/route-manager.d.ts +4 -4
- package/dist/api/runtime.d.mts +3 -3
- package/dist/api/runtime.d.ts +3 -3
- package/dist/api.d.mts +5 -5
- package/dist/api.d.ts +5 -5
- package/dist/{app-manifest.d-cpOw_sV5.d.mts → app-manifest.d-EZEYG-tD.d.mts} +1 -1
- package/dist/{app-manifest.d-7PmA_9hm.d.ts → app-manifest.d-Ktsqsuk9.d.ts} +1 -1
- package/dist/app-markdown.d.mts +3 -3
- package/dist/app-markdown.d.ts +3 -3
- package/dist/{app.d-wOkxXre8.d.ts → app.d-CSh3y8w8.d.ts} +4 -4
- package/dist/{app.d-DUZvwnFF.d.mts → app.d-DTkqYcIr.d.mts} +4 -4
- package/dist/{chunk-CL2ONP73.cjs → chunk-2PE5STAR.cjs} +36 -27
- package/dist/{chunk-MOS2N377.mjs → chunk-2QPTZMGK.mjs} +1 -1
- package/dist/{chunk-E7VF3LQ5.mjs → chunk-4STJ6LGR.mjs} +13 -1
- package/dist/{chunk-LQBV2Y37.mjs → chunk-65XXHTVJ.mjs} +38 -2
- package/dist/{chunk-O225GNEU.mjs → chunk-7EXFAJST.mjs} +13 -12
- package/dist/{chunk-QTDIOZV6.cjs → chunk-7SAGHWWU.cjs} +2 -2
- package/dist/{chunk-5EEQNZLU.mjs → chunk-BTHNOAOF.mjs} +2 -2
- package/dist/{chunk-Q4X3MX4J.mjs → chunk-D2RLADWN.mjs} +95 -101
- package/dist/chunk-DS2KZ5BT.mjs +16 -0
- package/dist/{chunk-PXXG5BID.cjs → chunk-DSRWQ4SJ.cjs} +3 -3
- package/dist/{chunk-WMJQNVKX.cjs → chunk-FCHEO3LG.cjs} +2 -2
- package/dist/{chunk-75XSZIRE.mjs → chunk-FD6BMUA3.mjs} +35 -26
- package/dist/{chunk-JL6XHQZF.mjs → chunk-FNVGK72M.mjs} +5 -5
- package/dist/{chunk-Q7JMHO5U.mjs → chunk-FPGSIOWS.mjs} +2 -2
- package/dist/{chunk-2JEXQAIR.cjs → chunk-FTQUNBRN.cjs} +2 -2
- package/dist/{chunk-HKGU2X4I.cjs → chunk-FVVGEGQ2.cjs} +2 -2
- package/dist/{chunk-7564NP5Z.cjs → chunk-GC2BSXQS.cjs} +39 -3
- package/dist/{chunk-CKBBKRBO.mjs → chunk-IHMSLS2O.mjs} +8 -8
- package/dist/{chunk-DVW6SKHA.cjs → chunk-IIVZTGGP.cjs} +2 -2
- package/dist/{chunk-A2VFKOQL.mjs → chunk-IXC6WDMT.mjs} +1 -1
- package/dist/{chunk-TMVVBK5S.cjs → chunk-JD42G6BN.cjs} +2 -2
- package/dist/{chunk-WILPJVQE.cjs → chunk-LTDMJD2F.cjs} +4 -4
- package/dist/{chunk-XX6ZA2IO.cjs → chunk-MQW4LHJR.cjs} +1 -1
- package/dist/{chunk-BYJPBJ4E.cjs → chunk-NQZWLIPT.cjs} +3 -3
- package/dist/{chunk-YHE7HH2I.mjs → chunk-NTHAZLVS.mjs} +27 -26
- package/dist/{chunk-OCLCA3X3.mjs → chunk-OCKQ3YOH.mjs} +1 -1
- package/dist/{chunk-WJDMH3E7.cjs → chunk-OQZF6H6G.cjs} +4 -4
- package/dist/{chunk-SGQXJVFX.mjs → chunk-ORWXJDUN.mjs} +1 -1
- package/dist/{chunk-QP4GYVRR.cjs → chunk-PMKUTZGR.cjs} +8 -8
- package/dist/{chunk-CCQZDOQR.cjs → chunk-PUEPDMWY.cjs} +16 -16
- package/dist/{chunk-MTBDJ326.cjs → chunk-QMR2TUVZ.cjs} +13 -1
- package/dist/{chunk-2GZZVIXY.mjs → chunk-QODXWUGQ.mjs} +2 -2
- package/dist/{chunk-UBXNTZCY.cjs → chunk-RFXEQYPH.cjs} +98 -104
- package/dist/{chunk-DTNWLRRF.cjs → chunk-SIYELCIX.cjs} +73 -73
- package/dist/{chunk-E77ZKNPN.mjs → chunk-SL2BSPDJ.mjs} +1 -1
- package/dist/{chunk-X3HUT4JU.mjs → chunk-SMYDCZBW.mjs} +1 -1
- package/dist/{chunk-YQXJY7E7.mjs → chunk-TQOYIPMQ.mjs} +1 -1
- package/dist/{chunk-XLOORES5.cjs → chunk-UYACD4SH.cjs} +1 -1
- package/dist/{chunk-3OYFMOBY.mjs → chunk-WHNNDFCJ.mjs} +1 -1
- package/dist/{chunk-YONTMPZ6.mjs → chunk-WXMR3OHY.mjs} +1 -1
- package/dist/{chunk-BBRSPKFI.cjs → chunk-WZVESREI.cjs} +145 -144
- package/dist/chunk-XRRHPBG2.cjs +16 -0
- package/dist/{chunk-PSNYVBWC.cjs → chunk-YROK6CJC.cjs} +7 -7
- package/dist/{chunk-2WKGQCAV.cjs → chunk-YRQ44JTF.cjs} +153 -152
- package/dist/{chunk-VDJ3CLBR.mjs → chunk-YTGNMKRA.mjs} +1 -1
- package/dist/{chunk-GP5BWTO7.mjs → chunk-ZBE5EHVJ.mjs} +4 -4
- package/dist/{cli-runtime.d-D84CwyPI.d.ts → cli-runtime.d-DljFfr8T.d.ts} +8 -6
- package/dist/{cli-runtime.d-OQY2pgwK.d.mts → cli-runtime.d-HSkdfvoq.d.mts} +8 -6
- package/dist/{client-component.d-Bh6CfC5z.d.mts → client-component.d-B-1dIlsw.d.mts} +1 -1
- package/dist/{client-component.d-Bf8jZqW7.d.ts → client-component.d-_otXB__v.d.ts} +1 -1
- package/dist/{client-plugins.d-r3K2oQ6w.d.mts → client-plugins.d-BmBzvfSP.d.mts} +1 -1
- package/dist/{client-plugins.d-DuujrC8d.d.ts → client-plugins.d-MjxlvbCK.d.ts} +1 -1
- package/dist/client-plugins.d.mts +2 -2
- package/dist/client-plugins.d.ts +2 -2
- package/dist/client.d.mts +7 -7
- package/dist/client.d.ts +7 -7
- package/dist/config.d.mts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/desktop.d.mts +3 -3
- package/dist/desktop.d.ts +3 -3
- package/dist/{devtools-MBZPUH3U.mjs → devtools-7LHXG2VS.mjs} +4 -3
- package/dist/{devtools-3WZIZ7KK.cjs → devtools-NNQN66EZ.cjs} +5 -4
- package/dist/docs.cjs +6 -5
- package/dist/docs.d.mts +4 -4
- package/dist/docs.d.ts +4 -4
- package/dist/docs.mjs +5 -4
- package/dist/environment/vite.cjs +5 -4
- package/dist/environment/vite.mjs +4 -3
- package/dist/{handler.d-Bd5lRSvb.d.ts → handler.d-C53zFDmp.d.ts} +1 -1
- package/dist/{handler.d-SRH-AKzf.d.mts → handler.d-CaYopqaD.d.mts} +1 -1
- package/dist/{headers.d-D-OvGikv.d.ts → headers.d-BvtpC90T.d.ts} +1 -1
- package/dist/{headers.d-CHHvyaIG.d.mts → headers.d-MBkD9ZLf.d.mts} +1 -1
- package/dist/index.cjs +28 -23
- package/dist/{index.d-BiUtYJUG.d.ts → index.d-2hQpPZ-P.d.ts} +1 -1
- package/dist/{index.d-BOPsgMlI.d.mts → index.d-Mikf-tdP.d.mts} +1 -1
- package/dist/index.d.mts +23 -23
- package/dist/index.d.ts +23 -23
- package/dist/index.mjs +27 -22
- package/dist/integrations/orm.cjs +4 -3
- package/dist/integrations/orm.d.mts +2 -2
- package/dist/integrations/orm.d.ts +2 -2
- package/dist/integrations/orm.mjs +3 -2
- package/dist/integrations.cjs +2 -2
- package/dist/integrations.d.mts +2 -2
- package/dist/integrations.d.ts +2 -2
- package/dist/integrations.mjs +1 -1
- 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 -21
- package/dist/internal/build-runtime.d.mts +5 -5
- package/dist/internal/build-runtime.d.ts +5 -5
- package/dist/internal/build-runtime.mjs +21 -20
- package/dist/internal/cli-runtime.cjs +12 -9
- package/dist/internal/cli-runtime.d.mts +9 -8
- package/dist/internal/cli-runtime.d.ts +9 -8
- package/dist/internal/cli-runtime.mjs +12 -9
- 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 +5 -5
- package/dist/internal/client-runtime.d.ts +5 -5
- package/dist/internal/compression-runtime.cjs +2 -2
- package/dist/internal/compression-runtime.d.mts +6 -3
- package/dist/internal/compression-runtime.d.ts +6 -3
- package/dist/internal/compression-runtime.mjs +1 -1
- package/dist/internal/config-runtime.cjs +6 -5
- package/dist/internal/config-runtime.d.mts +4 -4
- package/dist/internal/config-runtime.d.ts +4 -4
- package/dist/internal/config-runtime.mjs +5 -4
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/native-server-fns.cjs +4 -4
- package/dist/internal/native-server-fns.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +7 -6
- package/dist/internal/production-runtime.d.mts +11 -11
- package/dist/internal/production-runtime.d.ts +11 -11
- package/dist/internal/production-runtime.mjs +6 -5
- package/dist/internal/start-manifest.d.mts +2 -2
- package/dist/internal/start-manifest.d.ts +2 -2
- package/dist/{layers-XQ7VFMWO.mjs → layers-I7VE5Q2Y.mjs} +2 -1
- package/dist/layers-WP5K5F7W.cjs +21 -0
- package/dist/markdown.d.mts +2 -2
- package/dist/markdown.d.ts +2 -2
- package/dist/middleware.d.mts +2 -2
- package/dist/middleware.d.ts +2 -2
- package/dist/{mount.d-vq1HTq5u.d.mts → mount.d-DsP46XCy.d.mts} +1 -1
- package/dist/{mount.d-C2yq0Zzz.d.ts → mount.d-GU-tNxbE.d.ts} +1 -1
- package/dist/{navigation-delegate.d-DS2Sqm7E.d.mts → navigation-delegate.d-CUtNOYLi.d.mts} +1 -1
- package/dist/{navigation-delegate.d-D7xIin3i.d.ts → navigation-delegate.d-DsxNPrLT.d.ts} +1 -1
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/{plugin-6CHZBFJD.mjs → plugin-2KWR2X4B.mjs} +1 -1
- package/dist/{plugin-YXPIS3XX.cjs → plugin-MW7IDV76.cjs} +2 -2
- package/dist/plugin.cjs +14 -13
- package/dist/plugin.d.mts +6 -6
- package/dist/plugin.d.ts +6 -6
- package/dist/plugin.mjs +13 -12
- package/dist/{render-plan.d-BCq0nfdw.d.ts → render-plan.d-8K6S0h0L.d.ts} +1 -1
- package/dist/{render-plan.d-X6KqerAM.d.mts → render-plan.d-B7Xp-PPW.d.mts} +1 -1
- package/dist/renderer-client.d.mts +5 -5
- package/dist/renderer-client.d.ts +5 -5
- package/dist/{request.d-CPdq2_kC.d.ts → request.d-CuQxmOqX.d.ts} +1 -1
- package/dist/{request.d-Be9rWboC.d.mts → request.d-nhqciCAz.d.mts} +1 -1
- package/dist/request.d.mts +3 -3
- package/dist/request.d.ts +3 -3
- package/dist/{route-rendering.d-CKB5GhQr.d.ts → route-rendering.d-BSsdDYC1.d.ts} +1 -1
- package/dist/{route-rendering.d-CIPli7Ve.d.mts → route-rendering.d-CeF1FOnl.d.mts} +1 -1
- package/dist/{router.d-CvrbOXzF.d.ts → router.d-C7yGlhDL.d.ts} +1 -1
- package/dist/{router.d-VxTgLGxN.d.mts → router.d-D462OX24.d.mts} +1 -1
- package/dist/routes.d.mts +2 -2
- package/dist/routes.d.ts +2 -2
- package/dist/{rsc-pipeline-TPHK74VE.cjs → rsc-pipeline-7PV6ARDS.cjs} +8 -7
- package/dist/{rsc-pipeline-FPE4OL57.mjs → rsc-pipeline-EZU4W4RL.mjs} +7 -6
- package/dist/{runtime-UBG657UC.cjs → runtime-QOE3NRXF.cjs} +8 -7
- package/dist/{runtime-45BD33OJ.mjs → runtime-RWLFEPS3.mjs} +5 -4
- package/dist/{runtime.d-Cn1jiDNI.d.mts → runtime.d-C-BHQMy5.d.mts} +1 -1
- package/dist/{runtime.d-Ps54JWpo.d.ts → runtime.d-CORDJQMy.d.ts} +1 -1
- package/dist/{server-components-status.d-DnmipSb3.d.mts → server-components-status.d-BJ6huueH.d.mts} +1 -1
- package/dist/{server-components-status.d-Dhtbs5lC.d.ts → server-components-status.d-BbADqqjq.d.ts} +1 -1
- package/dist/server-plugins.cjs +2 -2
- package/dist/server-plugins.d.mts +4 -4
- package/dist/server-plugins.d.ts +4 -4
- package/dist/server-plugins.mjs +1 -1
- package/dist/server.cjs +43 -38
- package/dist/server.d.mts +13 -13
- package/dist/server.d.ts +13 -13
- package/dist/server.mjs +21 -16
- package/dist/session-OU7M4CIF.cjs +24 -0
- package/dist/{session-ASQTJNBK.mjs → session-WPAT6H76.mjs} +3 -2
- package/dist/{spa-router.d-DXm5J9rM.d.mts → spa-router.d-DfjafHyX.d.mts} +2 -2
- package/dist/{spa-router.d-cppVufl2.d.ts → spa-router.d-DyGJLQc_.d.ts} +2 -2
- package/dist/{ssg.d-CI5OFl8H.d.ts → ssg.d-D11lz_wr.d.ts} +2 -2
- package/dist/{ssg.d-Duzy1wQc.d.mts → ssg.d-iiLTyLAO.d.mts} +2 -2
- package/dist/storage.cjs +7 -2
- package/dist/storage.d.mts +260 -38
- package/dist/storage.d.ts +260 -38
- package/dist/storage.mjs +6 -1
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/{types.d-D5cY6XjK.d.mts → types.d-DC97bnjj.d.mts} +20 -3
- package/dist/{types.d-D5cY6XjK.d.ts → types.d-DC97bnjj.d.ts} +20 -3
- package/dist/{utils.d-D3dfy8zh.d.ts → utils.d-D-GQeEfa.d.ts} +1 -1
- package/dist/{utils.d-CNI-I8ZV.d.mts → utils.d-fW-95yEh.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +14 -13
- package/dist/vite.d.mts +7 -7
- package/dist/vite.d.ts +7 -7
- package/dist/vite.mjs +13 -12
- package/package.json +2 -2
- package/dist/analyzer-KFJGYJS7.cjs +0 -16
- package/dist/layers-7P4RLKVX.cjs +0 -20
- package/dist/session-ACVUJ5XV.cjs +0 -23
- /package/dist/{chunk-OWO7KDZ3.cjs → chunk-AF3PNVVF.cjs} +0 -0
- /package/dist/{chunk-6MNDFNZW.mjs → chunk-BEXH6BGH.mjs} +0 -0
- /package/dist/{chunk-22T75EML.cjs → chunk-PC5OZ4YR.cjs} +0 -0
- /package/dist/{chunk-LSHUCNIF.mjs → chunk-RL47VZ6J.mjs} +0 -0
|
@@ -28,11 +28,11 @@ var _chunkNG2EZ6QScjs = require('./chunk-NG2EZ6QS.cjs');
|
|
|
28
28
|
var _chunkVM57CK74cjs = require('./chunk-VM57CK74.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkFTQUNBRNcjs = require('./chunk-FTQUNBRN.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkNQZWLIPTcjs = require('./chunk-NQZWLIPT.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -41,7 +41,7 @@ var _chunkBYJPBJ4Ecjs = require('./chunk-BYJPBJ4E.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkFCHEO3LGcjs = require('./chunk-FCHEO3LG.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
@@ -65,7 +65,7 @@ var _chunkDZZHTMWMcjs = require('./chunk-DZZHTMWM.cjs');
|
|
|
65
65
|
var _chunk42EUEYW6cjs = require('./chunk-42EUEYW6.cjs');
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
var
|
|
68
|
+
var _chunkDSRWQ4SJcjs = require('./chunk-DSRWQ4SJ.cjs');
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
var _chunkNDOE76QCcjs = require('./chunk-NDOE76QC.cjs');
|
|
@@ -74,7 +74,7 @@ var _chunkNDOE76QCcjs = require('./chunk-NDOE76QC.cjs');
|
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
var
|
|
77
|
+
var _chunkYROK6CJCcjs = require('./chunk-YROK6CJC.cjs');
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
var _chunk3GNHJ3RNcjs = require('./chunk-3GNHJ3RN.cjs');
|
|
@@ -116,23 +116,23 @@ var _chunkO4JYMU5Ncjs = require('./chunk-O4JYMU5N.cjs');
|
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
|
|
119
|
-
var
|
|
119
|
+
var _chunkSIYELCIXcjs = require('./chunk-SIYELCIX.cjs');
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
|
|
126
|
-
var
|
|
126
|
+
var _chunk7SAGHWWUcjs = require('./chunk-7SAGHWWU.cjs');
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
var
|
|
129
|
+
var _chunkPC5OZ4YRcjs = require('./chunk-PC5OZ4YR.cjs');
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
|
|
135
|
-
var
|
|
135
|
+
var _chunkGC2BSXQScjs = require('./chunk-GC2BSXQS.cjs');
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
|
|
@@ -159,7 +159,7 @@ var _chunk47JV57DAcjs = require('./chunk-47JV57DA.cjs');
|
|
|
159
159
|
|
|
160
160
|
|
|
161
161
|
|
|
162
|
-
var
|
|
162
|
+
var _chunkLTDMJD2Fcjs = require('./chunk-LTDMJD2F.cjs');
|
|
163
163
|
|
|
164
164
|
|
|
165
165
|
|
|
@@ -167,7 +167,7 @@ var _chunkWILPJVQEcjs = require('./chunk-WILPJVQE.cjs');
|
|
|
167
167
|
var _chunkYRXPDKMMcjs = require('./chunk-YRXPDKMM.cjs');
|
|
168
168
|
|
|
169
169
|
|
|
170
|
-
var
|
|
170
|
+
var _chunkJD42G6BNcjs = require('./chunk-JD42G6BN.cjs');
|
|
171
171
|
|
|
172
172
|
|
|
173
173
|
var _chunk4EBC7EMWcjs = require('./chunk-4EBC7EMW.cjs');
|
|
@@ -188,7 +188,7 @@ var _chunk4EBC7EMWcjs = require('./chunk-4EBC7EMW.cjs');
|
|
|
188
188
|
|
|
189
189
|
|
|
190
190
|
|
|
191
|
-
var
|
|
191
|
+
var _chunkPMKUTZGRcjs = require('./chunk-PMKUTZGR.cjs');
|
|
192
192
|
|
|
193
193
|
|
|
194
194
|
|
|
@@ -210,7 +210,7 @@ var _chunk6JHZPB52cjs = require('./chunk-6JHZPB52.cjs');
|
|
|
210
210
|
var _chunkRE5E2G5Scjs = require('./chunk-RE5E2G5S.cjs');
|
|
211
211
|
|
|
212
212
|
|
|
213
|
-
var
|
|
213
|
+
var _chunkQMR2TUVZcjs = require('./chunk-QMR2TUVZ.cjs');
|
|
214
214
|
|
|
215
215
|
|
|
216
216
|
|
|
@@ -257,13 +257,13 @@ var _chunkQUEYL2WMcjs = require('./chunk-QUEYL2WM.cjs');
|
|
|
257
257
|
|
|
258
258
|
|
|
259
259
|
|
|
260
|
-
var
|
|
260
|
+
var _chunkAF3PNVVFcjs = require('./chunk-AF3PNVVF.cjs');
|
|
261
261
|
|
|
262
262
|
|
|
263
263
|
var _chunkQKW6DLDTcjs = require('./chunk-QKW6DLDT.cjs');
|
|
264
264
|
|
|
265
265
|
|
|
266
|
-
var
|
|
266
|
+
var _chunkRFXEQYPHcjs = require('./chunk-RFXEQYPH.cjs');
|
|
267
267
|
|
|
268
268
|
|
|
269
269
|
|
|
@@ -299,7 +299,7 @@ var _chunkGC5ROI3Acjs = require('./chunk-GC5ROI3A.cjs');
|
|
|
299
299
|
var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
|
|
300
300
|
|
|
301
301
|
|
|
302
|
-
var
|
|
302
|
+
var _chunkUYACD4SHcjs = require('./chunk-UYACD4SH.cjs');
|
|
303
303
|
|
|
304
304
|
|
|
305
305
|
var _chunkY3DO7BIJcjs = require('./chunk-Y3DO7BIJ.cjs');
|
|
@@ -642,7 +642,7 @@ async function compileFarmDocsManifest(docs, options) {
|
|
|
642
642
|
isPathGuarded: options.isPathGuarded,
|
|
643
643
|
basePath
|
|
644
644
|
});
|
|
645
|
-
const apiHandler =
|
|
645
|
+
const apiHandler = _chunkFCHEO3LGcjs.createFarmDocsAPIHandler.call(void 0, {
|
|
646
646
|
rootDir: options.root,
|
|
647
647
|
srcDir: options.srcDir,
|
|
648
648
|
docs,
|
|
@@ -993,7 +993,7 @@ async function createFarmRouteRuntimeManifest(options) {
|
|
|
993
993
|
const routes = [];
|
|
994
994
|
for (const [pattern, entry] of options.routeManager.getRoutes()) {
|
|
995
995
|
const routeModule = await options.routeManager.loadRouteModule(entry.modulePath);
|
|
996
|
-
const rendering = await
|
|
996
|
+
const rendering = await _chunkGC2BSXQScjs.resolveRouteRenderingConfigFromFile.call(void 0, routeModule, entry.modulePath);
|
|
997
997
|
const runtimeConfig = await options.routeManager.resolveRouteRuntimeConfig(pattern);
|
|
998
998
|
routes.push({
|
|
999
999
|
kind: "page",
|
|
@@ -1606,7 +1606,7 @@ function farmStripPlatformConfigPlugin(configFiles) {
|
|
|
1606
1606
|
// removed block used (`readFileSync` for a version, say).
|
|
1607
1607
|
enforce: "pre",
|
|
1608
1608
|
transform: {
|
|
1609
|
-
filter: { id:
|
|
1609
|
+
filter: { id: _chunkSIYELCIXcjs.fileNamePattern.call(void 0, configFiles) },
|
|
1610
1610
|
async handler(code, id) {
|
|
1611
1611
|
const file = id.split("?", 1)[0];
|
|
1612
1612
|
if (!files.has(_path2.default.resolve(file)) && !files.has(realPath(file))) return null;
|
|
@@ -1886,7 +1886,7 @@ async function writeFarmVercelEdgeMiddlewareFunction(options) {
|
|
|
1886
1886
|
logLevel: "silent",
|
|
1887
1887
|
plugins: [edgeNodeModulesPlugin(coreDir, unsupported)],
|
|
1888
1888
|
resolve: {
|
|
1889
|
-
alias:
|
|
1889
|
+
alias: _chunkSIYELCIXcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
|
|
1890
1890
|
conditionNames: ["edge-light", "worker", "browser", "import", "module", "default"]
|
|
1891
1891
|
},
|
|
1892
1892
|
transform: {
|
|
@@ -2139,7 +2139,7 @@ function createPrerenderRuntimeResolverPlugin(root, resolveNitroEntry = resolveN
|
|
|
2139
2139
|
};
|
|
2140
2140
|
}
|
|
2141
2141
|
function createFarmStorageModuleRegistration(config) {
|
|
2142
|
-
const modules =
|
|
2142
|
+
const modules = _chunkRFXEQYPHcjs._collectFarmStorageModules.call(void 0, config.storage);
|
|
2143
2143
|
if (modules.length === 0) return "";
|
|
2144
2144
|
const root = config.root || process.cwd();
|
|
2145
2145
|
const projectRequire = _module.createRequire.call(void 0, _path2.default.join(root, "package.json"));
|
|
@@ -2288,7 +2288,7 @@ function createOmittedMetadataImageRuntimePlugin(externalizeOtherImports) {
|
|
|
2288
2288
|
return {
|
|
2289
2289
|
name: "farm-omitted-metadata-image-runtime",
|
|
2290
2290
|
resolveId: {
|
|
2291
|
-
filter: { id:
|
|
2291
|
+
filter: { id: _chunkSIYELCIXcjs.exactIdPattern.call(void 0, ["@vercel/og"]) },
|
|
2292
2292
|
handler(source, importer) {
|
|
2293
2293
|
if (source !== "@vercel/og") return null;
|
|
2294
2294
|
const fromCoreRuntime = importer !== void 0 && isFarmCoreModule(importer) && !/^og\.[cm]?[jt]sx?$/.test(_path2.default.basename(importer.split("?", 1)[0]));
|
|
@@ -2297,7 +2297,7 @@ function createOmittedMetadataImageRuntimePlugin(externalizeOtherImports) {
|
|
|
2297
2297
|
}
|
|
2298
2298
|
},
|
|
2299
2299
|
load: {
|
|
2300
|
-
filter: { id:
|
|
2300
|
+
filter: { id: _chunkSIYELCIXcjs.exactIdPattern.call(void 0, [FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID]) },
|
|
2301
2301
|
handler(id) {
|
|
2302
2302
|
if (id !== FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID) return null;
|
|
2303
2303
|
return `
|
|
@@ -2626,9 +2626,9 @@ function hasFarmPluginRoutes(config) {
|
|
|
2626
2626
|
}
|
|
2627
2627
|
function farmServerRuntimePluginsMayHandlePath(config, pathname) {
|
|
2628
2628
|
return (config.plugins || []).some(
|
|
2629
|
-
(plugin) =>
|
|
2629
|
+
(plugin) => _chunkAF3PNVVFcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false && // Mobile session tokens change only bearer requests and cookie-clearing responses, which a
|
|
2630
2630
|
// prerendered file never answers or sends; its endpoints live under /__farm/.
|
|
2631
|
-
plugin.name !==
|
|
2631
|
+
plugin.name !== _chunkFTQUNBRNcjs.FARM_MOBILE_SESSION_PLUGIN && _chunk47JV57DAcjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, pathname)
|
|
2632
2632
|
);
|
|
2633
2633
|
}
|
|
2634
2634
|
async function discoverMiddlewareRoutes(appDir) {
|
|
@@ -2917,7 +2917,7 @@ function collectFarmPrerenderedMarkdownBodies(pageRoutes) {
|
|
|
2917
2917
|
for (const route of pageRoutes) {
|
|
2918
2918
|
if (route.source === void 0 || !_chunkPG7J7XYTcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) continue;
|
|
2919
2919
|
const { body } = _chunkPG7J7XYTcjs.parseMarkdownFrontmatter.call(void 0, route.source);
|
|
2920
|
-
const rendering =
|
|
2920
|
+
const rendering = _chunkGC2BSXQScjs.resolveRouteRenderingConfig.call(void 0,
|
|
2921
2921
|
_chunkPG7J7XYTcjs.readFarmMarkdownRouteConfig.call(void 0, body),
|
|
2922
2922
|
route.source
|
|
2923
2923
|
);
|
|
@@ -2961,7 +2961,7 @@ async function writeFarmVideoPlayerToClient(outputDir) {
|
|
|
2961
2961
|
const filePath = _path2.default.join(outputDir, _chunkY3DO7BIJcjs.FARM_VIDEO_PLAYER_PATH.slice(1));
|
|
2962
2962
|
await fs5.mkdir(_path2.default.dirname(filePath), { recursive: true });
|
|
2963
2963
|
try {
|
|
2964
|
-
await fs5.writeFile(filePath,
|
|
2964
|
+
await fs5.writeFile(filePath, _chunkSIYELCIXcjs.FARM_VIDEO_PLAYER_HTML, { flag: "wx" });
|
|
2965
2965
|
} catch (error) {
|
|
2966
2966
|
if (error.code !== "EEXIST") throw error;
|
|
2967
2967
|
}
|
|
@@ -2995,7 +2995,7 @@ async function mergeBuiltFontCss(outputDir, fontCssSource) {
|
|
|
2995
2995
|
}
|
|
2996
2996
|
const normalizedFontCss = typeof fontCss === "string" ? fontCss : Buffer.from(fontCss).toString("utf8");
|
|
2997
2997
|
await fs5.writeFile(fontCssPath, normalizedFontCss);
|
|
2998
|
-
await fs5.writeFile(clientCssPath,
|
|
2998
|
+
await fs5.writeFile(clientCssPath, _chunkSIYELCIXcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
|
|
2999
2999
|
}
|
|
3000
3000
|
function importsFarmClientBlockedPackage(id, packageName) {
|
|
3001
3001
|
return id === packageName || id.startsWith(`${packageName}/`);
|
|
@@ -3045,10 +3045,10 @@ async function validateClientBuildOutput(root, srcDir, outputDir) {
|
|
|
3045
3045
|
}
|
|
3046
3046
|
}
|
|
3047
3047
|
function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, options = {}) {
|
|
3048
|
-
const key =
|
|
3048
|
+
const key = _chunkPMKUTZGRcjs.getClientModuleHydrationPlanKey.call(void 0, modulePath, root, mode, options);
|
|
3049
3049
|
let plan = cache.get(key);
|
|
3050
3050
|
if (!plan) {
|
|
3051
|
-
plan =
|
|
3051
|
+
plan = _chunkPMKUTZGRcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
|
|
3052
3052
|
cache.set(key, plan);
|
|
3053
3053
|
}
|
|
3054
3054
|
return { ...plan, isolatedBoundaries: [...plan.isolatedBoundaries] };
|
|
@@ -3057,7 +3057,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3057
3057
|
if (!mobile) await _chunkE5UN4OWXcjs.removeFarmMobileClientManifest.call(void 0, _path2.default.dirname(outputDir));
|
|
3058
3058
|
const viteBuild = productionVite.build;
|
|
3059
3059
|
const { farmIslandContainersPlugin, farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.cjs");
|
|
3060
|
-
const { PluginManager: PluginManager2 } = await import("./plugin-
|
|
3060
|
+
const { PluginManager: PluginManager2 } = await import("./plugin-MW7IDV76.cjs");
|
|
3061
3061
|
const fs5 = await import("fs/promises");
|
|
3062
3062
|
const pluginManager = new PluginManager2({
|
|
3063
3063
|
config,
|
|
@@ -3066,7 +3066,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3066
3066
|
});
|
|
3067
3067
|
pluginManager.addPlugins(config.plugins || []);
|
|
3068
3068
|
const clientPages = [];
|
|
3069
|
-
const integrationProviders =
|
|
3069
|
+
const integrationProviders = _chunkAF3PNVVFcjs.getIntegrationProviders.call(void 0, config.integrations).filter(
|
|
3070
3070
|
(provider) => provider.component || provider.type === "clerk"
|
|
3071
3071
|
);
|
|
3072
3072
|
const unsupportedIntegrationProvider = integrationProviders.find(
|
|
@@ -3077,14 +3077,14 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3077
3077
|
`[Farm.js] isolated hydration kept route-wide because integration provider "${unsupportedIntegrationProvider.name}" does not declare supportsIsolatedHydration: true.`
|
|
3078
3078
|
);
|
|
3079
3079
|
}
|
|
3080
|
-
const isolatedMode =
|
|
3080
|
+
const isolatedMode = _chunkPMKUTZGRcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
3081
3081
|
_optionalChain([config, 'access', _95 => _95.experimental, 'optionalAccess', _96 => _96.isolatedClientHydration]),
|
|
3082
3082
|
{
|
|
3083
3083
|
serverComponents: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _97 => _97.experimental, 'optionalAccess', _98 => _98.serverComponents])) === "rsc",
|
|
3084
3084
|
hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
|
|
3085
3085
|
}
|
|
3086
3086
|
);
|
|
3087
|
-
const planOptions =
|
|
3087
|
+
const planOptions = _chunkPMKUTZGRcjs.getFarmClientHydrationPlanOptions.call(void 0,
|
|
3088
3088
|
config.renderer,
|
|
3089
3089
|
Boolean(unsupportedIntegrationProvider)
|
|
3090
3090
|
);
|
|
@@ -3111,7 +3111,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3111
3111
|
);
|
|
3112
3112
|
const syntheticDocsEntry = _optionalChain([config, 'access', _110 => _110.docs, 'optionalAccess', _111 => _111.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
|
|
3113
3113
|
const syntheticDocsPatterns = syntheticDocsEntry ? syntheticDocsEntry === "/" ? ["/", "/[...slug]"] : [syntheticDocsEntry, `${syntheticDocsEntry}/[...slug]`] : [];
|
|
3114
|
-
const plan = (operation) => sourceSnapshot ?
|
|
3114
|
+
const plan = (operation) => sourceSnapshot ? _chunkPMKUTZGRcjs.withFarmSourceSnapshotOf.call(void 0, sourceSnapshot, operation) : _chunkPMKUTZGRcjs.withFarmSourceSnapshot.call(void 0, operation);
|
|
3115
3115
|
const { clientLayouts, clientRouteSlots } = plan(() => {
|
|
3116
3116
|
const clientLayouts2 = layoutRoutes.map((layout) => {
|
|
3117
3117
|
try {
|
|
@@ -3158,7 +3158,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3158
3158
|
};
|
|
3159
3159
|
}
|
|
3160
3160
|
});
|
|
3161
|
-
const markdownPagePlan =
|
|
3161
|
+
const markdownPagePlan = _chunkPMKUTZGRcjs.createMarkdownPageHydrationPlanner.call(void 0,
|
|
3162
3162
|
_chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx), root),
|
|
3163
3163
|
root,
|
|
3164
3164
|
isolatedMode,
|
|
@@ -3174,7 +3174,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3174
3174
|
pagePlanOptions
|
|
3175
3175
|
)
|
|
3176
3176
|
}));
|
|
3177
|
-
|
|
3177
|
+
_chunkPMKUTZGRcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
|
|
3178
3178
|
clientLayouts2.map((layout) => ({
|
|
3179
3179
|
pattern: layout.pattern,
|
|
3180
3180
|
depth: layout.pattern.split("/").filter(Boolean).length,
|
|
@@ -3208,7 +3208,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3208
3208
|
const matchesBuiltRoute = pageRoutes.some((route) => layoutAppliesToRoute(layout.pattern, routeDirectory(route))) || docsEntries.some((docsEntry) => layoutAppliesToRoute(layout.pattern, docsEntry));
|
|
3209
3209
|
if (matchesBuiltRoute && layout.suppressedAsyncHydration) {
|
|
3210
3210
|
_chunkGC5ROI3Acjs.logger.warn(
|
|
3211
|
-
`\u26A0\uFE0F ${
|
|
3211
|
+
`\u26A0\uFE0F ${_chunkPMKUTZGRcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`
|
|
3212
3212
|
);
|
|
3213
3213
|
}
|
|
3214
3214
|
}
|
|
@@ -3243,7 +3243,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3243
3243
|
);
|
|
3244
3244
|
if (metadata.suppressedAsyncHydration) {
|
|
3245
3245
|
_chunkGC5ROI3Acjs.logger.warn(
|
|
3246
|
-
`\u26A0\uFE0F ${
|
|
3246
|
+
`\u26A0\uFE0F ${_chunkPMKUTZGRcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
|
|
3247
3247
|
);
|
|
3248
3248
|
}
|
|
3249
3249
|
const slotBoundaries = serverSlotPlans.filter(
|
|
@@ -3251,7 +3251,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3251
3251
|
).flatMap(({ plan: plan2 }) => plan2.isolatedBoundaries);
|
|
3252
3252
|
if (metadata.shouldHydrate || metadata.hasIsolatedClientBoundaries || applicableClientLayouts.length > 0 || slotBoundaries.length > 0) {
|
|
3253
3253
|
const relativePath = route.modulePath.replace(root, "").replace(/^\//, "");
|
|
3254
|
-
const islandStrategy =
|
|
3254
|
+
const islandStrategy = _chunkSIYELCIXcjs.resolveFarmRouteRootStrategy.call(void 0,
|
|
3255
3255
|
route,
|
|
3256
3256
|
metadata,
|
|
3257
3257
|
clientLayouts2,
|
|
@@ -3270,7 +3270,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3270
3270
|
...applicableClientLayouts.filter((layout) => layout.hasIsolatedClientBoundaries || layout.serverTreeLayout).flatMap((layout) => layout.isolatedBoundaries)
|
|
3271
3271
|
],
|
|
3272
3272
|
// The server renders a server tree only below a hydrating layout.
|
|
3273
|
-
...
|
|
3273
|
+
..._chunkPMKUTZGRcjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
|
|
3274
3274
|
});
|
|
3275
3275
|
_chunkGC5ROI3Acjs.logger.info(`\u{1F4F1} Found hydratable route: ${route.pattern} -> ${route.modulePath}`);
|
|
3276
3276
|
}
|
|
@@ -3307,7 +3307,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3307
3307
|
}
|
|
3308
3308
|
const clientRouteSlots2 = routeSlots.filter((slot) => {
|
|
3309
3309
|
try {
|
|
3310
|
-
const metadata =
|
|
3310
|
+
const metadata = _chunkPMKUTZGRcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root);
|
|
3311
3311
|
return metadata.shouldHydrate && (!islandsMode || metadata.isClientComponent);
|
|
3312
3312
|
} catch (error) {
|
|
3313
3313
|
_chunkGC5ROI3Acjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
|
|
@@ -3358,13 +3358,13 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3358
3358
|
config.renderer,
|
|
3359
3359
|
config.publicRuntimeConfig,
|
|
3360
3360
|
config.trailingSlash,
|
|
3361
|
-
|
|
3361
|
+
_chunkAF3PNVVFcjs.getIntegrationProviders.call(void 0, config.integrations),
|
|
3362
3362
|
config.basePath,
|
|
3363
|
-
|
|
3363
|
+
_chunkSIYELCIXcjs.generateClientCachePersistenceCode.call(void 0, _chunkSIYELCIXcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
|
|
3364
3364
|
adapterOwnsDocsRuntime ? _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0,
|
|
3365
3365
|
_chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _117 => _117.experimental, 'optionalAccess', _118 => _118.serverComponents])) === "islands",
|
|
3366
3366
|
platform,
|
|
3367
|
-
islandsMode ?
|
|
3367
|
+
islandsMode ? _chunkPMKUTZGRcjs.collectFarmServerStylesheets.call(void 0,
|
|
3368
3368
|
[
|
|
3369
3369
|
...layoutRoutes.map((layout) => layout.modulePath),
|
|
3370
3370
|
...pageRoutes.filter((route) => !isAdapterDocsRoute(route.pattern)).map((route) => route.modulePath)
|
|
@@ -3383,7 +3383,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3383
3383
|
await fs5.writeFile(_path2.default.join(clientEntryDir, "farm-client-router.tsx"), clientEntry.router);
|
|
3384
3384
|
}
|
|
3385
3385
|
const clientInput = { [entryName]: clientEntryPath };
|
|
3386
|
-
if (platform === "web" &&
|
|
3386
|
+
if (platform === "web" && _chunkSIYELCIXcjs.canBootFarmIslandsClient.call(void 0, config)) {
|
|
3387
3387
|
const clientBootPath = _path2.default.join(clientEntryDir, "farm-client-boot.tsx");
|
|
3388
3388
|
await fs5.writeFile(
|
|
3389
3389
|
clientBootPath,
|
|
@@ -3404,7 +3404,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3404
3404
|
const postcssConfigPath = _path2.default.join(clientEntryDir, "postcss.config.cjs");
|
|
3405
3405
|
await fs5.writeFile(postcssConfigPath, "module.exports = { plugins: [] };\n");
|
|
3406
3406
|
postcssSearchPath = clientEntryDir;
|
|
3407
|
-
tailwindVitePlugin = await
|
|
3407
|
+
tailwindVitePlugin = await _chunk7SAGHWWUcjs.loadTailwindVitePlugin.call(void 0, {
|
|
3408
3408
|
builder: productionVite.builder,
|
|
3409
3409
|
announce: true
|
|
3410
3410
|
});
|
|
@@ -3425,7 +3425,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3425
3425
|
target: FARM_CLIENT_BUILD_TARGET,
|
|
3426
3426
|
// Tailwind CSS 4 already requires newer browsers than that baseline. An app's own
|
|
3427
3427
|
// `build.target` or `build.cssTarget` still decides, as Vite derives one from the other.
|
|
3428
|
-
..._optionalChain([config, 'access', _119 => _119.vite, 'optionalAccess', _120 => _120.build, 'optionalAccess', _121 => _121.target]) === void 0 && _optionalChain([config, 'access', _122 => _122.vite, 'optionalAccess', _123 => _123.build, 'optionalAccess', _124 => _124.cssTarget]) === void 0 && (
|
|
3428
|
+
..._optionalChain([config, 'access', _119 => _119.vite, 'optionalAccess', _120 => _120.build, 'optionalAccess', _121 => _121.target]) === void 0 && _optionalChain([config, 'access', _122 => _122.vite, 'optionalAccess', _123 => _123.build, 'optionalAccess', _124 => _124.cssTarget]) === void 0 && (_chunk7SAGHWWUcjs.includesTailwindVitePlugin.call(void 0, tailwindVitePlugin) || _chunk7SAGHWWUcjs.includesTailwindVitePlugin.call(void 0, _optionalChain([config, 'access', _125 => _125.vite, 'optionalAccess', _126 => _126.plugins]))) ? { cssTarget: _chunk7SAGHWWUcjs.TAILWIND_CSS_BROWSER_TARGET } : {},
|
|
3429
3429
|
outDir: outputDir,
|
|
3430
3430
|
emptyOutDir: platform === "web",
|
|
3431
3431
|
// Never public: see resolveFarmClientSourcemap.
|
|
@@ -3458,7 +3458,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3458
3458
|
}
|
|
3459
3459
|
},
|
|
3460
3460
|
plugins: [
|
|
3461
|
-
|
|
3461
|
+
_chunkSIYELCIXcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
3462
3462
|
createFarmPrivateClientSourcemapsPlugin({
|
|
3463
3463
|
outDir: _path2.default.join(
|
|
3464
3464
|
_path2.default.dirname(outputDir),
|
|
@@ -3490,7 +3490,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3490
3490
|
...rendererVitePlugins,
|
|
3491
3491
|
...config.vite.plugins || [],
|
|
3492
3492
|
farmServerOnlyEntriesPlugin({ platform, distDir: config.distDir || ".farm" }),
|
|
3493
|
-
|
|
3493
|
+
_chunkSIYELCIXcjs.farmDocsClientConfigPlugin.call(void 0,
|
|
3494
3494
|
adapterOwnsDocsRuntime ? _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
|
|
3495
3495
|
),
|
|
3496
3496
|
// Plugin to redirect @farm.js/core imports to client-only exports
|
|
@@ -3523,7 +3523,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3523
3523
|
},
|
|
3524
3524
|
load: {
|
|
3525
3525
|
filter: {
|
|
3526
|
-
id:
|
|
3526
|
+
id: _chunkSIYELCIXcjs.exactIdPattern.call(void 0, [
|
|
3527
3527
|
"\0empty-module",
|
|
3528
3528
|
"\0empty-api-route",
|
|
3529
3529
|
"\0farm-i18n-client-bridge",
|
|
@@ -3561,7 +3561,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3561
3561
|
{ ...config, isolatedClientBoundaryModules, programmaticClientRoutes, sourceSnapshot },
|
|
3562
3562
|
pluginManager
|
|
3563
3563
|
),
|
|
3564
|
-
|
|
3564
|
+
_chunkPMKUTZGRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
|
|
3565
3565
|
],
|
|
3566
3566
|
mode: "production",
|
|
3567
3567
|
css: postcssSearchPath ? {
|
|
@@ -3569,7 +3569,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3569
3569
|
} : void 0,
|
|
3570
3570
|
// Ensure React is bundled for client
|
|
3571
3571
|
resolve: {
|
|
3572
|
-
alias:
|
|
3572
|
+
alias: _chunkSIYELCIXcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
|
|
3573
3573
|
dedupe: [...config.renderer.dedupe || []]
|
|
3574
3574
|
},
|
|
3575
3575
|
// Optimize dependencies - exclude server-side code from client bundle
|
|
@@ -3583,7 +3583,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3583
3583
|
}
|
|
3584
3584
|
};
|
|
3585
3585
|
await viteBuild(
|
|
3586
|
-
|
|
3586
|
+
_chunkSIYELCIXcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite, { clientOutput: true })
|
|
3587
3587
|
);
|
|
3588
3588
|
if (platform === "mobile") {
|
|
3589
3589
|
await fs5.rm(_path2.default.join(outputDir, `${entryName}.css`), { force: true });
|
|
@@ -3676,7 +3676,7 @@ async function fetchFarmNavigationDocument(url, headers, recover = true, signal)
|
|
|
3676
3676
|
return response;
|
|
3677
3677
|
}
|
|
3678
3678
|
|
|
3679
|
-
${streamNavigations ?
|
|
3679
|
+
${streamNavigations ? _chunkSIYELCIXcjs.FARM_NAVIGATION_STREAM_READER_SOURCE : ""}
|
|
3680
3680
|
|
|
3681
3681
|
function clearFarmPrefetchCacheOnDeploymentMismatch(router, error) {
|
|
3682
3682
|
if (error?.name === "FarmDeploymentMismatchError") {
|
|
@@ -4825,7 +4825,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
|
|
|
4825
4825
|
direction: {}
|
|
4826
4826
|
}, plugins = [], renderer = _chunk67MZTLTFcjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false, platform, serverStylesheets = []) {
|
|
4827
4827
|
const toImportPath = (targetPath) => targetPath.replace(/\\/g, "/");
|
|
4828
|
-
const clientPluginEntry =
|
|
4828
|
+
const clientPluginEntry = _chunk7SAGHWWUcjs.generateFarmClientPluginEntryCode.call(void 0,
|
|
4829
4829
|
plugins,
|
|
4830
4830
|
root,
|
|
4831
4831
|
srcDir,
|
|
@@ -4838,7 +4838,7 @@ import { createRoot, hydrateRoot } from "react-dom/client";
|
|
|
4838
4838
|
import { restorePagePosition } from "@farm.js/core/internal/client-runtime";` : appSetupPath ? `import React, { createRoot, hydrateRoot, configureApp as __farmConfigureApp } from ${JSON.stringify(renderer.client)};
|
|
4839
4839
|
import __farmAppSetup from ${JSON.stringify(_chunkGC5ROI3Acjs.toPosixPath.call(void 0, appSetupPath))};
|
|
4840
4840
|
__farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};`;
|
|
4841
|
-
const providerClientCode =
|
|
4841
|
+
const providerClientCode = _chunkSIYELCIXcjs.generateFarmIntegrationProviderClientCode.call(void 0,
|
|
4842
4842
|
integrationProviders,
|
|
4843
4843
|
root,
|
|
4844
4844
|
_nullishCoalesce(renderer.componentExtensions, () => ( []))
|
|
@@ -4959,7 +4959,7 @@ mountFarmDocsSearch();
|
|
|
4959
4959
|
|
|
4960
4960
|
${generateUniversalRouterStateRuntime()}
|
|
4961
4961
|
|
|
4962
|
-
${
|
|
4962
|
+
${_chunkSIYELCIXcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
|
|
4963
4963
|
|
|
4964
4964
|
// SPA Router for server-rendered pages (HTML swap)
|
|
4965
4965
|
const spaRouter = {
|
|
@@ -5407,7 +5407,7 @@ function hasHydratableLayout(pathname) {
|
|
|
5407
5407
|
});
|
|
5408
5408
|
}
|
|
5409
5409
|
|
|
5410
|
-
${
|
|
5410
|
+
${_chunkSIYELCIXcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
|
|
5411
5411
|
// Wrap a page element with applicable layouts
|
|
5412
5412
|
function wrapWithLayouts(pageElement, pathname, params) {
|
|
5413
5413
|
const layouts = getApplicableLayouts(pathname);
|
|
@@ -5442,7 +5442,7 @@ function createLayoutPageBoundary(route, pageElement, serverHtml) {
|
|
|
5442
5442
|
return React.createElement("div", props, pageElement);
|
|
5443
5443
|
}
|
|
5444
5444
|
let farmLastRouteState = null;
|
|
5445
|
-
${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${
|
|
5445
|
+
${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${_chunkSIYELCIXcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
|
|
5446
5446
|
function farmTreeLayoutsOf(pathname) {
|
|
5447
5447
|
return getApplicableLayouts(pathname).filter(function(layout) {
|
|
5448
5448
|
return layout.serverTree === true;
|
|
@@ -6016,7 +6016,7 @@ function fitsSegmentResponse(currentRoot, nextRoot) {
|
|
|
6016
6016
|
return true;
|
|
6017
6017
|
}` : ""}
|
|
6018
6018
|
|
|
6019
|
-
${
|
|
6019
|
+
${_chunkSIYELCIXcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
|
|
6020
6020
|
|
|
6021
6021
|
function activateNavigationScripts(root) {
|
|
6022
6022
|
for (const script of Array.from(root?.querySelectorAll?.("script") || [])) {
|
|
@@ -6119,7 +6119,7 @@ function getLayoutShell(root, patterns, index) {
|
|
|
6119
6119
|
return shell.innerHTML;
|
|
6120
6120
|
}
|
|
6121
6121
|
|
|
6122
|
-
${islandValues ?
|
|
6122
|
+
${islandValues ? _chunkSIYELCIXcjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceSharedLayoutBoundary(currentRoot, nextRoot, refresh = false) {
|
|
6123
6123
|
// A refresh keeps the islands still on the page: the ones in streamed Suspense content too.
|
|
6124
6124
|
if (refresh) revealFarmStreamedContent(nextRoot);
|
|
6125
6125
|
const currentPatterns = getLayoutPatterns(currentRoot);
|
|
@@ -6767,7 +6767,7 @@ void hydrate();
|
|
|
6767
6767
|
async function buildSSRInMemory(productionVite, config, root, routeManager, apiRouteManager, serverRenderer, preset, collectedPageRoutes, collectedLayoutRoutes, collectedRouteSlots, isolatedClientBoundaryModules, hydrationPlanCache, rendererBuildLifetime, sourceSnapshot) {
|
|
6768
6768
|
const viteBuild = productionVite.build;
|
|
6769
6769
|
const { farmIslandContainersPlugin, farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.cjs");
|
|
6770
|
-
const { PluginManager: PluginManager2 } = await import("./plugin-
|
|
6770
|
+
const { PluginManager: PluginManager2 } = await import("./plugin-MW7IDV76.cjs");
|
|
6771
6771
|
const fs5 = await import("fs/promises");
|
|
6772
6772
|
const pluginManager = new PluginManager2({
|
|
6773
6773
|
config,
|
|
@@ -6788,7 +6788,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
6788
6788
|
_path2.default.join(postcssConfigDir, "postcss.config.cjs"),
|
|
6789
6789
|
"module.exports = { plugins: [] };\n"
|
|
6790
6790
|
);
|
|
6791
|
-
tailwindVitePlugin = await
|
|
6791
|
+
tailwindVitePlugin = await _chunk7SAGHWWUcjs.loadTailwindVitePlugin.call(void 0, {
|
|
6792
6792
|
builder: productionVite.builder,
|
|
6793
6793
|
label: "for SSR"
|
|
6794
6794
|
});
|
|
@@ -6867,7 +6867,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
6867
6867
|
modulePath: entry.modulePath
|
|
6868
6868
|
})) : [];
|
|
6869
6869
|
const i18nCatalogs = config.i18n.enabled ? (await _chunkCYOTNHDFcjs.readFarmI18nCatalogs.call(void 0, config.i18n)).catalogs : {};
|
|
6870
|
-
const appDirs =
|
|
6870
|
+
const appDirs = _chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, config);
|
|
6871
6871
|
let openAPIReference = null;
|
|
6872
6872
|
if (config.openapi.enabled && config.openapi.route) {
|
|
6873
6873
|
const { OpenAPIManager, renderOpenAPIReferenceHTML } = await import("./manager-R7FV4A56.cjs");
|
|
@@ -6895,7 +6895,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
6895
6895
|
}))
|
|
6896
6896
|
);
|
|
6897
6897
|
const instrumentationPath = _chunk3GNHJ3RNcjs.resolveFarmInstrumentationFile.call(void 0, root, config.srcDir || "src");
|
|
6898
|
-
const notFoundPath =
|
|
6898
|
+
const notFoundPath = _chunkSIYELCIXcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
|
|
6899
6899
|
if (notFoundPath) _chunkGC5ROI3Acjs.logger.info(`\u{1F4CB} Found custom 404 page: ${notFoundPath}`);
|
|
6900
6900
|
layoutRoutes.sort((a, b) => {
|
|
6901
6901
|
const depthA = a.pattern.split("/").filter(Boolean).length;
|
|
@@ -6912,14 +6912,14 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
6912
6912
|
const hasServerRuntimeIntegrations = configuredIntegrationValues.some(
|
|
6913
6913
|
(integration) => typeof integration === "object" && integration !== null && (!("serverRuntime" in integration) || integration.serverRuntime !== false)
|
|
6914
6914
|
);
|
|
6915
|
-
const hasIntegrationProviders =
|
|
6915
|
+
const hasIntegrationProviders = _chunkAF3PNVVFcjs.getIntegrationProviders.call(void 0, config.integrations).some(
|
|
6916
6916
|
(provider) => provider.component || provider.type === "clerk"
|
|
6917
6917
|
);
|
|
6918
6918
|
const hasObservabilityHandler = !!config.observability && typeof config.observability === "object" && "onEvent" in config.observability;
|
|
6919
6919
|
const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _136 => _136.mdx, 'optionalAccess', _137 => _137.components]));
|
|
6920
6920
|
const hasMiddlewareConfig = _chunk6ZFGWB75cjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
|
|
6921
|
-
const hasRouteContextConfig =
|
|
6922
|
-
const hasServerRuntimePlugins =
|
|
6921
|
+
const hasRouteContextConfig = _chunkYROK6CJCcjs.hasCustomFarmRouteContext.call(void 0, config);
|
|
6922
|
+
const hasServerRuntimePlugins = _chunk7SAGHWWUcjs.hasFarmServerRuntimePlugins.call(void 0, config.plugins);
|
|
6923
6923
|
const hasPluginRoutes = hasFarmPluginRoutes(config);
|
|
6924
6924
|
const hasServerCacheConfig = hasFarmServerCacheConfig(config.cache);
|
|
6925
6925
|
const configModulePath = hasServerRuntimeIntegrations || hasObservabilityHandler || hasMdxComponentConfig || hasMiddlewareConfig || hasRouteContextConfig || hasServerRuntimePlugins || hasPluginRoutes || hasServerCacheConfig || hasFarmServerStorageConfig(config.storage) || hasIntegrationProviders ? await findFarmConfigPath(root) : null;
|
|
@@ -6928,9 +6928,9 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
6928
6928
|
const hasConfiguredRuntimePlugins = Boolean(
|
|
6929
6929
|
hasRuntimeConfigModule && (config.plugins || []).length > 0
|
|
6930
6930
|
);
|
|
6931
|
-
if (
|
|
6931
|
+
if (_chunkFCHEO3LGcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
|
|
6932
6932
|
const adapterGuardedPaths = new Set(getFarmDocsGuardedPaths(config, middlewareRoutes));
|
|
6933
|
-
|
|
6933
|
+
_chunkFCHEO3LGcjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
|
|
6934
6934
|
config.docs,
|
|
6935
6935
|
{ root, srcDir: config.srcDir },
|
|
6936
6936
|
(pathname) => adapterGuardedPaths.has(pathname),
|
|
@@ -6940,7 +6940,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
6940
6940
|
const farmDocsCspNonceMarker = _chunk6JHZPB52cjs.createFarmCspNonce.call(void 0, config.security);
|
|
6941
6941
|
const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _138 => _138.docs, 'optionalAccess', _139 => _139.enabled]) && _chunkNLBHLPEOcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? await _chunk2RSVYJT6cjs._runWithFarmCspNonce.call(void 0,
|
|
6942
6942
|
farmDocsCspNonceMarker,
|
|
6943
|
-
async () => _optionalChain([config, 'access', _140 => _140.docs, 'access', _141 => _141.adapter, 'optionalAccess', _142 => _142.server]) ? await
|
|
6943
|
+
async () => _optionalChain([config, 'access', _140 => _140.docs, 'access', _141 => _141.adapter, 'optionalAccess', _142 => _142.server]) ? await _chunkFCHEO3LGcjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
|
|
6944
6944
|
root,
|
|
6945
6945
|
srcDir: config.srcDir,
|
|
6946
6946
|
clientEntry: FARM_CLIENT_JS_SRC_PLACEHOLDER,
|
|
@@ -7107,7 +7107,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7107
7107
|
__FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _148 => _148.env, 'optionalAccess', _149 => _149.public]) || {})
|
|
7108
7108
|
},
|
|
7109
7109
|
plugins: [
|
|
7110
|
-
|
|
7110
|
+
_chunkSIYELCIXcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
7111
7111
|
...tailwindVitePlugin ? [tailwindVitePlugin] : [],
|
|
7112
7112
|
...rendererVitePlugins,
|
|
7113
7113
|
...config.vite.plugins || [],
|
|
@@ -7138,7 +7138,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7138
7138
|
},
|
|
7139
7139
|
pluginManager
|
|
7140
7140
|
),
|
|
7141
|
-
|
|
7141
|
+
_chunkPMKUTZGRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
|
|
7142
7142
|
...hasRuntimeConfigModule ? [
|
|
7143
7143
|
farmStripPlatformConfigPlugin(
|
|
7144
7144
|
[
|
|
@@ -7150,7 +7150,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7150
7150
|
{
|
|
7151
7151
|
name: "farm-virtual-ssr-entry",
|
|
7152
7152
|
resolveId: {
|
|
7153
|
-
filter: { id:
|
|
7153
|
+
filter: { id: _chunkSIYELCIXcjs.exactIdPattern.call(void 0, [virtualEntryId, "\0virtual:farm-ssr-entry"]) },
|
|
7154
7154
|
handler(id) {
|
|
7155
7155
|
if (id === virtualEntryId || id === "\0virtual:farm-ssr-entry") {
|
|
7156
7156
|
return virtualEntryId;
|
|
@@ -7159,7 +7159,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7159
7159
|
}
|
|
7160
7160
|
},
|
|
7161
7161
|
load: {
|
|
7162
|
-
filter: { id:
|
|
7162
|
+
filter: { id: _chunkSIYELCIXcjs.exactIdPattern.call(void 0, [virtualEntryId]) },
|
|
7163
7163
|
handler(id) {
|
|
7164
7164
|
if (id === virtualEntryId) {
|
|
7165
7165
|
return virtualEntryCode;
|
|
@@ -7191,7 +7191,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7191
7191
|
resolve: {
|
|
7192
7192
|
alias: [
|
|
7193
7193
|
...shouldAliasReactServerToWebBuild(config.renderer, preset) ? [createFarmReactWebServerAlias(hasReactDomEdgeServerBuild(root))] : [],
|
|
7194
|
-
...Object.entries(
|
|
7194
|
+
...Object.entries(_chunkSIYELCIXcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
|
|
7195
7195
|
([find, replacement]) => ({ find, replacement })
|
|
7196
7196
|
)
|
|
7197
7197
|
],
|
|
@@ -7199,7 +7199,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7199
7199
|
dedupe: [...config.renderer.dedupe || []]
|
|
7200
7200
|
}
|
|
7201
7201
|
};
|
|
7202
|
-
await viteBuild(
|
|
7202
|
+
await viteBuild(_chunkSIYELCIXcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
|
|
7203
7203
|
} finally {
|
|
7204
7204
|
if (postcssConfigDir) {
|
|
7205
7205
|
try {
|
|
@@ -7492,9 +7492,9 @@ function useFarmNodePageResponse(ResponseClass) {
|
|
|
7492
7492
|
// Web body the way reading response.body would.
|
|
7493
7493
|
const farmLazyBufferedHtml = new WeakMap();
|
|
7494
7494
|
|
|
7495
|
-
//
|
|
7496
|
-
//
|
|
7497
|
-
const
|
|
7495
|
+
// Only the response built from a stored shell can reuse its preload scan and
|
|
7496
|
+
// compressed bytes. Replacing the body creates a new response.
|
|
7497
|
+
const farmResponseShells = new WeakMap();
|
|
7498
7498
|
|
|
7499
7499
|
function hasFarmContentType(headers) {
|
|
7500
7500
|
if (!headers) return false;
|
|
@@ -7604,7 +7604,7 @@ async function applyFarmPreloadBudget(response, pathname, request) {
|
|
|
7604
7604
|
const ownedHtml = hasNoHtmlPreloads ? undefined : getFarmOwnedBufferedHtml(response);
|
|
7605
7605
|
const html = hasNoHtmlPreloads ? "" : (ownedHtml ?? await response.text());
|
|
7606
7606
|
const managed = manageFarmDocumentPreloads(html, linkHeader, farmPreloadConfig,
|
|
7607
|
-
ownedHtml === undefined ? undefined :
|
|
7607
|
+
ownedHtml === undefined ? undefined : farmResponseShells.get(response));
|
|
7608
7608
|
// A remembered document the budget left unchanged keeps its unread body.
|
|
7609
7609
|
const reusesBody = hasNoHtmlPreloads || (ownedHtml !== undefined && managed.html === html);
|
|
7610
7610
|
if (ownedHtml !== undefined && !reusesBody && !isLazyPage) {
|
|
@@ -7649,7 +7649,7 @@ function generateVirtualEntryCode(apiRoutes, pageRoutes, layoutRoutes, routeSlot
|
|
|
7649
7649
|
);
|
|
7650
7650
|
const searchPreserveRoutesSource = searchPreserveRoutes.length > 0 ? JSON.stringify(searchPreserveRoutes) : "";
|
|
7651
7651
|
const farmIslandsMode = _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _166 => _166.experimental, 'optionalAccess', _167 => _167.serverComponents])) === "islands";
|
|
7652
|
-
const farmClientBoot =
|
|
7652
|
+
const farmClientBoot = _chunkSIYELCIXcjs.canBootFarmIslandsClient.call(void 0, config);
|
|
7653
7653
|
const farmMobileClient = shouldBuildFarmMobileClient(config);
|
|
7654
7654
|
const farmMobileShells = farmMobileClient && config.mobileShells ? config.mobileShells : null;
|
|
7655
7655
|
const hasCompressionRuntime = config.compress && _chunkOCS3PSYRcjs.resolveFarmInstrumentationRuntime.call(void 0, preset) === "nodejs";
|
|
@@ -7720,7 +7720,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7720
7720
|
const edgeMiddlewareFilePaths = farmTargetRunsEdgeMiddleware(preset) ? middlewareRoutes.filter(isFarmEdgeMiddlewareRoute).map((route) => route.filePath) : [];
|
|
7721
7721
|
const hasMiddlewareRuntime = middlewareRoutes.length > 0 || _chunk6ZFGWB75cjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
|
|
7722
7722
|
const farmDocsFontAssets = _optionalChain([config, 'access', _188 => _188.docs, 'optionalAccess', _189 => _189.enabled]) ? _chunkERMUL73Lcjs.toFarmDocsPublicFontAssets.call(void 0, _chunkERMUL73Lcjs.resolveFarmDocsFontAssets.call(void 0, config.root)) : [];
|
|
7723
|
-
const integrationProviders =
|
|
7723
|
+
const integrationProviders = _chunkAF3PNVVFcjs.getIntegrationProviders.call(void 0, config.integrations);
|
|
7724
7724
|
const renderedIntegrationProviders = integrationProviders.filter(
|
|
7725
7725
|
(provider) => provider.component || provider.type === "clerk"
|
|
7726
7726
|
);
|
|
@@ -7729,7 +7729,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7729
7729
|
`Integration provider components are not supported by the "${config.renderer.name}" renderer.`
|
|
7730
7730
|
);
|
|
7731
7731
|
}
|
|
7732
|
-
const providerServerModules =
|
|
7732
|
+
const providerServerModules = _chunkSIYELCIXcjs.generateFarmIntegrationProviderServerModules.call(void 0,
|
|
7733
7733
|
renderedIntegrationProviders,
|
|
7734
7734
|
config.root,
|
|
7735
7735
|
_nullishCoalesce(config.renderer.componentExtensions, () => ( []))
|
|
@@ -7749,14 +7749,14 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7749
7749
|
const unsupportedIntegrationProvider = renderedIntegrationProviders.find(
|
|
7750
7750
|
(provider) => provider.supportsIsolatedHydration !== true
|
|
7751
7751
|
);
|
|
7752
|
-
const isolatedHydrationMode =
|
|
7752
|
+
const isolatedHydrationMode = _chunkPMKUTZGRcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
7753
7753
|
_optionalChain([config, 'access', _192 => _192.experimental, 'optionalAccess', _193 => _193.isolatedClientHydration]),
|
|
7754
7754
|
{
|
|
7755
7755
|
serverComponents: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _194 => _194.experimental, 'optionalAccess', _195 => _195.serverComponents])) === "rsc",
|
|
7756
7756
|
hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
|
|
7757
7757
|
}
|
|
7758
7758
|
);
|
|
7759
|
-
const hydrationPlanOptions =
|
|
7759
|
+
const hydrationPlanOptions = _chunkPMKUTZGRcjs.getFarmClientHydrationPlanOptions.call(void 0,
|
|
7760
7760
|
config.renderer,
|
|
7761
7761
|
Boolean(unsupportedIntegrationProvider)
|
|
7762
7762
|
);
|
|
@@ -7764,7 +7764,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7764
7764
|
...hydrationPlanOptions,
|
|
7765
7765
|
serverOwners: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _196 => _196.experimental, 'optionalAccess', _197 => _197.serverComponents])) === "islands"
|
|
7766
7766
|
};
|
|
7767
|
-
const { layoutHydrationPlans, pageHydrationPlans } =
|
|
7767
|
+
const { layoutHydrationPlans, pageHydrationPlans } = _chunkPMKUTZGRcjs.withFarmSourceSnapshot.call(void 0, () => {
|
|
7768
7768
|
const layoutHydrationPlans2 = layoutRoutes.map((layout) => ({
|
|
7769
7769
|
...layout,
|
|
7770
7770
|
hydration: getCachedClientModuleHydrationPlan(
|
|
@@ -7775,7 +7775,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7775
7775
|
{ ...hydrationPlanOptions, serverTreeLayouts: pageHydrationPlanOptions.serverOwners }
|
|
7776
7776
|
)
|
|
7777
7777
|
}));
|
|
7778
|
-
const markdownPagePlan =
|
|
7778
|
+
const markdownPagePlan = _chunkPMKUTZGRcjs.createMarkdownPageHydrationPlanner.call(void 0,
|
|
7779
7779
|
_chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx), config.root),
|
|
7780
7780
|
config.root,
|
|
7781
7781
|
isolatedHydrationMode,
|
|
@@ -7795,7 +7795,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7795
7795
|
);
|
|
7796
7796
|
return { layoutHydrationPlans: layoutHydrationPlans2, pageHydrationPlans: pageHydrationPlans2 };
|
|
7797
7797
|
});
|
|
7798
|
-
|
|
7798
|
+
_chunkPMKUTZGRcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
|
|
7799
7799
|
layoutHydrationPlans.map((layout) => ({
|
|
7800
7800
|
pattern: layout.pattern,
|
|
7801
7801
|
depth: layout.pattern.split("/").filter(Boolean).length,
|
|
@@ -7839,8 +7839,8 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7839
7839
|
orderedPageRoutes.forEach((route, index) => {
|
|
7840
7840
|
const varName = `pageRoute${index}`;
|
|
7841
7841
|
if (_chunkPG7J7XYTcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) {
|
|
7842
|
-
const renderingDirective2 =
|
|
7843
|
-
const markdownServerTree = pageHydrationPlanOptions.serverOwners &&
|
|
7842
|
+
const renderingDirective2 = _chunkGC2BSXQScjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
|
|
7843
|
+
const markdownServerTree = pageHydrationPlanOptions.serverOwners && _chunkPMKUTZGRcjs.usesFarmServerTree.call(void 0, pageHydrationPlans.get(route.modulePath));
|
|
7844
7844
|
pageRegistrations.push(`
|
|
7845
7845
|
{
|
|
7846
7846
|
pattern: ${JSON.stringify(route.pattern)},${route.directory ? `
|
|
@@ -7848,14 +7848,14 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7848
7848
|
rendering: ${JSON.stringify(renderingDirective2)},` : ""}${markdownServerTree ? "\n serverTree: true," : ""}
|
|
7849
7849
|
module: createFarmMarkdownRouteModule({
|
|
7850
7850
|
source: ${JSON.stringify(_nullishCoalesce(route.source, () => ( "")))},
|
|
7851
|
-
filePath: ${JSON.stringify(
|
|
7851
|
+
filePath: ${JSON.stringify(_chunkSIYELCIXcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.modulePath))},
|
|
7852
7852
|
components: farmMdxComponents,
|
|
7853
7853
|
config: farmMdxConfig,
|
|
7854
7854
|
}),
|
|
7855
7855
|
markdownSource: {
|
|
7856
7856
|
source: ${JSON.stringify(_nullishCoalesce(route.source, () => ( "")))},
|
|
7857
7857
|
filePath: ${JSON.stringify(
|
|
7858
|
-
|
|
7858
|
+
_chunkSIYELCIXcjs.toBakedMarkdownSourcePath.call(void 0, config.root, _nullishCoalesce(route.markdownSourcePath, () => ( route.modulePath)))
|
|
7859
7859
|
)},
|
|
7860
7860
|
},
|
|
7861
7861
|
}`);
|
|
@@ -7865,7 +7865,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7865
7865
|
`import * as ${varName} from ${toVirtualEntryImportSpecifier(route.modulePath)};`
|
|
7866
7866
|
);
|
|
7867
7867
|
const clientMetadata = pageHydrationPlans.get(route.modulePath);
|
|
7868
|
-
const renderingDirective =
|
|
7868
|
+
const renderingDirective = _chunkGC2BSXQScjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
|
|
7869
7869
|
pageRegistrations.push(`
|
|
7870
7870
|
{
|
|
7871
7871
|
pattern: ${JSON.stringify(route.pattern)},${route.directory ? `
|
|
@@ -7873,8 +7873,8 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7873
7873
|
module: ${varName},
|
|
7874
7874
|
shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},${clientMetadata.shouldHydrate ? `
|
|
7875
7875
|
clientModule: ${JSON.stringify(_chunkGC5ROI3Acjs.toViteModuleId.call(void 0, route.modulePath, config.root))},` : ""}
|
|
7876
|
-
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${
|
|
7877
|
-
const rootStrategy =
|
|
7876
|
+
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkPMKUTZGRcjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${(() => {
|
|
7877
|
+
const rootStrategy = _chunkSIYELCIXcjs.resolveFarmRouteRootStrategy.call(void 0,
|
|
7878
7878
|
route,
|
|
7879
7879
|
clientMetadata,
|
|
7880
7880
|
layoutHydrationPlans.map((layout) => ({ ...layout, ...layout.hydration })),
|
|
@@ -7887,7 +7887,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7887
7887
|
rendering: ${JSON.stringify(renderingDirective)},` : ""}
|
|
7888
7888
|
${route.source !== void 0 ? `markdownSource: {
|
|
7889
7889
|
source: ${JSON.stringify(route.source)},
|
|
7890
|
-
filePath: ${JSON.stringify(
|
|
7890
|
+
filePath: ${JSON.stringify(_chunkSIYELCIXcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.markdownSourcePath))},
|
|
7891
7891
|
},` : ""}
|
|
7892
7892
|
}`);
|
|
7893
7893
|
});
|
|
@@ -7911,7 +7911,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7911
7911
|
pattern: ${JSON.stringify(layout.pattern)},
|
|
7912
7912
|
module: ${varName},
|
|
7913
7913
|
shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},
|
|
7914
|
-
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${treeLayoutPatterns.has(layout.pattern) ? "\n serverTree: true," : ""}${farmIslandsMode &&
|
|
7914
|
+
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${treeLayoutPatterns.has(layout.pattern) ? "\n serverTree: true," : ""}${farmIslandsMode && _chunkSIYELCIXcjs.canFarmSkipKeptLayoutRender.call(void 0, layout.modulePath, config.root) ? "\n skipKeptRender: true," : ""}${// A layout whose client components hydrate as islands of their own (islands mode,
|
|
7915
7915
|
// isolatedClientHydration, or an async layout): it wraps a docs page as an app page.
|
|
7916
7916
|
clientMetadata.hasIsolatedClientBoundaries ? "\n islands: true," : ""}
|
|
7917
7917
|
}`);
|
|
@@ -7939,7 +7939,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
7939
7939
|
containerId: ${JSON.stringify(slot.containerId)},
|
|
7940
7940
|
interception: ${JSON.stringify(slot.interception)},
|
|
7941
7941
|
fallback: ${JSON.stringify(slot.fallback)},
|
|
7942
|
-
hydrates: ${!farmIslandsMode ||
|
|
7942
|
+
hydrates: ${!farmIslandsMode || _chunkPMKUTZGRcjs.getClientModuleMetadata.call(void 0, slot.modulePath, config.root).isClientComponent},
|
|
7943
7943
|
module: ${varName},
|
|
7944
7944
|
}`);
|
|
7945
7945
|
});
|
|
@@ -8249,14 +8249,14 @@ import { fileURLToPath as farmDocsFileURLToPath } from "node:url";` : "";
|
|
|
8249
8249
|
const nativeAuth = generateNativeAuthIntegrationSource(config.auth);
|
|
8250
8250
|
const nativeMCP = _chunkVM57CK74cjs.generateNativeMCPPluginSource.call(void 0, config.mcp);
|
|
8251
8251
|
const mobileSession = (config.plugins || []).some(
|
|
8252
|
-
(plugin) => _optionalChain([plugin, 'optionalAccess', _219 => _219.name]) ===
|
|
8252
|
+
(plugin) => _optionalChain([plugin, 'optionalAccess', _219 => _219.name]) === _chunkFTQUNBRNcjs.FARM_MOBILE_SESSION_PLUGIN
|
|
8253
8253
|
);
|
|
8254
8254
|
const nativeServerFns = (config.plugins || []).some(
|
|
8255
8255
|
(plugin) => _optionalChain([plugin, 'optionalAccess', _220 => _220.name]) === _chunk4EBC7EMWcjs.FARM_NATIVE_SERVER_FN_PLUGIN
|
|
8256
|
-
) ?
|
|
8256
|
+
) ? _chunkNQZWLIPTcjs.collectFarmNativeServerFns.call(void 0, {
|
|
8257
8257
|
root: config.root,
|
|
8258
8258
|
srcDir: config.srcDir,
|
|
8259
|
-
entries:
|
|
8259
|
+
entries: _chunkNQZWLIPTcjs.findFarmNativeScreenFiles.call(void 0, _chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, config))
|
|
8260
8260
|
}) : void 0;
|
|
8261
8261
|
const integrationImports = `
|
|
8262
8262
|
${configModulePath ? `import * as FarmUserConfigModule from ${toVirtualEntryImportSpecifier(configModulePath)};` : ""}
|
|
@@ -8271,7 +8271,7 @@ ${nativeServerFns ? `const __farmNativeServerFnRegistry = Object.assign(Object.c
|
|
|
8271
8271
|
${nativeServerFns.flatMap((module, index) => module.exports.map((entry) => ` ${JSON.stringify(entry.id)}: __farmNativeServerFns${index}[${JSON.stringify(entry.name)}],`)).join("\n")}
|
|
8272
8272
|
});` : ""}
|
|
8273
8273
|
`;
|
|
8274
|
-
const imageRuntime =
|
|
8274
|
+
const imageRuntime = _chunkSIYELCIXcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
|
|
8275
8275
|
const imageRuntimeImport = imageRuntime === "none" ? "" : `import { _withFarmImageSourceClientAddress, createCloudflareImageTransformer, createFarmImageHandler } from "@farm.js/core/image/server";`;
|
|
8276
8276
|
const imageNodeRuntimeImport = imageRuntime === "node" ? `import { createNodeImageFetcher, createNodeImageUrlValidator, createSharpImageTransformer } from "@farm.js/core/image/sharp";` : "";
|
|
8277
8277
|
const apiHandlerCode = apiRoutes.length > 0 ? `
|
|
@@ -8453,7 +8453,7 @@ const farmResolvedRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs);
|
|
|
8453
8453
|
|
|
8454
8454
|
function renderFarmDefault404Page() {
|
|
8455
8455
|
return React.createElement(React.Fragment, null,
|
|
8456
|
-
React.createElement("style", null, ${JSON.stringify(
|
|
8456
|
+
React.createElement("style", null, ${JSON.stringify(_chunkSIYELCIXcjs.DEFAULT_NOT_FOUND_STYLES)}),
|
|
8457
8457
|
React.createElement("main", {
|
|
8458
8458
|
className: "farm-default-not-found",
|
|
8459
8459
|
"aria-labelledby": "farm-default-not-found-title",
|
|
@@ -8613,7 +8613,7 @@ ${_optionalChain([config, 'access', _230 => _230.agent, 'optionalAccess', _231 =
|
|
|
8613
8613
|
// to the build.
|
|
8614
8614
|
const farmNoindexPreview = resolveFarmPreviewDeployment(
|
|
8615
8615
|
globalThis.process?.env,
|
|
8616
|
-
${JSON.stringify(
|
|
8616
|
+
${JSON.stringify(_chunkJD42G6BNcjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env))},
|
|
8617
8617
|
);` : ""}
|
|
8618
8618
|
const farmMdxComponents = ${mdxComponentsPath ? `(FarmMdxComponentsModule.components || Reflect.get(FarmMdxComponentsModule, "default") || {})` : `(configuredFarmMdxComponents && typeof configuredFarmMdxComponents === "object" ? configuredFarmMdxComponents : {})`};
|
|
8619
8619
|
const farmObservabilityConfig = farmUserConfig?.observability ?? ${JSON.stringify(
|
|
@@ -8744,7 +8744,7 @@ const farmDocsHandler = ${_optionalChain([config, 'access', _239 => _239.docs, '
|
|
|
8744
8744
|
registerMCPServer: registerFarmMCPServer,
|
|
8745
8745
|
// A page built with this keeps its HTML string, so the preload budget and the response
|
|
8746
8746
|
// writer use it instead of reading and re-encoding the body. Older adapters ignore it.
|
|
8747
|
-
createHtmlResponse: farmOwnedHtmlResponse,${
|
|
8747
|
+
createHtmlResponse: farmOwnedHtmlResponse,${_chunkFCHEO3LGcjs.farmDocsAdapterServesGuardedPages.call(void 0, config.docs) ? `
|
|
8748
8748
|
// The adapter keeps pages a path guard covers off search, llms.txt, the sitemap and MCP. It
|
|
8749
8749
|
// asks about any path its own content lists, so the guards decide here, not a page list.
|
|
8750
8750
|
isPathGuarded: (pathname) =>
|
|
@@ -8805,12 +8805,12 @@ const farmDeploymentCookiePath = ${JSON.stringify(config.basePath || "/")};
|
|
|
8805
8805
|
// runtime request.
|
|
8806
8806
|
const farmRuntimeErrorSlot = Symbol("farm.runtime.error.slot");
|
|
8807
8807
|
const farmOpenAPIReference = ${JSON.stringify(openAPIReference)};
|
|
8808
|
-
${_optionalChain([config, 'access', _243 => _243.agent, 'optionalAccess', _244 => _244.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(
|
|
8808
|
+
${_optionalChain([config, 'access', _243 => _243.agent, 'optionalAccess', _244 => _244.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkLTDMJD2Fcjs.resolveFarmApiCatalogInput.call(void 0, config))};
|
|
8809
8809
|
` : ""}${_optionalChain([config, 'access', _245 => _245.agent, 'optionalAccess', _246 => _246.manifest]) !== false ? `const farmAppManifestInput = ${JSON.stringify(
|
|
8810
|
-
|
|
8810
|
+
_chunkLTDMJD2Fcjs.resolveFarmAppManifestInput.call(void 0, config, {
|
|
8811
8811
|
build: config.deploymentId,
|
|
8812
|
-
packages:
|
|
8813
|
-
webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ?
|
|
8812
|
+
packages: _chunkSIYELCIXcjs.resolveFarmAppPackages.call(void 0, config.root),
|
|
8813
|
+
webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkSIYELCIXcjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
|
|
8814
8814
|
})
|
|
8815
8815
|
)};
|
|
8816
8816
|
${servesDefaultMCP ? "farmAppManifestInput.defaultMCP = getFarmDefaultMCPServer;\n" : ""}// A guard written for an MCP server's path keeps its tools out of the public view.
|
|
@@ -10205,7 +10205,7 @@ ${servesDefaultMCP ? `// agent.mcp: the default read-only MCP server at /mcp, as
|
|
|
10205
10205
|
// aside for a page route that answers /mcp and for any MCP server published or
|
|
10206
10206
|
// registered at runtime, such as the docs engine's.
|
|
10207
10207
|
const farmDefaultMCPServer = ${JSON.stringify(
|
|
10208
|
-
_chunkYRXPDKMMcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root),
|
|
10208
|
+
_chunkYRXPDKMMcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunkUYACD4SHcjs.FARM_VERSION)
|
|
10209
10209
|
)};
|
|
10210
10210
|
let farmDefaultMCPRouteFree;
|
|
10211
10211
|
function getFarmDefaultMCPServer() {
|
|
@@ -10399,7 +10399,7 @@ ${edgeMiddlewareFilePaths.length > 0 ? `
|
|
|
10399
10399
|
// middleware guards is never prerendered. Read once: Nitro's prerender worker sets the variable.
|
|
10400
10400
|
const farmEdgeMiddlewareFiles = new Set(${JSON.stringify(edgeMiddlewareFilePaths)});
|
|
10401
10401
|
const farmPrerendering =
|
|
10402
|
-
typeof process !== "undefined" && process.env?.${
|
|
10402
|
+
typeof process !== "undefined" && process.env?.${_chunkDSRWQ4SJcjs.FARM_PRERENDER_ENV} === "1";
|
|
10403
10403
|
` : ""}
|
|
10404
10404
|
const farmMiddlewareRunner = ${hasMiddlewareRuntime ? `createProductionMiddlewareRunner({
|
|
10405
10405
|
config: farmMiddlewareConfig,
|
|
@@ -10655,7 +10655,7 @@ ${hasInfraAnalyticsRuntime ? `
|
|
|
10655
10655
|
// endpoints, Markdown mirrors, and docs pages have no app route pattern, so they are
|
|
10656
10656
|
// labeled here; route.pattern keeps meaning the matched app route for plugins.
|
|
10657
10657
|
const farmBuiltInRoutePaths = new Set(${JSON.stringify(
|
|
10658
|
-
|
|
10658
|
+
_chunkLTDMJD2Fcjs.listFarmBuiltInRoutePaths.call(void 0, {
|
|
10659
10659
|
agent: {
|
|
10660
10660
|
...config.agent,
|
|
10661
10661
|
aiCatalog: servesAiCatalog,
|
|
@@ -11432,7 +11432,7 @@ ${hasServerRuntimeIntegrations ? `
|
|
|
11432
11432
|
// agent.manifest: /.well-known/farmjs.json (and 0.1.34's /.well-known/farmjs), the app's
|
|
11433
11433
|
// public manifest, the same document for every request.
|
|
11434
11434
|
if (
|
|
11435
|
-
[${JSON.stringify(
|
|
11435
|
+
[${JSON.stringify(_chunkLTDMJD2Fcjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunkLTDMJD2Fcjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
|
|
11436
11436
|
normalizeRuntimePath(routePathname),
|
|
11437
11437
|
)
|
|
11438
11438
|
) {
|
|
@@ -11444,7 +11444,7 @@ ${hasServerRuntimeIntegrations ? `
|
|
|
11444
11444
|
` : ""}
|
|
11445
11445
|
${_optionalChain([config, 'access', _277 => _277.agent, 'optionalAccess', _278 => _278.apiCatalog]) ? `
|
|
11446
11446
|
// agent.apiCatalog: list the OpenAPI and MCP surfaces at the RFC 9727 path.
|
|
11447
|
-
if (normalizeRuntimePath(routePathname) === ${JSON.stringify(
|
|
11447
|
+
if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkLTDMJD2Fcjs.FARM_API_CATALOG_PATH)}) {
|
|
11448
11448
|
return applyProductionMiddlewareHeaders(
|
|
11449
11449
|
createFarmApiCatalogResponse(request.method, farmApiCatalogInput, request),
|
|
11450
11450
|
middlewareHeaders,
|
|
@@ -11665,7 +11665,7 @@ ${hasServerRuntimeIntegrations ? `
|
|
|
11665
11665
|
: {}),
|
|
11666
11666
|
},
|
|
11667
11667
|
}), middlewareHeaders), cachedPPRShell);
|
|
11668
|
-
|
|
11668
|
+
farmResponseShells.set(response, cachedPPRShellEntry);
|
|
11669
11669
|
return response;
|
|
11670
11670
|
}
|
|
11671
11671
|
emitFarmEvent({ type: "ppr.shell.miss", route: pathname, key: pprCacheKey });
|
|
@@ -13118,7 +13118,7 @@ async function handleFarmFetch(request, context) {${config.server.trustProxy ? `
|
|
|
13118
13118
|
);
|
|
13119
13119
|
// A Nitro cache rule stores the response and strips its Content-Encoding, so a
|
|
13120
13120
|
// response it caches is sent as it is, with no Vary on an encoding it never saw.
|
|
13121
|
-
return ${hasCompressionRuntime && !hasPluginRuntime ? "context?.routeRuleCache ? response : compressFarmResponse(request, response, getFarmOwnedBufferedHtml(response), farmLazyBufferedHtml.has(response))" : "response"};
|
|
13121
|
+
return ${hasCompressionRuntime && !hasPluginRuntime ? "context?.routeRuleCache ? response : compressFarmResponse(request, response, getFarmOwnedBufferedHtml(response), farmLazyBufferedHtml.has(response), farmResponseShells.get(response))" : "response"};
|
|
13122
13122
|
}),
|
|
13123
13123
|
{
|
|
13124
13124
|
onResponseFinished: typeof context?.onResponseFinished === "function"
|
|
@@ -13255,7 +13255,7 @@ function getPhysicalPrerenderBypassReason(options) {
|
|
|
13255
13255
|
}
|
|
13256
13256
|
if (_chunk6ZFGWB75cjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
|
|
13257
13257
|
if (_chunk6ZFGWB75cjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
|
|
13258
|
-
if (
|
|
13258
|
+
if (_chunkYROK6CJCcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
|
|
13259
13259
|
if (farmServerRuntimePluginsMayHandlePath(config, pathname)) return "server runtime plugin";
|
|
13260
13260
|
const manifestEntry = getManifestPageEntry(routeRuntimeManifest, pathname);
|
|
13261
13261
|
if (_optionalChain([manifestEntry, 'optionalAccess', _298 => _298.rendering]) === "dynamic") return "dynamic runtime manifest";
|
|
@@ -13279,7 +13279,7 @@ async function getFarmDocsPrerenderPages(config, root, preset) {
|
|
|
13279
13279
|
);
|
|
13280
13280
|
return [];
|
|
13281
13281
|
}
|
|
13282
|
-
if (!
|
|
13282
|
+
if (!_chunkFCHEO3LGcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
|
|
13283
13283
|
const { pages: pages2, originDependent } = _chunk6D3CJFNUcjs.listFarmDocsBuiltInPrerenderPages.call(void 0, config.docs, {
|
|
13284
13284
|
root,
|
|
13285
13285
|
srcDir: config.srcDir
|
|
@@ -13297,7 +13297,7 @@ async function getFarmDocsPrerenderPages(config, root, preset) {
|
|
|
13297
13297
|
);
|
|
13298
13298
|
return [];
|
|
13299
13299
|
}
|
|
13300
|
-
const pages = await
|
|
13300
|
+
const pages = await _chunkFCHEO3LGcjs.listFarmDocsAdapterPages.call(void 0, config.docs, { root, srcDir: config.srcDir });
|
|
13301
13301
|
if (!pages) {
|
|
13302
13302
|
_chunkGC5ROI3Acjs.logger.warn(
|
|
13303
13303
|
`The docs adapter ${JSON.stringify(config.docs.adapter.id)} does not list its pages for prerendering; upgrade it to prerender docs pages. They render on request until then.`
|
|
@@ -13311,10 +13311,10 @@ async function listFarmDocsAnalyticsPages(config, root, preset) {
|
|
|
13311
13311
|
return [];
|
|
13312
13312
|
}
|
|
13313
13313
|
try {
|
|
13314
|
-
return await
|
|
13314
|
+
return await _chunkFCHEO3LGcjs.listFarmDocsPagePaths.call(void 0, config.docs, {
|
|
13315
13315
|
root,
|
|
13316
13316
|
srcDir: config.srcDir,
|
|
13317
|
-
adapter: _chunk67MZTLTFcjs.isReactRenderer.call(void 0, config.renderer) &&
|
|
13317
|
+
adapter: _chunk67MZTLTFcjs.isReactRenderer.call(void 0, config.renderer) && _chunkFCHEO3LGcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)
|
|
13318
13318
|
});
|
|
13319
13319
|
} catch (error) {
|
|
13320
13320
|
_chunkGC5ROI3Acjs.logger.warn(
|
|
@@ -13340,10 +13340,10 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
|
|
|
13340
13340
|
const nitroBuilder = nitroBuilderResult.value;
|
|
13341
13341
|
const isVercel = preset === "vercel";
|
|
13342
13342
|
const isCloudflareWorker = preset === "cloudflare-module";
|
|
13343
|
-
const outputDir =
|
|
13343
|
+
const outputDir = _chunkYROK6CJCcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
13344
13344
|
const runtimeServerOutputDir = isVercel ? _path2.default.join(outputDir, "functions", "__nitro.func") : _path2.default.join(outputDir, "server");
|
|
13345
13345
|
const ssrOutputDir = _path2.default.join(root, distDir, "ssr");
|
|
13346
|
-
const imageRuntime =
|
|
13346
|
+
const imageRuntime = _chunkSIYELCIXcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
|
|
13347
13347
|
const hasGeneratedMetadataImages = Array.from(routeManager.getMetadataImages().values()).some(
|
|
13348
13348
|
(image) => image.sourceType === "module"
|
|
13349
13349
|
);
|
|
@@ -13365,7 +13365,7 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
|
|
|
13365
13365
|
_chunkGC5ROI3Acjs.logger.info(`\u{1F4E6} SSR entry file: ${ssrEntryFile}`);
|
|
13366
13366
|
_chunkGC5ROI3Acjs.logger.info(`\u{1F4E6} Preset: ${preset}`);
|
|
13367
13367
|
const ssgCollectionPromise = routeManager.collectSSGPages();
|
|
13368
|
-
const middlewareRoutesPromise = discoverMiddlewareRoutes(
|
|
13368
|
+
const middlewareRoutesPromise = discoverMiddlewareRoutes(_chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, config));
|
|
13369
13369
|
const configuredResponseRoutesPromise = Promise.all([config.redirects(), config.rewrites()]);
|
|
13370
13370
|
const docsPrerenderPagesPromise = getFarmDocsPrerenderPages(config, root, preset);
|
|
13371
13371
|
const farmWorkflows = await _chunkQUEYL2WMcjs.prepareFarmWorkflowsForNitro.call(void 0, config);
|
|
@@ -14157,13 +14157,13 @@ function toFarmNodeResponse(request, response) {
|
|
|
14157
14157
|
}
|
|
14158
14158
|
if (prerenderRoutes.length > 0) {
|
|
14159
14159
|
_chunkGC5ROI3Acjs.logger.info(`\u{1F4C4} Pre-rendering ${prerenderRoutes.length} SSG page(s)`);
|
|
14160
|
-
const previousPrerender = process.env[
|
|
14161
|
-
process.env[
|
|
14160
|
+
const previousPrerender = process.env[_chunkDSRWQ4SJcjs.FARM_PRERENDER_ENV];
|
|
14161
|
+
process.env[_chunkDSRWQ4SJcjs.FARM_PRERENDER_ENV] = "1";
|
|
14162
14162
|
try {
|
|
14163
14163
|
await nitroBuilder.prerender(nitroInstance);
|
|
14164
14164
|
} finally {
|
|
14165
|
-
if (previousPrerender === void 0) delete process.env[
|
|
14166
|
-
else process.env[
|
|
14165
|
+
if (previousPrerender === void 0) delete process.env[_chunkDSRWQ4SJcjs.FARM_PRERENDER_ENV];
|
|
14166
|
+
else process.env[_chunkDSRWQ4SJcjs.FARM_PRERENDER_ENV] = previousPrerender;
|
|
14167
14167
|
}
|
|
14168
14168
|
}
|
|
14169
14169
|
const sharpRuntimeStagePromise = imageRuntime === "node" ? stageSharpRuntime(config, root, distDir, fs5, preset) : Promise.resolve(null);
|
|
@@ -14518,7 +14518,7 @@ async function stageSharpRuntime(config, root, distDir, fs5, preset) {
|
|
|
14518
14518
|
try {
|
|
14519
14519
|
await copyPackage("sharp", sharpRequire);
|
|
14520
14520
|
if (!copiedPackages.has("sharp")) {
|
|
14521
|
-
throw new Error(`Farm image optimization requires sharp. ${
|
|
14521
|
+
throw new Error(`Farm image optimization requires sharp. ${_chunkSIYELCIXcjs.SHARP_INSTALL_HINT}`);
|
|
14522
14522
|
}
|
|
14523
14523
|
} catch (error) {
|
|
14524
14524
|
await fs5.rm(stageDir, { recursive: true, force: true });
|
|
@@ -14751,7 +14751,7 @@ async function createFarmProjectModuleSsrEnvironment() {
|
|
|
14751
14751
|
// src/build/index.ts
|
|
14752
14752
|
async function build(config, options = {}) {
|
|
14753
14753
|
return _chunkNG2EZ6QScjs.withProductionNodeEnv.call(void 0,
|
|
14754
|
-
() =>
|
|
14754
|
+
() => _chunkPMKUTZGRcjs.withPackageClientBoundaryCache.call(void 0, () => buildWithProductionNodeEnv(config, options))
|
|
14755
14755
|
);
|
|
14756
14756
|
}
|
|
14757
14757
|
function createBuildTargetBaseline(config) {
|
|
@@ -14762,7 +14762,7 @@ function createBuildTargetBaseline(config) {
|
|
|
14762
14762
|
preset,
|
|
14763
14763
|
distDir,
|
|
14764
14764
|
outputDir,
|
|
14765
|
-
outputWasDerived: outputDir ===
|
|
14765
|
+
outputWasDerived: outputDir === _chunkYROK6CJCcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
|
|
14766
14766
|
};
|
|
14767
14767
|
}
|
|
14768
14768
|
function resolveBuildTargets(config, options, baseline) {
|
|
@@ -14771,8 +14771,8 @@ function resolveBuildTargets(config, options, baseline) {
|
|
|
14771
14771
|
const distDir = config.distDir || ".farm";
|
|
14772
14772
|
const outputWasReplaced = config.deploy.outputDir !== baseline.outputDir;
|
|
14773
14773
|
const shouldRefreshDerivedOutput = baseline.outputWasDerived && !outputWasReplaced && (preset !== baseline.preset || distDir !== baseline.distDir);
|
|
14774
|
-
const deployTarget = preset === config.deploy.preset ? config.deploy.target :
|
|
14775
|
-
const outputDir = shouldRefreshDerivedOutput ?
|
|
14774
|
+
const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkYROK6CJCcjs.getDeployTargetForPreset.call(void 0, preset);
|
|
14775
|
+
const outputDir = shouldRefreshDerivedOutput ? _chunkYROK6CJCcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
|
|
14776
14776
|
return {
|
|
14777
14777
|
root,
|
|
14778
14778
|
preset,
|
|
@@ -14780,7 +14780,7 @@ function resolveBuildTargets(config, options, baseline) {
|
|
|
14780
14780
|
distDir,
|
|
14781
14781
|
deployTarget,
|
|
14782
14782
|
outputDir,
|
|
14783
|
-
deployOutputDir:
|
|
14783
|
+
deployOutputDir: _chunkYROK6CJCcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
|
|
14784
14784
|
};
|
|
14785
14785
|
}
|
|
14786
14786
|
async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
@@ -14788,7 +14788,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
14788
14788
|
const targetBaseline = createBuildTargetBaseline(config);
|
|
14789
14789
|
let targets;
|
|
14790
14790
|
const productionViteResultPromise = options.universal === false ? void 0 : Promise.allSettled([Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkMF3IA2AWcjs.loadFarmProductionVite.call(void 0, ))))]);
|
|
14791
|
-
const pluginManager = new (0,
|
|
14791
|
+
const pluginManager = new (0, _chunkPC5OZ4YRcjs.PluginManager)({
|
|
14792
14792
|
config,
|
|
14793
14793
|
isDev: false,
|
|
14794
14794
|
isProd: true
|
|
@@ -14817,7 +14817,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
14817
14817
|
};
|
|
14818
14818
|
config = {
|
|
14819
14819
|
...config,
|
|
14820
|
-
images:
|
|
14820
|
+
images: _chunkSIYELCIXcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
|
|
14821
14821
|
root: targets.root,
|
|
14822
14822
|
preset: targets.preset
|
|
14823
14823
|
})
|
|
@@ -14825,7 +14825,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
14825
14825
|
if (_optionalChain([config, 'access', _353 => _353.docs, 'optionalAccess', _354 => _354.enabled])) await _chunkNDOE76QCcjs.loadFarmDocsEngine.call(void 0, );
|
|
14826
14826
|
pluginManager.updateContext({ config });
|
|
14827
14827
|
const { root, preset, srcDir, distDir, deployOutputDir } = targets;
|
|
14828
|
-
|
|
14828
|
+
_chunkPMKUTZGRcjs.usePackageClientBoundaryCacheFile.call(void 0, _chunkPMKUTZGRcjs.resolvePackageClientBoundaryCacheFile.call(void 0, root, distDir));
|
|
14829
14829
|
_chunkGC5ROI3Acjs.logger.info(`\u{1F69C} Building Farm.js application with preset: ${preset}...`);
|
|
14830
14830
|
await pluginManager.setupPlugins();
|
|
14831
14831
|
await pluginManager.runHookParallel("beforeBundle", {
|
|
@@ -14846,15 +14846,16 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
14846
14846
|
root,
|
|
14847
14847
|
rendererBuild.signal
|
|
14848
14848
|
);
|
|
14849
|
-
const farmApp =
|
|
14849
|
+
const farmApp = _chunkSIYELCIXcjs.createFarmApp.call(void 0, config, projectModuleServer);
|
|
14850
14850
|
if (options.universal !== false) farmApp.getRouteManager().keepBuildSourceSnapshot();
|
|
14851
14851
|
await farmApp.initialize();
|
|
14852
14852
|
const routeManager = farmApp.getRouteManager();
|
|
14853
14853
|
const serverRenderer = farmApp.getServerRenderer();
|
|
14854
|
-
const typeArtifacts =
|
|
14854
|
+
const typeArtifacts = _chunkGC2BSXQScjs.generateFarmTypeArtifacts.call(void 0, {
|
|
14855
14855
|
root,
|
|
14856
14856
|
srcDir,
|
|
14857
14857
|
layers: config.layers,
|
|
14858
|
+
storage: config.storage,
|
|
14858
14859
|
plugins: config.plugins,
|
|
14859
14860
|
extraRoutes: [
|
|
14860
14861
|
..._optionalChain([config, 'access', _357 => _357.openapi, 'optionalAccess', _358 => _358.enabled]) && config.openapi.route ? [config.openapi.route] : [],
|
|
@@ -14868,7 +14869,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
14868
14869
|
_chunkGC5ROI3Acjs.logger.warn(`Route type generation failed (farm.d.ts may be stale): ${message}`);
|
|
14869
14870
|
});
|
|
14870
14871
|
const apiRouteManager = new (0, _chunkHFJLMALCcjs.APIRouteManager)(
|
|
14871
|
-
|
|
14872
|
+
_chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, config),
|
|
14872
14873
|
projectModuleServer,
|
|
14873
14874
|
{
|
|
14874
14875
|
throwOnLoadError: true,
|
|
@@ -14954,7 +14955,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
14954
14955
|
ssr: true,
|
|
14955
14956
|
buildLifetime
|
|
14956
14957
|
});
|
|
14957
|
-
const viteConfig =
|
|
14958
|
+
const viteConfig = _chunkSIYELCIXcjs.mergeFarmViteConfig.call(void 0,
|
|
14958
14959
|
{
|
|
14959
14960
|
root,
|
|
14960
14961
|
appType: "custom",
|
|
@@ -14966,12 +14967,12 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
14966
14967
|
},
|
|
14967
14968
|
plugins: [
|
|
14968
14969
|
...rendererVitePlugins,
|
|
14969
|
-
|
|
14970
|
+
_chunkSIYELCIXcjs.farmFontImportsPlugin.call(void 0, {
|
|
14970
14971
|
root,
|
|
14971
14972
|
basePath: config.basePath,
|
|
14972
14973
|
publicDir: config.publicDir
|
|
14973
14974
|
}),
|
|
14974
|
-
|
|
14975
|
+
_chunkPMKUTZGRcjs.farmEnvironmentFunctionsPlugin.call(void 0, ),
|
|
14975
14976
|
// Route modules load here at build time (rendering config, prerendering): `server-only`
|
|
14976
14977
|
// resolves as it does in the server build. Module-entry packages load pre-bundled, as in
|
|
14977
14978
|
// `farm dev`: unbundled, lucide-react alone is ~1,750 modules through the module runner,
|
|
@@ -14986,7 +14987,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
14986
14987
|
hmr: false
|
|
14987
14988
|
},
|
|
14988
14989
|
resolve: {
|
|
14989
|
-
alias:
|
|
14990
|
+
alias: _chunkSIYELCIXcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
|
|
14990
14991
|
dedupe: [...config.renderer.dedupe || []]
|
|
14991
14992
|
},
|
|
14992
14993
|
optimizeDeps: {
|
|
@@ -15041,7 +15042,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
|
|
|
15041
15042
|
farmPlugin,
|
|
15042
15043
|
farmServerOnlyEntriesPlugin
|
|
15043
15044
|
} = await import("./vite.cjs");
|
|
15044
|
-
const { PluginManager: PluginManager2 } = await import("./plugin-
|
|
15045
|
+
const { PluginManager: PluginManager2 } = await import("./plugin-MW7IDV76.cjs");
|
|
15045
15046
|
const pluginManager = new PluginManager2({
|
|
15046
15047
|
config,
|
|
15047
15048
|
isDev: false,
|
|
@@ -15062,14 +15063,14 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
|
|
|
15062
15063
|
farmServerOnlyEntriesPlugin({ distDir: config.distDir || ".farm" }),
|
|
15063
15064
|
farmIslandContainersPlugin(config),
|
|
15064
15065
|
farmPlugin(config, pluginManager),
|
|
15065
|
-
|
|
15066
|
+
_chunkPMKUTZGRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
|
|
15066
15067
|
],
|
|
15067
15068
|
mode: "production"
|
|
15068
15069
|
});
|
|
15069
15070
|
}
|
|
15070
15071
|
async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
|
|
15071
15072
|
const { farmI18nClientBridgePlugin, farmIslandContainersPlugin, farmPlugin } = await import("./vite.cjs");
|
|
15072
|
-
const { PluginManager: PluginManager2 } = await import("./plugin-
|
|
15073
|
+
const { PluginManager: PluginManager2 } = await import("./plugin-MW7IDV76.cjs");
|
|
15073
15074
|
const pluginManager = new PluginManager2({
|
|
15074
15075
|
config,
|
|
15075
15076
|
isDev: false,
|
|
@@ -15096,7 +15097,7 @@ async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
|
|
|
15096
15097
|
farmI18nClientBridgePlugin(),
|
|
15097
15098
|
farmIslandContainersPlugin(config),
|
|
15098
15099
|
farmPlugin(config, pluginManager),
|
|
15099
|
-
|
|
15100
|
+
_chunkPMKUTZGRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
|
|
15100
15101
|
],
|
|
15101
15102
|
mode: "production"
|
|
15102
15103
|
});
|
|
@@ -15124,7 +15125,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
|
|
|
15124
15125
|
if (pluginManager) {
|
|
15125
15126
|
nitroConfig = await pluginManager.runHookSerial("beforeNitroBuild", nitroConfig);
|
|
15126
15127
|
}
|
|
15127
|
-
const outputDir =
|
|
15128
|
+
const outputDir = _chunkYROK6CJCcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
15128
15129
|
const serverOutputDir = _path2.default.join(outputDir, "server");
|
|
15129
15130
|
const publicOutputDir = _path2.default.join(outputDir, "public");
|
|
15130
15131
|
const { mkdir, cp } = await import("fs/promises");
|
|
@@ -15195,7 +15196,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
|
|
|
15195
15196
|
root,
|
|
15196
15197
|
preset,
|
|
15197
15198
|
distDir,
|
|
15198
|
-
outputDir:
|
|
15199
|
+
outputDir: _chunkYROK6CJCcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
|
|
15199
15200
|
});
|
|
15200
15201
|
}
|
|
15201
15202
|
}
|