@farm.js/core 0.1.48 → 0.1.50
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-DAjB8Eyu.d.ts → agent-mcp-9BMbRgg_.d.ts} +1 -1
- package/dist/{agent-mcp-CXN3g0eX.d.mts → agent-mcp-CIMH324y.d.mts} +1 -1
- package/dist/agent-runtime.cjs +3 -3
- package/dist/agent-runtime.d.mts +6 -6
- package/dist/agent-runtime.d.ts +6 -6
- package/dist/agent-runtime.mjs +2 -2
- package/dist/analyzer-CN7C74WX.cjs +1066 -0
- package/dist/analyzer-DDW34OMC.mjs +1066 -0
- package/dist/api/client.d.mts +0 -1
- package/dist/api/client.d.ts +0 -1
- package/dist/api/route-manager.cjs +5 -5
- package/dist/api/route-manager.d.mts +10 -10
- package/dist/api/route-manager.d.ts +10 -10
- package/dist/api/route-manager.mjs +4 -4
- package/dist/api/runtime.cjs +3 -3
- package/dist/api/runtime.d.mts +7 -7
- package/dist/api/runtime.d.ts +7 -7
- package/dist/api/runtime.mjs +2 -2
- package/dist/api.cjs +6 -6
- package/dist/api.d.mts +10 -10
- package/dist/api.d.ts +10 -10
- package/dist/api.mjs +5 -5
- package/dist/{app-VK9sHDn5.d.ts → app-BWibTHVT.d.ts} +7 -7
- package/dist/{app-DytgRPjJ.d.mts → app-DVJ13FPA.d.mts} +7 -7
- package/dist/{app-manifest-DPgW5ke5.d.mts → app-manifest-CQDJOKL2.d.mts} +1 -1
- package/dist/{app-manifest-BUu7YGAx.d.ts → app-manifest-D0kaXdwu.d.ts} +1 -1
- package/dist/app-markdown.d.mts +7 -7
- package/dist/app-markdown.d.ts +7 -7
- package/dist/cache.d.mts +4 -3
- package/dist/cache.d.ts +4 -3
- package/dist/{chunk-VJXLUTBM.mjs → chunk-2DEPNLXK.mjs} +7 -7
- package/dist/chunk-2G63BIRL.mjs +227 -0
- package/dist/chunk-2GLQSIZD.mjs +55 -0
- package/dist/{chunk-HRLYO2XJ.mjs → chunk-2VCC3GVC.mjs} +1 -1
- package/dist/chunk-3ATXWZPH.cjs +227 -0
- package/dist/{chunk-YSPMY4B7.cjs → chunk-474FO3UE.cjs} +233 -157
- package/dist/{chunk-QNQEK3OF.cjs → chunk-4T25YCZ5.cjs} +14 -14
- package/dist/{chunk-ATHPRVP2.mjs → chunk-5V4KZOZO.mjs} +1 -1
- package/dist/{chunk-FGJQS4EC.cjs → chunk-6QA2SXVH.cjs} +2 -2
- package/dist/{chunk-XLYXG73A.mjs → chunk-75WWOZ5C.mjs} +22 -0
- package/dist/{chunk-QFQDRJKJ.mjs → chunk-76R5GJER.mjs} +2 -2
- package/dist/{chunk-NG44F7AH.mjs → chunk-7ONZDKVY.mjs} +2 -2
- package/dist/{chunk-MZZA6ZQV.mjs → chunk-7PZVXMWG.mjs} +4 -4
- package/dist/{chunk-4IICUBQX.cjs → chunk-A5BJKSZE.cjs} +2 -2
- package/dist/{chunk-TTYXOAB7.mjs → chunk-ANHZ6SUL.mjs} +1 -1
- package/dist/{chunk-ZBS3GOQZ.cjs → chunk-AQLHD6HZ.cjs} +35 -61
- package/dist/{chunk-Q2ZKQ6GD.cjs → chunk-B5S2JS6M.cjs} +127 -125
- package/dist/{chunk-AXRNEVCS.cjs → chunk-B6PREBN6.cjs} +8 -8
- package/dist/{chunk-JOHXK4BB.mjs → chunk-BW6SCVYX.mjs} +1 -1
- package/dist/{chunk-LZBM35DH.mjs → chunk-C73RIAEF.mjs} +4 -4
- package/dist/chunk-CGCJ2TJU.cjs +55 -0
- package/dist/{chunk-UYQOIPXE.mjs → chunk-CPXDDWGL.mjs} +1 -1
- package/dist/{chunk-JPAVNDZH.cjs → chunk-CY7H5KS4.cjs} +25 -25
- package/dist/{chunk-4S7M63WX.cjs → chunk-DGOLAZLV.cjs} +22 -1
- package/dist/{chunk-73XBJRZW.cjs → chunk-E2BMCNMJ.cjs} +2 -2
- package/dist/{chunk-WUEDTW6E.cjs → chunk-F5LERVY3.cjs} +23 -5
- package/dist/{chunk-A7DK663W.cjs → chunk-FACTMUPI.cjs} +27 -27
- package/dist/chunk-G2KTRMWA.mjs +40 -0
- package/dist/{chunk-C6U66WWF.mjs → chunk-GFT5AHAT.mjs} +13 -0
- package/dist/{chunk-ZGS3ZDF7.cjs → chunk-GOOK2J2W.cjs} +7 -7
- package/dist/{chunk-NW2BKDVT.mjs → chunk-HHFMECFO.mjs} +1 -1
- package/dist/{chunk-6M3HXUBQ.mjs → chunk-HWCHIBJZ.mjs} +21 -3
- package/dist/{chunk-HUL4LTC6.cjs → chunk-HYN3LLG7.cjs} +63 -20
- package/dist/{chunk-HELQXYVI.cjs → chunk-I2DQGS56.cjs} +11 -9
- package/dist/{chunk-SSNN55Q6.cjs → chunk-IQXGHGZF.cjs} +5 -5
- package/dist/{chunk-ZSIGEHSE.cjs → chunk-IUBDMDZZ.cjs} +21 -180
- package/dist/{chunk-TQWGOQ7O.mjs → chunk-IWJKJDNW.mjs} +116 -40
- package/dist/{chunk-NRFUVDTH.mjs → chunk-JJOWY3XD.mjs} +2 -2
- package/dist/{chunk-6XFGJBYX.cjs → chunk-JYNNIGQO.cjs} +16 -7
- package/dist/{chunk-XO6WL6NL.mjs → chunk-KGP76FSV.mjs} +1 -1
- package/dist/{chunk-GXSMF7UR.mjs → chunk-KO2NWUKN.mjs} +1 -1
- package/dist/{chunk-VDLF2DJA.cjs → chunk-KZH6YLND.cjs} +375 -162
- package/dist/{chunk-5566GNEG.cjs → chunk-LIFUPCXW.cjs} +13 -0
- package/dist/{chunk-I2SWKWO7.mjs → chunk-LJDIFIJ2.mjs} +1 -1
- package/dist/{chunk-KZT2VHRQ.cjs → chunk-LYWAGXXW.cjs} +11 -11
- package/dist/{chunk-N6SIQJEJ.mjs → chunk-M7LKA632.mjs} +54 -11
- package/dist/{chunk-6LH33DLL.cjs → chunk-NJVFPJ2Y.cjs} +2 -2
- package/dist/{chunk-JWP56HCP.mjs → chunk-OD6WM3I7.mjs} +2 -2
- package/dist/{chunk-MJ6IC4K2.mjs → chunk-OTOOJIUB.mjs} +1 -1
- package/dist/{chunk-TFA6BUAE.cjs → chunk-OY5XDG24.cjs} +4 -4
- package/dist/{chunk-R2SEZEBC.cjs → chunk-OYNNA4DD.cjs} +4 -4
- package/dist/{chunk-GBPDSUFE.mjs → chunk-OZK2DS44.mjs} +1 -1
- package/dist/chunk-QXJADAQB.cjs +40 -0
- package/dist/{chunk-JLS6ZLFM.cjs → chunk-RHOR2J6V.cjs} +1 -1
- package/dist/{chunk-YQGZLCT4.cjs → chunk-RWT2BTJT.cjs} +6 -6
- package/dist/{chunk-3HBFI373.cjs → chunk-S5AQ7CAC.cjs} +14 -14
- package/dist/{chunk-HNAUK3SC.mjs → chunk-SHJJM6OG.mjs} +40 -199
- package/dist/{chunk-LL7TDMOM.mjs → chunk-SMUW7UST.mjs} +33 -59
- package/dist/{chunk-VCFBQFOV.mjs → chunk-SN5VSO3Q.mjs} +9 -7
- package/dist/{chunk-DM3TFCC2.cjs → chunk-SUV6YO4Q.cjs} +5 -5
- package/dist/{chunk-JUMPFVMK.mjs → chunk-TUOO6IK3.mjs} +9 -0
- package/dist/chunk-UB7RVEMX.mjs +73 -0
- package/dist/{chunk-CDTIXBKN.mjs → chunk-UN6N623E.mjs} +2 -2
- package/dist/{chunk-BEXYFR2R.cjs → chunk-UY6HS5PF.cjs} +2 -2
- package/dist/{chunk-HAH4FBTA.mjs → chunk-VAHBCI6X.mjs} +1 -1
- package/dist/{chunk-C2R5RVLA.cjs → chunk-VCKGOXFI.cjs} +73 -1
- package/dist/{chunk-N25RPPO5.cjs → chunk-WAPQWAE6.cjs} +10 -10
- package/dist/{chunk-NE33FRQ5.mjs → chunk-WVBUXNBX.mjs} +274 -61
- package/dist/{chunk-ALD2WMLA.mjs → chunk-WXHDVXJE.mjs} +2 -2
- package/dist/{chunk-EVCQX243.cjs → chunk-X2EL3BLH.cjs} +2 -2
- package/dist/{chunk-EA5PMJDU.mjs → chunk-X3HOVNHI.mjs} +1 -1
- package/dist/{chunk-XXB37YET.cjs → chunk-XLRLSTJ6.cjs} +7 -7
- package/dist/{chunk-DRFADSKY.mjs → chunk-XXXRRVY6.mjs} +4 -4
- package/dist/{chunk-EXHEPWFJ.cjs → chunk-YAXOEAND.cjs} +10 -10
- package/dist/{chunk-PEHL3IZL.cjs → chunk-YB44NKC2.cjs} +2 -2
- package/dist/chunk-YKHRCY4T.cjs +73 -0
- package/dist/{chunk-NIPKC4DA.mjs → chunk-ZIBIE7AH.mjs} +72 -0
- package/dist/{chunk-N7SPZJLY.mjs → chunk-ZLOQQ2UF.mjs} +33 -31
- package/dist/client/lifecycle.d.mts +1 -1
- package/dist/client/lifecycle.d.ts +1 -1
- package/dist/{client-plugins-DqjCsKMN.d.ts → client-plugins-BPfltM5m.d.ts} +19 -10
- package/dist/{client-plugins-BlEzV5FO.d.mts → client-plugins-D4RO59f0.d.mts} +19 -10
- package/dist/client-plugins.d.mts +6 -6
- package/dist/client-plugins.d.ts +6 -6
- package/dist/client.cjs +11 -8
- package/dist/client.d.mts +11 -10
- package/dist/client.d.ts +11 -10
- package/dist/client.mjs +12 -9
- package/dist/client.react-server.mjs +1 -1
- package/dist/config-CnhyvvmT.d.mts +188 -0
- package/dist/config-CnhyvvmT.d.ts +188 -0
- package/dist/config.d.mts +6 -6
- package/dist/config.d.ts +6 -6
- package/dist/desktop.d.mts +7 -7
- package/dist/desktop.d.ts +7 -7
- package/dist/{dev-guard-MPZUJFIV.mjs → dev-guard-4PFQNXQX.mjs} +4 -2
- package/dist/{dev-guard-4NQ3LFO5.cjs → dev-guard-YLO5DE3H.cjs} +7 -5
- package/dist/{devtools-A37WWJZL.cjs → devtools-N5XTOECL.cjs} +8 -8
- package/dist/{devtools-BLKHPY3C.mjs → devtools-STG7HPRV.mjs} +7 -7
- package/dist/docs.cjs +10 -10
- package/dist/docs.d.mts +7 -7
- package/dist/docs.d.ts +7 -7
- package/dist/docs.mjs +9 -9
- package/dist/environment/vite.d.mts +1 -1
- package/dist/environment/vite.d.ts +1 -1
- package/dist/generate-route-types-DQP0cUzk.d.ts +33 -0
- package/dist/generate-route-types-TF5Wwtvz.d.mts +33 -0
- package/dist/i18n/client.d.mts +2 -2
- package/dist/i18n/client.d.ts +2 -2
- package/dist/i18n/index.d.mts +3 -3
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/server.d.mts +5 -5
- package/dist/i18n/server.d.ts +5 -5
- package/dist/image/server.cjs +3 -3
- package/dist/image/server.mjs +2 -2
- package/dist/image/sharp.cjs +10 -10
- package/dist/image/sharp.mjs +2 -2
- package/dist/{index-CMigAr9f.d.mts → index-C-N3Pwg-.d.ts} +2 -2
- package/dist/{index-MocnSP3a.d.ts → index-D3l4tREW.d.ts} +2 -2
- package/dist/{index-Cl3akY5U.d.mts → index-DPUAPho_.d.mts} +2 -2
- package/dist/{index-n3hjOvVC.d.ts → index-k8o8eUOd.d.mts} +2 -2
- package/dist/index.cjs +73 -66
- package/dist/index.d.mts +29 -45
- package/dist/index.d.ts +29 -45
- package/dist/index.mjs +78 -71
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.mts +6 -6
- package/dist/integrations.d.ts +6 -6
- package/dist/integrations.mjs +2 -2
- package/dist/internal/app-markdown-runtime.d.mts +7 -7
- package/dist/internal/app-markdown-runtime.d.ts +7 -7
- package/dist/internal/build-runtime.cjs +36 -32
- package/dist/internal/build-runtime.d.mts +9 -9
- package/dist/internal/build-runtime.d.ts +9 -9
- package/dist/internal/build-runtime.mjs +35 -31
- package/dist/internal/cli-runtime.cjs +16 -15
- package/dist/internal/cli-runtime.mjs +16 -15
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +19 -2
- package/dist/internal/client-runtime.d.mts +45 -3
- package/dist/internal/client-runtime.d.ts +45 -3
- package/dist/internal/client-runtime.mjs +19 -2
- package/dist/internal/compression-runtime.d.mts +6 -6
- package/dist/internal/compression-runtime.d.ts +6 -6
- package/dist/internal/config-runtime.cjs +17 -10
- package/dist/internal/config-runtime.d.mts +259 -18
- package/dist/internal/config-runtime.d.ts +259 -18
- package/dist/internal/config-runtime.mjs +15 -8
- package/dist/internal/desktop-guard.cjs +2 -2
- package/dist/internal/desktop-guard.d.mts +7 -0
- package/dist/internal/desktop-guard.d.ts +7 -0
- package/dist/internal/desktop-guard.mjs +1 -1
- package/dist/internal/form-actions.cjs +4 -4
- package/dist/internal/form-actions.mjs +3 -3
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/islands-runtime.cjs +4 -1
- package/dist/internal/islands-runtime.d.mts +9 -12
- package/dist/internal/islands-runtime.d.ts +9 -12
- package/dist/internal/islands-runtime.mjs +5 -2
- package/dist/internal/metadata-image-runtime.cjs +3 -3
- package/dist/internal/metadata-image-runtime.mjs +2 -2
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +13 -13
- package/dist/internal/production-runtime.d.mts +19 -19
- package/dist/internal/production-runtime.d.ts +19 -19
- package/dist/internal/production-runtime.mjs +15 -15
- package/dist/{layers-D9fbe-rz.d.ts → layers-CcS42OGR.d.mts} +1 -1
- package/dist/{layers-D9fbe-rz.d.mts → layers-CcS42OGR.d.ts} +1 -1
- package/dist/{lifecycle-DK06VuKP.d.ts → lifecycle-C2aLBOwu.d.mts} +1 -1
- package/dist/{lifecycle-DK06VuKP.d.mts → lifecycle-C2aLBOwu.d.ts} +1 -1
- package/dist/markdown.d.mts +6 -6
- package/dist/markdown.d.ts +6 -6
- package/dist/middleware.cjs +7 -7
- package/dist/middleware.d.mts +8 -8
- package/dist/middleware.d.ts +8 -8
- package/dist/middleware.mjs +6 -6
- package/dist/mobile.cjs +9 -0
- package/dist/mobile.d.mts +67 -0
- package/dist/mobile.d.ts +67 -0
- package/dist/mobile.mjs +9 -0
- package/dist/navigation-delegate-8xg3Zvp4.d.ts +29 -0
- package/dist/navigation-delegate-ji6elCKy.d.mts +29 -0
- package/dist/navigation.cjs +5 -5
- package/dist/navigation.d.mts +9 -9
- package/dist/navigation.d.ts +9 -9
- package/dist/navigation.mjs +4 -4
- package/dist/{nitro-UT2J5A5D.mjs → nitro-2Q5NVY7L.mjs} +2 -2
- package/dist/{nitro-BIXIKJZS.cjs → nitro-YPSZBYDK.cjs} +3 -3
- package/dist/platform.cjs +2 -1
- package/dist/platform.d.mts +4 -3
- package/dist/platform.d.ts +4 -3
- package/dist/platform.mjs +2 -1
- package/dist/{plugin-4KYXV7BB.mjs → plugin-53SY5YBS.mjs} +1 -1
- package/dist/{plugin-WBANOZQM.cjs → plugin-HZIBL3DW.cjs} +2 -2
- package/dist/plugin.cjs +31 -29
- package/dist/plugin.d.mts +13 -8
- package/dist/plugin.d.ts +13 -8
- package/dist/plugin.mjs +30 -28
- package/dist/{production-runtime-bWZJMcQb.d.mts → production-runtime-DXnQQkQf.d.mts} +3 -3
- package/dist/{production-runtime-YVDGYWBG.d.ts → production-runtime-TdKaYRj0.d.ts} +3 -3
- package/dist/production-vite-BQFAlG7n.d.mts +13 -0
- package/dist/production-vite-BQFAlG7n.d.ts +13 -0
- package/dist/{programmatic-routes-client-DviwGeAv.d.ts → programmatic-routes-client-BwiTndEC.d.ts} +2 -2
- package/dist/{programmatic-routes-client-BFKOTEXN.d.mts → programmatic-routes-client-Dh1SDLSM.d.mts} +2 -2
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan-DqWXo3-B.d.ts → render-plan-BPbwRbuN.d.ts} +1 -1
- package/dist/{render-plan-CS8l0zaK.d.mts → render-plan-BvCGXF6K.d.mts} +1 -1
- package/dist/renderer-client.cjs +9 -6
- package/dist/renderer-client.d.mts +9 -8
- package/dist/renderer-client.d.ts +9 -8
- package/dist/renderer-client.mjs +6 -3
- package/dist/{request-CBrHpaCC.d.ts → request-B8PGTZNR.d.ts} +1 -1
- package/dist/{request-D4XqmnJF.d.mts → request-C_xTkJib.d.mts} +1 -1
- package/dist/request.d.mts +7 -7
- package/dist/request.d.ts +7 -7
- package/dist/{resolver-DC57A4vz.d.ts → resolver-CJ-D9nP-.d.ts} +1 -1
- package/dist/{resolver-C2G-3Tm6.d.mts → resolver-TDyZKgKI.d.mts} +1 -1
- package/dist/{route-rendering-3pRPtyO2.d.mts → route-rendering-DlddURL1.d.mts} +1 -1
- package/dist/{route-rendering-Bltnu8a3.d.ts → route-rendering-RNtcj607.d.ts} +1 -1
- package/dist/{router-BFSmKGtI.d.mts → router-B97eB0Mq.d.mts} +1 -1
- package/dist/{router-DDT7bkg7.d.ts → router-qUVaoEN8.d.ts} +1 -1
- package/dist/routes-8PT9cl60.d.ts +121 -0
- package/dist/routes-kEUsXHx3.d.mts +121 -0
- package/dist/routes.d.mts +6 -6
- package/dist/routes.d.ts +6 -6
- package/dist/{rsc-pipeline-4KOITP64.cjs → rsc-pipeline-L4XOZ2TE.cjs} +13 -10
- package/dist/{rsc-pipeline-ULFIB3UT.mjs → rsc-pipeline-T3775JUA.mjs} +12 -9
- package/dist/runtime-BIBGJO7V.cjs +1005 -0
- package/dist/{runtime-B9HmxiZc.d.ts → runtime-C4CmlOOh.d.ts} +2 -2
- package/dist/{runtime-C6yG64je.d.ts → runtime-C8GUnNeP.d.ts} +1 -1
- package/dist/{runtime-Cpylaypt.d.mts → runtime-CaDswfWi.d.mts} +1 -1
- package/dist/{runtime-CCxTmGuf.d.mts → runtime-CihDZ2Rn.d.mts} +2 -2
- package/dist/runtime-HRSFC4ZC.mjs +1005 -0
- package/dist/{schema-dev-notice-O3I5HLXK.mjs → schema-dev-notice-LZ5NXGLN.mjs} +2 -2
- package/dist/{schema-dev-notice-Z73J3NJ6.cjs → schema-dev-notice-XV7GZ3QJ.cjs} +4 -4
- package/dist/server-action-security.cjs +3 -3
- package/dist/server-action-security.mjs +2 -2
- package/dist/server-fn-client.d.mts +0 -1
- package/dist/server-fn-client.d.ts +0 -1
- package/dist/server-fn.cjs +4 -4
- package/dist/server-fn.d.mts +0 -1
- package/dist/server-fn.d.ts +0 -1
- package/dist/server-fn.mjs +3 -3
- package/dist/server-plugins.cjs +1 -1
- package/dist/server-plugins.d.mts +7 -7
- package/dist/server-plugins.d.ts +7 -7
- package/dist/server-plugins.mjs +1 -1
- package/dist/server-query-client.d.mts +0 -1
- package/dist/server-query-client.d.ts +0 -1
- package/dist/server-query.cjs +5 -5
- package/dist/server-query.d.mts +0 -1
- package/dist/server-query.d.ts +0 -1
- package/dist/server-query.mjs +4 -4
- package/dist/server.cjs +89 -66
- package/dist/server.d.mts +22 -17
- package/dist/server.d.ts +22 -17
- package/dist/server.mjs +64 -41
- package/dist/{spa-router-CkTPnA4L.d.mts → spa-router-Dlv5ofg0.d.mts} +4 -4
- package/dist/{spa-router-CKuS81mi.d.ts → spa-router-qapSboKz.d.ts} +4 -4
- package/dist/testing.cjs +7 -7
- package/dist/testing.d.mts +6 -6
- package/dist/testing.d.ts +6 -6
- package/dist/testing.mjs +5 -5
- package/dist/{types--Wh02r5_.d.mts → types-C41ePjvP.d.mts} +1 -1
- package/dist/{types--Wh02r5_.d.ts → types-C41ePjvP.d.ts} +1 -1
- package/dist/{utils-C0ORLYXc.d.ts → utils-A-cYF81u.d.ts} +1 -1
- package/dist/{utils-IA9wVkef.d.mts → utils-DyvlSxFk.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +31 -29
- package/dist/vite.d.mts +9 -9
- package/dist/vite.d.ts +9 -9
- package/dist/vite.mjs +30 -28
- package/dist/{workflows-Df1C_7OG.d.mts → workflows-CRMzQZ3k.d.mts} +2 -1
- package/dist/{workflows-Df1C_7OG.d.ts → workflows-CRMzQZ3k.d.ts} +2 -1
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.d.mts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/dist/workflows.mjs +2 -2
- package/package.json +10 -2
- package/dist/cache-invalidation-BD0z_lfu.d.mts +0 -4
- package/dist/cache-invalidation-BD0z_lfu.d.ts +0 -4
- package/dist/chunk-45EUIICW.mjs +0 -15
- package/dist/chunk-V7KTQR4C.cjs +0 -15
- package/dist/{chunk-BR5FSKZ5.cjs → chunk-EQWWOQTK.cjs} +0 -0
- package/dist/{chunk-5OJVKXFV.cjs → chunk-N7JQXQAV.cjs} +2 -2
- package/dist/{chunk-VR4SEDEM.mjs → chunk-VOZ5DI7D.mjs} +0 -0
- package/dist/{chunk-72KABRWN.mjs → chunk-WSDKXV4E.mjs} +4 -4
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkIUBDMDZZcjs = require('./chunk-IUBDMDZZ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkYB44NKC2cjs = require('./chunk-YB44NKC2.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
var _chunkAQLHD6HZcjs = require('./chunk-AQLHD6HZ.cjs');
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
|
|
@@ -28,10 +29,14 @@ var _chunkPEHL3IZLcjs = require('./chunk-PEHL3IZL.cjs');
|
|
|
28
29
|
|
|
29
30
|
|
|
30
31
|
|
|
31
|
-
var _chunkC2R5RVLAcjs = require('./chunk-C2R5RVLA.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
var _chunkVCKGOXFIcjs = require('./chunk-VCKGOXFI.cjs');
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
var _chunkGOOK2J2Wcjs = require('./chunk-GOOK2J2W.cjs');
|
|
35
40
|
|
|
36
41
|
|
|
37
42
|
|
|
@@ -46,7 +51,7 @@ var _chunkSBABQKPTcjs = require('./chunk-SBABQKPT.cjs');
|
|
|
46
51
|
var _chunkXGJVRPYLcjs = require('./chunk-XGJVRPYL.cjs');
|
|
47
52
|
|
|
48
53
|
|
|
49
|
-
var
|
|
54
|
+
var _chunkNJVFPJ2Ycjs = require('./chunk-NJVFPJ2Y.cjs');
|
|
50
55
|
|
|
51
56
|
|
|
52
57
|
|
|
@@ -59,6 +64,13 @@ var _chunkJ37KTQIAcjs = require('./chunk-J37KTQIA.cjs');
|
|
|
59
64
|
|
|
60
65
|
|
|
61
66
|
|
|
67
|
+
var _chunkBOVGCUDZcjs = require('./chunk-BOVGCUDZ.cjs');
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
var _chunkJATTVAHAcjs = require('./chunk-JATTVAHA.cjs');
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
62
74
|
var _chunk4ZJ5C7UJcjs = require('./chunk-4ZJ5C7UJ.cjs');
|
|
63
75
|
|
|
64
76
|
|
|
@@ -118,27 +130,20 @@ var _chunkHEPJIKKQcjs = require('./chunk-HEPJIKKQ.cjs');
|
|
|
118
130
|
var _chunk5Y2P454Ocjs = require('./chunk-5Y2P454O.cjs');
|
|
119
131
|
|
|
120
132
|
|
|
121
|
-
var _chunkSSNN55Q6cjs = require('./chunk-SSNN55Q6.cjs');
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
var _chunkC7425KDGcjs = require('./chunk-C7425KDG.cjs');
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
var _chunkFGJQS4ECcjs = require('./chunk-FGJQS4EC.cjs');
|
|
128
|
-
|
|
129
133
|
|
|
130
|
-
var
|
|
134
|
+
var _chunk2HW5LWAHcjs = require('./chunk-2HW5LWAH.cjs');
|
|
131
135
|
|
|
132
136
|
|
|
137
|
+
var _chunkIQXGHGZFcjs = require('./chunk-IQXGHGZF.cjs');
|
|
133
138
|
|
|
134
|
-
var _chunkBOVGCUDZcjs = require('./chunk-BOVGCUDZ.cjs');
|
|
135
139
|
|
|
140
|
+
var _chunkC7425KDGcjs = require('./chunk-C7425KDG.cjs');
|
|
136
141
|
|
|
137
|
-
var _chunkJATTVAHAcjs = require('./chunk-JATTVAHA.cjs');
|
|
138
142
|
|
|
143
|
+
var _chunk6QA2SXVHcjs = require('./chunk-6QA2SXVH.cjs');
|
|
139
144
|
|
|
140
145
|
|
|
141
|
-
var
|
|
146
|
+
var _chunkWT6RAN2Icjs = require('./chunk-WT6RAN2I.cjs');
|
|
142
147
|
|
|
143
148
|
|
|
144
149
|
|
|
@@ -159,7 +164,7 @@ var _chunkX333W5KVcjs = require('./chunk-X333W5KV.cjs');
|
|
|
159
164
|
|
|
160
165
|
|
|
161
166
|
|
|
162
|
-
var
|
|
167
|
+
var _chunkWAPQWAE6cjs = require('./chunk-WAPQWAE6.cjs');
|
|
163
168
|
|
|
164
169
|
|
|
165
170
|
|
|
@@ -208,7 +213,7 @@ var _chunkDMAP4RNDcjs = require('./chunk-DMAP4RND.cjs');
|
|
|
208
213
|
var _chunkSNP33A33cjs = require('./chunk-SNP33A33.cjs');
|
|
209
214
|
|
|
210
215
|
|
|
211
|
-
var
|
|
216
|
+
var _chunkJYNNIGQOcjs = require('./chunk-JYNNIGQO.cjs');
|
|
212
217
|
|
|
213
218
|
|
|
214
219
|
var _chunkLNVGXUL3cjs = require('./chunk-LNVGXUL3.cjs');
|
|
@@ -239,7 +244,7 @@ var _chunkZ5MZDFX4cjs = require('./chunk-Z5MZDFX4.cjs');
|
|
|
239
244
|
|
|
240
245
|
|
|
241
246
|
|
|
242
|
-
var
|
|
247
|
+
var _chunkLIFUPCXWcjs = require('./chunk-LIFUPCXW.cjs');
|
|
243
248
|
|
|
244
249
|
|
|
245
250
|
var _chunkJYT7AN37cjs = require('./chunk-JYT7AN37.cjs');
|
|
@@ -248,7 +253,7 @@ var _chunkJYT7AN37cjs = require('./chunk-JYT7AN37.cjs');
|
|
|
248
253
|
var _chunkB5BBTPJQcjs = require('./chunk-B5BBTPJQ.cjs');
|
|
249
254
|
|
|
250
255
|
|
|
251
|
-
var
|
|
256
|
+
var _chunkRHOR2J6Vcjs = require('./chunk-RHOR2J6V.cjs');
|
|
252
257
|
|
|
253
258
|
|
|
254
259
|
|
|
@@ -1919,8 +1924,8 @@ var RouteManager = class {
|
|
|
1919
1924
|
)
|
|
1920
1925
|
);
|
|
1921
1926
|
this.orderedLayouts = Array.from(this.layouts.values()).sort(
|
|
1922
|
-
(left, right) =>
|
|
1923
|
-
).map((entry) => ({ entry, groupScope:
|
|
1927
|
+
(left, right) => _chunkVCKGOXFIcjs.getRouteDirectoryDepth.call(void 0, left.pattern) - _chunkVCKGOXFIcjs.getRouteDirectoryDepth.call(void 0, right.pattern)
|
|
1928
|
+
).map((entry) => ({ entry, groupScope: _chunkVCKGOXFIcjs.getRouteGroupScope.call(void 0, entry.pattern) }));
|
|
1924
1929
|
for (const slot of this.routeSlots.values()) {
|
|
1925
1930
|
if (!this.routeSlotOwnerSegments.has(slot.ownerPattern)) {
|
|
1926
1931
|
this.routeSlotOwnerSegments.set(
|
|
@@ -2162,7 +2167,7 @@ var RouteManager = class {
|
|
|
2162
2167
|
}
|
|
2163
2168
|
return absolutePath;
|
|
2164
2169
|
};
|
|
2165
|
-
const integrationProviders =
|
|
2170
|
+
const integrationProviders = _chunkWAPQWAE6cjs.getIntegrationProviders.call(void 0, this.config.integrations).filter(
|
|
2166
2171
|
(provider) => provider.component || provider.type === "clerk"
|
|
2167
2172
|
);
|
|
2168
2173
|
const unsupportedIntegrationProvider = integrationProviders.find(
|
|
@@ -2232,15 +2237,15 @@ var RouteManager = class {
|
|
|
2232
2237
|
enforceFarmIsolatedHydrationRouteBudget(
|
|
2233
2238
|
layoutEntries.map(({ entry, metadata }) => ({
|
|
2234
2239
|
pattern: entry.pattern,
|
|
2235
|
-
depth:
|
|
2240
|
+
depth: _chunkVCKGOXFIcjs.getRouteDirectoryDepth.call(void 0, entry.pattern),
|
|
2236
2241
|
metadata
|
|
2237
2242
|
})),
|
|
2238
2243
|
routeEntries.map(({ entry, metadata }) => ({
|
|
2239
2244
|
pattern: getRouteEntryDirectory(entry),
|
|
2240
|
-
depth:
|
|
2245
|
+
depth: _chunkVCKGOXFIcjs.getRouteDirectoryDepth.call(void 0, getRouteEntryDirectory(entry)),
|
|
2241
2246
|
metadata
|
|
2242
2247
|
})),
|
|
2243
|
-
|
|
2248
|
+
_chunkVCKGOXFIcjs.routeBoundaryCoversDirectory
|
|
2244
2249
|
);
|
|
2245
2250
|
for (const { entry, metadata } of [...layoutEntries, ...routeEntries]) {
|
|
2246
2251
|
if (!metadata.costGuardExceeded) continue;
|
|
@@ -2259,7 +2264,7 @@ var RouteManager = class {
|
|
|
2259
2264
|
const routes = routeEntries.map(({ entry, metadata }) => {
|
|
2260
2265
|
const programmaticPage = this.programmaticPages.get(entry.modulePath);
|
|
2261
2266
|
const layoutShouldHydrate = layoutEntries.some(
|
|
2262
|
-
({ entry: layout, metadata: layoutMetadata }) => layoutMetadata.shouldHydrate &&
|
|
2267
|
+
({ entry: layout, metadata: layoutMetadata }) => layoutMetadata.shouldHydrate && _chunkVCKGOXFIcjs.routeBoundaryCoversDirectory.call(void 0, layout.pattern, getRouteEntryDirectory(entry))
|
|
2263
2268
|
);
|
|
2264
2269
|
return {
|
|
2265
2270
|
pattern: entry.pattern,
|
|
@@ -2276,7 +2281,7 @@ var RouteManager = class {
|
|
|
2276
2281
|
}))
|
|
2277
2282
|
} : {},
|
|
2278
2283
|
...usesFarmServerTree(metadata) ? { serverTree: true } : {},
|
|
2279
|
-
renderPlan:
|
|
2284
|
+
renderPlan: _chunkVCKGOXFIcjs.createFarmRouteRenderPlan.call(void 0, {
|
|
2280
2285
|
pageShouldHydrate: metadata.shouldHydrate,
|
|
2281
2286
|
layoutShouldHydrate,
|
|
2282
2287
|
islandStrategy: metadata.islandStrategy
|
|
@@ -2292,7 +2297,7 @@ var RouteManager = class {
|
|
|
2292
2297
|
}))
|
|
2293
2298
|
};
|
|
2294
2299
|
});
|
|
2295
|
-
const treeLayoutPatterns = islandsMode ?
|
|
2300
|
+
const treeLayoutPatterns = islandsMode ? _chunkVCKGOXFIcjs.getFarmServerTreeLayoutPatterns.call(void 0,
|
|
2296
2301
|
layoutEntries.map(({ entry, metadata }) => ({
|
|
2297
2302
|
pattern: entry.pattern,
|
|
2298
2303
|
shouldHydrate: metadata.shouldHydrate,
|
|
@@ -2419,7 +2424,7 @@ var RouteManager = class {
|
|
|
2419
2424
|
const mdxConfig = _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, this.config.mdx);
|
|
2420
2425
|
const components = await _chunkBOVGCUDZcjs.loadFarmMdxComponents.call(void 0, mdxConfig, {
|
|
2421
2426
|
root: this.config.root,
|
|
2422
|
-
loadModule: this.viteServer ? (componentModulePath) =>
|
|
2427
|
+
loadModule: this.viteServer ? (componentModulePath) => _chunkJYNNIGQOcjs.loadFarmDevModule.call(void 0, this.viteServer, componentModulePath) : void 0
|
|
2423
2428
|
});
|
|
2424
2429
|
return await _chunkBOVGCUDZcjs.createFarmMarkdownRouteModuleFromFile.call(void 0, modulePath, {
|
|
2425
2430
|
components,
|
|
@@ -2427,7 +2432,7 @@ var RouteManager = class {
|
|
|
2427
2432
|
});
|
|
2428
2433
|
}
|
|
2429
2434
|
if (this.viteServer) {
|
|
2430
|
-
const module = await
|
|
2435
|
+
const module = await _chunkJYNNIGQOcjs.loadFarmDevModule.call(void 0, this.viteServer, modulePath);
|
|
2431
2436
|
return module;
|
|
2432
2437
|
} else {
|
|
2433
2438
|
const module = await import(
|
|
@@ -2452,7 +2457,7 @@ var RouteManager = class {
|
|
|
2452
2457
|
return createLayoutModuleFromProgrammaticLayout(programmaticLayout);
|
|
2453
2458
|
}
|
|
2454
2459
|
if (this.viteServer) {
|
|
2455
|
-
const module = await
|
|
2460
|
+
const module = await _chunkJYNNIGQOcjs.loadFarmDevModule.call(void 0, this.viteServer, modulePath);
|
|
2456
2461
|
return module;
|
|
2457
2462
|
} else {
|
|
2458
2463
|
const module = await import(
|
|
@@ -2471,7 +2476,7 @@ var RouteManager = class {
|
|
|
2471
2476
|
*/
|
|
2472
2477
|
createRoutePattern(route) {
|
|
2473
2478
|
if (route.segments.length === 0) return "/";
|
|
2474
|
-
return "/" + route.segments.map(
|
|
2479
|
+
return "/" + route.segments.map(_chunkVCKGOXFIcjs.formatRouteSegment).join("/");
|
|
2475
2480
|
}
|
|
2476
2481
|
registerPageRoute(entry) {
|
|
2477
2482
|
_chunkYTVSWXEZcjs.assertUniqueRouteParameters.call(void 0, entry.pattern);
|
|
@@ -2565,7 +2570,7 @@ var RouteManager = class {
|
|
|
2565
2570
|
for (const file of files) {
|
|
2566
2571
|
const route = _chunkXN2MB4QZcjs.parseRoutePath.call(void 0, file);
|
|
2567
2572
|
const modulePath = path4.default.join(appDir, file);
|
|
2568
|
-
const pattern =
|
|
2573
|
+
const pattern = _chunkVCKGOXFIcjs.createRouteDirectoryPattern.call(void 0, route);
|
|
2569
2574
|
const existing = target.get(pattern);
|
|
2570
2575
|
if (_optionalChain([existing, 'optionalAccess', _136 => _136.sourceRoot]) === source.root) {
|
|
2571
2576
|
throw new Error(
|
|
@@ -2587,7 +2592,7 @@ var RouteManager = class {
|
|
|
2587
2592
|
const modulePath = path4.default.join(appDir, file);
|
|
2588
2593
|
const pattern = this.createRoutePattern(slot.route);
|
|
2589
2594
|
const ownerPattern = this.createRoutePattern(slot.ownerRoute);
|
|
2590
|
-
const ownerDirectory =
|
|
2595
|
+
const ownerDirectory = _chunkVCKGOXFIcjs.createRouteDirectoryPattern.call(void 0, slot.ownerRoute);
|
|
2591
2596
|
const key = `${ownerPattern}:${slot.name}:${slot.interception ? "intercept" : "slot"}:${slot.fallback ? "default" : pattern}`;
|
|
2592
2597
|
const existing = this.routeSlots.get(key);
|
|
2593
2598
|
if (_optionalChain([existing, 'optionalAccess', _137 => _137.sourceRoot]) === source.root) {
|
|
@@ -2704,7 +2709,7 @@ var RouteManager = class {
|
|
|
2704
2709
|
}
|
|
2705
2710
|
if (definition.kind === "layout") {
|
|
2706
2711
|
const route = _chunkE7QOEV5Zcjs.parseProgrammaticRoutePath.call(void 0, definition.path, "layout");
|
|
2707
|
-
const pattern =
|
|
2712
|
+
const pattern = _chunkVCKGOXFIcjs.createRouteDirectoryPattern.call(void 0, route);
|
|
2708
2713
|
const existing = this.layouts.get(pattern);
|
|
2709
2714
|
if (_optionalChain([existing, 'optionalAccess', _141 => _141.sourceRoot]) === source.root) {
|
|
2710
2715
|
throw new Error(
|
|
@@ -2736,7 +2741,7 @@ var RouteManager = class {
|
|
|
2736
2741
|
async loadProgrammaticRoutesModule(filePath) {
|
|
2737
2742
|
if (this.viteServer) {
|
|
2738
2743
|
const viteRoot = _optionalChain([this, 'access', _142 => _142.viteServer, 'access', _143 => _143.config, 'optionalAccess', _144 => _144.root]) || this.config.root || process.cwd();
|
|
2739
|
-
return await
|
|
2744
|
+
return await _chunkJYNNIGQOcjs.loadFarmDevModule.call(void 0, this.viteServer, _chunkXN2MB4QZcjs.toViteModuleId.call(void 0, filePath, viteRoot));
|
|
2740
2745
|
}
|
|
2741
2746
|
return await import(
|
|
2742
2747
|
/* @vite-ignore */
|
|
@@ -2751,7 +2756,7 @@ var RouteManager = class {
|
|
|
2751
2756
|
const matchingLayouts = [];
|
|
2752
2757
|
for (const { entry, groupScope } of this.orderedLayouts) {
|
|
2753
2758
|
if (!_chunkXN2MB4QZcjs.matchRoutePrefixParts.call(void 0, pathnameParts, entry.route.segments)) continue;
|
|
2754
|
-
if (groupScope !== null && !
|
|
2759
|
+
if (groupScope !== null && !_chunkVCKGOXFIcjs.isInRouteGroupScope.call(void 0, route && getRouteEntryDirectory(route), groupScope)) {
|
|
2755
2760
|
continue;
|
|
2756
2761
|
}
|
|
2757
2762
|
matchingLayouts.push(entry);
|
|
@@ -2832,14 +2837,14 @@ var RouteManager = class {
|
|
|
2832
2837
|
let page = route;
|
|
2833
2838
|
for (const boundaryEntry of boundaries.values()) {
|
|
2834
2839
|
if (!_chunkXN2MB4QZcjs.matchRoutePrefix.call(void 0, normalizedPath, boundaryEntry.route.segments)) continue;
|
|
2835
|
-
const groupScope =
|
|
2840
|
+
const groupScope = _chunkVCKGOXFIcjs.getRouteGroupScope.call(void 0, boundaryEntry.pattern);
|
|
2836
2841
|
if (groupScope !== null) {
|
|
2837
2842
|
if (page === void 0) page = this.matchPageRoute(_chunkXN2MB4QZcjs.splitRoutePath.call(void 0, normalizedPath));
|
|
2838
|
-
if (!
|
|
2843
|
+
if (!_chunkVCKGOXFIcjs.isInRouteGroupScope.call(void 0, page && getRouteEntryDirectory(page), groupScope)) continue;
|
|
2839
2844
|
}
|
|
2840
2845
|
const depth = boundaryEntry.route.segments.length;
|
|
2841
2846
|
const bestDepth = _nullishCoalesce(_optionalChain([bestMatch, 'optionalAccess', _145 => _145.route, 'access', _146 => _146.segments, 'access', _147 => _147.length]), () => ( -1));
|
|
2842
|
-
if (!bestMatch || depth > bestDepth || depth === bestDepth &&
|
|
2847
|
+
if (!bestMatch || depth > bestDepth || depth === bestDepth && _chunkVCKGOXFIcjs.getRouteDirectoryDepth.call(void 0, boundaryEntry.pattern) > _chunkVCKGOXFIcjs.getRouteDirectoryDepth.call(void 0, bestMatch.pattern)) {
|
|
2843
2848
|
bestMatch = boundaryEntry;
|
|
2844
2849
|
}
|
|
2845
2850
|
}
|
|
@@ -2876,7 +2881,7 @@ var RouteManager = class {
|
|
|
2876
2881
|
pattern: entry.pattern
|
|
2877
2882
|
}));
|
|
2878
2883
|
const i18n = this.getI18nConfig();
|
|
2879
|
-
const result = await
|
|
2884
|
+
const result = await _chunkIUBDMDZZcjs.collectSSGPages.call(void 0, routes, (filePath) => this.loadRouteModule(filePath), {
|
|
2880
2885
|
suggestStaticRendering: shouldSuggestStaticRenderingForI18n(i18n)
|
|
2881
2886
|
});
|
|
2882
2887
|
if (!i18n) {
|
|
@@ -2921,7 +2926,7 @@ var RouteManager = class {
|
|
|
2921
2926
|
async isRouteSSG(modulePath) {
|
|
2922
2927
|
try {
|
|
2923
2928
|
const mod = await this.loadRouteModule(modulePath);
|
|
2924
|
-
const rendering = await
|
|
2929
|
+
const rendering = await _chunkIUBDMDZZcjs.resolveRouteRenderingConfigFromFile.call(void 0, mod, modulePath);
|
|
2925
2930
|
return rendering.ssg;
|
|
2926
2931
|
} catch (e8) {
|
|
2927
2932
|
return false;
|
|
@@ -2933,7 +2938,7 @@ var RouteManager = class {
|
|
|
2933
2938
|
async hasRouteISR(modulePath) {
|
|
2934
2939
|
try {
|
|
2935
2940
|
const mod = await this.loadRouteModule(modulePath);
|
|
2936
|
-
const rendering = await
|
|
2941
|
+
const rendering = await _chunkIUBDMDZZcjs.resolveRouteRenderingConfigFromFile.call(void 0, mod, modulePath);
|
|
2937
2942
|
return rendering.ssg && typeof rendering.revalidate === "number" && rendering.revalidate > 0;
|
|
2938
2943
|
} catch (e9) {
|
|
2939
2944
|
return false;
|
|
@@ -2945,7 +2950,7 @@ var RouteManager = class {
|
|
|
2945
2950
|
async getRouteRevalidateInterval(modulePath) {
|
|
2946
2951
|
try {
|
|
2947
2952
|
const mod = await this.loadRouteModule(modulePath);
|
|
2948
|
-
const rendering = await
|
|
2953
|
+
const rendering = await _chunkIUBDMDZZcjs.resolveRouteRenderingConfigFromFile.call(void 0, mod, modulePath);
|
|
2949
2954
|
return rendering.revalidate;
|
|
2950
2955
|
} catch (e10) {
|
|
2951
2956
|
return void 0;
|
|
@@ -2953,7 +2958,7 @@ var RouteManager = class {
|
|
|
2953
2958
|
}
|
|
2954
2959
|
};
|
|
2955
2960
|
function getPageDirectoryField(route, pattern) {
|
|
2956
|
-
const directory =
|
|
2961
|
+
const directory = _chunkVCKGOXFIcjs.createRouteDirectoryPattern.call(void 0, route);
|
|
2957
2962
|
return directory === pattern ? {} : { directory };
|
|
2958
2963
|
}
|
|
2959
2964
|
function interpolateRedirectDestination(destination, params) {
|
|
@@ -4078,7 +4083,7 @@ function generateFarmIntegrationProviderClientCode(providers, root, rendererComp
|
|
|
4078
4083
|
let hasClerkProvider = false;
|
|
4079
4084
|
renderedProviders.forEach((provider, index) => {
|
|
4080
4085
|
let componentExpression = "null";
|
|
4081
|
-
if (
|
|
4086
|
+
if (_chunkWAPQWAE6cjs.isFarmIntegrationProviderComponentReference.call(void 0, provider.component)) {
|
|
4082
4087
|
const namespace = `FarmIntegrationProviderModule${index}`;
|
|
4083
4088
|
imports.push(
|
|
4084
4089
|
`import * as ${namespace} from ${JSON.stringify(resolveProviderModule(provider.component.module, root))};`
|
|
@@ -4135,7 +4140,7 @@ function generateFarmIntegrationProviderServerModules(providers, root, rendererC
|
|
|
4135
4140
|
const entries = [];
|
|
4136
4141
|
let needsMarkHelper = false;
|
|
4137
4142
|
providers.forEach((provider, index) => {
|
|
4138
|
-
if (!
|
|
4143
|
+
if (!_chunkWAPQWAE6cjs.isFarmIntegrationProviderComponentReference.call(void 0, provider.component)) return;
|
|
4139
4144
|
const namespace = `FarmServerIntegrationProviderModule${index}`;
|
|
4140
4145
|
imports.push(
|
|
4141
4146
|
`import * as ${namespace} from ${JSON.stringify(resolveProviderModule(provider.component.module, root))};`
|
|
@@ -4552,7 +4557,7 @@ function appendResponseVary(res, value) {
|
|
|
4552
4557
|
function renderI18nAlternateLinks(requestPath, snapshot, options) {
|
|
4553
4558
|
if (snapshot.routing === "none") return "";
|
|
4554
4559
|
const url = new URL(requestPath, "http://farm.local");
|
|
4555
|
-
return
|
|
4560
|
+
return _chunkVCKGOXFIcjs.renderFarmLocaleAlternateLinks.call(void 0, url.pathname, snapshot, options);
|
|
4556
4561
|
}
|
|
4557
4562
|
var PPR_REFRESH_MAX_ATTEMPTS = 3;
|
|
4558
4563
|
function createPPRRefreshScript() {
|
|
@@ -4568,7 +4573,7 @@ function rendererRenderOptions() {
|
|
|
4568
4573
|
}
|
|
4569
4574
|
var FARM_DEV_EARLY_CLIENT_SCRIPT = `<script type="module" async src="/@farm/client.js"></script>`;
|
|
4570
4575
|
function createDocumentFooter(options) {
|
|
4571
|
-
return
|
|
4576
|
+
return `${options.closeRoot === false ? "" : "</div>"}
|
|
4572
4577
|
${options.suspenseRevealFallback}
|
|
4573
4578
|
${options.refreshPPR ? createPPRRefreshScript() : ""}
|
|
4574
4579
|
${options.deferredHydrationScript || ""}
|
|
@@ -4709,7 +4714,7 @@ var ServerRenderer = class {
|
|
|
4709
4714
|
if (_optionalChain([this, 'access', _159 => _159.config, 'access', _160 => _160.notFound, 'optionalAccess', _161 => _161.component, 'optionalAccess', _162 => _162.trim, 'call', _163 => _163()])) {
|
|
4710
4715
|
resolveFarmNotFoundComponentPath(this.config, _chunk5Y2P454Ocjs.getFarmAppDirectories.call(void 0, this.config));
|
|
4711
4716
|
}
|
|
4712
|
-
const loaded = _chunkRD623KW4cjs.isReactRenderer.call(void 0, this.config.renderer) ? await import("./renderer/react/server.cjs") : this.viteServer ? await
|
|
4717
|
+
const loaded = _chunkRD623KW4cjs.isReactRenderer.call(void 0, this.config.renderer) ? await import("./renderer/react/server.cjs") : this.viteServer ? await _chunkJYNNIGQOcjs.loadFarmDevModule.call(void 0, this.viteServer, this.config.renderer.server) : await import(_url.pathToFileURL.call(void 0,
|
|
4713
4718
|
_chunkRD623KW4cjs.resolveFarmRendererModule.call(void 0,
|
|
4714
4719
|
this.config.root || process.cwd(),
|
|
4715
4720
|
this.config.renderer.server
|
|
@@ -4751,7 +4756,7 @@ var ServerRenderer = class {
|
|
|
4751
4756
|
`Renderer \`${this.config.renderer.name}\` does not support \`appSetup\`: its server module must export configureApp().`
|
|
4752
4757
|
);
|
|
4753
4758
|
}
|
|
4754
|
-
const setupModule = this.viteServer ? await
|
|
4759
|
+
const setupModule = this.viteServer ? await _chunkJYNNIGQOcjs.loadFarmDevModule.call(void 0, this.viteServer, appSetupPath) : await import(_url.pathToFileURL.call(void 0, appSetupPath).href);
|
|
4755
4760
|
if (setupModule === this.appliedAppSetupModule) return;
|
|
4756
4761
|
this.appliedAppSetupModule = setupModule;
|
|
4757
4762
|
configureApp(setupModule.default);
|
|
@@ -4998,7 +5003,7 @@ var ServerRenderer = class {
|
|
|
4998
5003
|
* Check if a path should be served from SSG cache
|
|
4999
5004
|
*/
|
|
5000
5005
|
async shouldServeSSG(pathname) {
|
|
5001
|
-
const ssgPage =
|
|
5006
|
+
const ssgPage = _chunkIUBDMDZZcjs.matchSSGPage.call(void 0, pathname, this.ssgManifest);
|
|
5002
5007
|
if (!ssgPage) return null;
|
|
5003
5008
|
const cached = await this.getCachedSSGPage(pathname);
|
|
5004
5009
|
if (cached && await this.dataCache.isStaleAsync(cached)) {
|
|
@@ -5376,9 +5381,9 @@ var ServerRenderer = class {
|
|
|
5376
5381
|
actionRequest = _chunkHNAISJFDcjs.createWebRequestFromFarmRequest.call(void 0, req, {
|
|
5377
5382
|
trustProxy: _optionalChain([this, 'access', _188 => _188.config, 'access', _189 => _189.server, 'optionalAccess', _190 => _190.trustProxy])
|
|
5378
5383
|
});
|
|
5379
|
-
const actionResponse = await
|
|
5384
|
+
const actionResponse = await _chunkNJVFPJ2Ycjs.handleFarmFormActionRequest.call(void 0,
|
|
5380
5385
|
actionRequest,
|
|
5381
|
-
|
|
5386
|
+
_chunk6QA2SXVHcjs.resolveServerActionsConfig.call(void 0, this.config.serverActions)
|
|
5382
5387
|
);
|
|
5383
5388
|
if (actionResponse) {
|
|
5384
5389
|
await _chunkZ5MZDFX4cjs.sendWebResponse.call(void 0, res, actionResponse);
|
|
@@ -5448,7 +5453,7 @@ var ServerRenderer = class {
|
|
|
5448
5453
|
throw error;
|
|
5449
5454
|
}
|
|
5450
5455
|
}
|
|
5451
|
-
const renderingConfig = await
|
|
5456
|
+
const renderingConfig = await _chunkIUBDMDZZcjs.resolveRouteRenderingConfigFromFile.call(void 0,
|
|
5452
5457
|
routeModule,
|
|
5453
5458
|
route.modulePath,
|
|
5454
5459
|
{ experimentalPPR: _optionalChain([this, 'access', _196 => _196.config, 'access', _197 => _197.experimental, 'optionalAccess', _198 => _198.ppr]) === true }
|
|
@@ -5882,7 +5887,7 @@ var ServerRenderer = class {
|
|
|
5882
5887
|
}
|
|
5883
5888
|
}
|
|
5884
5889
|
_chunkEVIWKPJVcjs.emitFarmEvent.call(void 0, { type: "render.error", route: pathname, error });
|
|
5885
|
-
const errorStatus =
|
|
5890
|
+
const errorStatus = _chunkVCKGOXFIcjs.resolveDefaultErrorStatus.call(void 0, error);
|
|
5886
5891
|
if (pprRefreshRoute) {
|
|
5887
5892
|
_chunkEVIWKPJVcjs.emitFarmEvent.call(void 0, {
|
|
5888
5893
|
type: "ppr.refresh.error",
|
|
@@ -5918,7 +5923,7 @@ var ServerRenderer = class {
|
|
|
5918
5923
|
}
|
|
5919
5924
|
}
|
|
5920
5925
|
async wrapWithIntegrationProviders(element) {
|
|
5921
|
-
const providers =
|
|
5926
|
+
const providers = _chunkWAPQWAE6cjs.getIntegrationProviders.call(void 0, this.config.integrations);
|
|
5922
5927
|
let wrapped = element;
|
|
5923
5928
|
for (let i = providers.length - 1; i >= 0; i--) {
|
|
5924
5929
|
const provider = providers[i];
|
|
@@ -5936,13 +5941,13 @@ var ServerRenderer = class {
|
|
|
5936
5941
|
}
|
|
5937
5942
|
let ProviderComponent;
|
|
5938
5943
|
let providerSourceModule;
|
|
5939
|
-
if (
|
|
5944
|
+
if (_chunkWAPQWAE6cjs.isFarmIntegrationProviderComponentReference.call(void 0, provider.component)) {
|
|
5940
5945
|
providerSourceModule = provider.component.module;
|
|
5941
5946
|
const providerModuleId = provider.component.module.startsWith(".") ? _chunkXN2MB4QZcjs.toViteModuleId.call(void 0,
|
|
5942
5947
|
path9.resolve(this.config.root, provider.component.module),
|
|
5943
5948
|
this.config.root
|
|
5944
5949
|
) : provider.component.module;
|
|
5945
|
-
const providerModule = this.viteServer ? await
|
|
5950
|
+
const providerModule = this.viteServer ? await _chunkJYNNIGQOcjs.loadFarmDevModule.call(void 0, this.viteServer, providerModuleId) : await importRuntimeModule(
|
|
5946
5951
|
provider.component.module.startsWith(".") ? _url.pathToFileURL.call(void 0, path9.resolve(this.config.root, provider.component.module)).href : provider.component.module
|
|
5947
5952
|
);
|
|
5948
5953
|
ProviderComponent = providerModule[provider.component.export || "default"];
|
|
@@ -6110,7 +6115,7 @@ var ServerRenderer = class {
|
|
|
6110
6115
|
origin: url.origin,
|
|
6111
6116
|
readMarkdown: llmsContext.markdown
|
|
6112
6117
|
}) : value;
|
|
6113
|
-
const response =
|
|
6118
|
+
const response = _chunkVCKGOXFIcjs.createFarmMetadataRouteResponse.call(void 0, match.metadata.kind, body, routeModule, {
|
|
6114
6119
|
method,
|
|
6115
6120
|
request: request2
|
|
6116
6121
|
});
|
|
@@ -6146,7 +6151,7 @@ var ServerRenderer = class {
|
|
|
6146
6151
|
}) : context.defaults;
|
|
6147
6152
|
await _chunkZ5MZDFX4cjs.sendWebResponse.call(void 0,
|
|
6148
6153
|
res,
|
|
6149
|
-
|
|
6154
|
+
_chunkVCKGOXFIcjs.createFarmMetadataRouteResponse.call(void 0,
|
|
6150
6155
|
kind,
|
|
6151
6156
|
body,
|
|
6152
6157
|
{ revalidate: config.revalidate },
|
|
@@ -6181,7 +6186,7 @@ var ServerRenderer = class {
|
|
|
6181
6186
|
});
|
|
6182
6187
|
await _chunkZ5MZDFX4cjs.sendWebResponse.call(void 0,
|
|
6183
6188
|
res,
|
|
6184
|
-
|
|
6189
|
+
_chunkVCKGOXFIcjs.createFarmMetadataRouteResponse.call(void 0, "robots", robots, {}, { method: req.method })
|
|
6185
6190
|
);
|
|
6186
6191
|
} catch (error) {
|
|
6187
6192
|
_chunkXN2MB4QZcjs.logger.error(`Generated robots.txt failed: ${error}`);
|
|
@@ -6225,7 +6230,7 @@ var ServerRenderer = class {
|
|
|
6225
6230
|
});
|
|
6226
6231
|
await _chunkZ5MZDFX4cjs.sendWebResponse.call(void 0,
|
|
6227
6232
|
res,
|
|
6228
|
-
|
|
6233
|
+
_chunkVCKGOXFIcjs.createFarmMetadataRouteResponse.call(void 0, "sitemap", sitemap, {}, { method: req.method })
|
|
6229
6234
|
);
|
|
6230
6235
|
} catch (error) {
|
|
6231
6236
|
_chunkXN2MB4QZcjs.logger.error(`Generated sitemap.xml failed: ${error}`);
|
|
@@ -6254,7 +6259,7 @@ var ServerRenderer = class {
|
|
|
6254
6259
|
getAgentListedRoutes() {
|
|
6255
6260
|
const guards = { config: this.config, middlewareRoutes: _nullishCoalesce(_optionalChain([this, 'access', _253 => _253.middlewareRoutes, 'optionalCall', _254 => _254()]), () => ( [])) };
|
|
6256
6261
|
return [...this.routeManager.getRoutes()].filter(
|
|
6257
|
-
([pattern]) => !pattern.includes("[") && !
|
|
6262
|
+
([pattern]) => !pattern.includes("[") && !_chunkVCKGOXFIcjs.farmPathGuardCoversPage.call(void 0, guards, pattern)
|
|
6258
6263
|
);
|
|
6259
6264
|
}
|
|
6260
6265
|
/**
|
|
@@ -6268,7 +6273,7 @@ var ServerRenderer = class {
|
|
|
6268
6273
|
if (this.routeManager.matchRoute(_chunkSBABQKPTcjs.FARM_DEFAULT_MCP_PATH).route) return void 0;
|
|
6269
6274
|
_nullishCoalesce(this.defaultMCPServer, () => ( (this.defaultMCPServer = _chunkSBABQKPTcjs.createFarmDefaultMCPServer.call(void 0,
|
|
6270
6275
|
readAppPackageIdentity(this.config.root),
|
|
6271
|
-
|
|
6276
|
+
_chunkRHOR2J6Vcjs.FARM_VERSION
|
|
6272
6277
|
))));
|
|
6273
6278
|
return _chunkSBABQKPTcjs.resolveFarmDefaultMCPServer.call(void 0, this.defaultMCPServer);
|
|
6274
6279
|
}
|
|
@@ -6350,7 +6355,7 @@ var ServerRenderer = class {
|
|
|
6350
6355
|
pages,
|
|
6351
6356
|
config,
|
|
6352
6357
|
rootMetadata,
|
|
6353
|
-
mcp: _optionalChain([this, 'access', _266 => _266.config, 'access', _267 => _267.agent, 'optionalAccess', _268 => _268.aiCatalog]) === false ? [] :
|
|
6358
|
+
mcp: _optionalChain([this, 'access', _266 => _266.config, 'access', _267 => _267.agent, 'optionalAccess', _268 => _268.aiCatalog]) === false ? [] : _chunkGOOK2J2Wcjs.listFarmMCPLlmsTxtLinks.call(void 0, origin, {
|
|
6354
6359
|
basePath: this.config.basePath,
|
|
6355
6360
|
apiServerBasePath: _chunkB5BBTPJQcjs.resolveFarmAPIServerBasePath.call(void 0,
|
|
6356
6361
|
_chunkIWFV5ZEDcjs.normalizeFarmAPIConfig.call(void 0,
|
|
@@ -6423,7 +6428,7 @@ var ServerRenderer = class {
|
|
|
6423
6428
|
}
|
|
6424
6429
|
async writeMetadataImageResponse(req, res, value, imageModule) {
|
|
6425
6430
|
const ifNoneMatch = req.headers["if-none-match"];
|
|
6426
|
-
const response = await
|
|
6431
|
+
const response = await _chunkYB44NKC2cjs.createFarmMetadataImageResponse.call(void 0, value, imageModule, {
|
|
6427
6432
|
method: req.method,
|
|
6428
6433
|
ifNoneMatch: Array.isArray(ifNoneMatch) ? ifNoneMatch[0] : ifNoneMatch,
|
|
6429
6434
|
renderer: _chunkRD623KW4cjs.isReactRenderer.call(void 0, this.config.renderer) ? void 0 : this.rendererRuntime
|
|
@@ -6451,7 +6456,7 @@ var ServerRenderer = class {
|
|
|
6451
6456
|
"Cache-Control",
|
|
6452
6457
|
isVersioned ? "public, max-age=31536000, immutable" : "public, max-age=0, must-revalidate"
|
|
6453
6458
|
);
|
|
6454
|
-
if (
|
|
6459
|
+
if (_chunkLIFUPCXWcjs.matchesFarmIfNoneMatch.call(void 0, req.headers["if-none-match"], etag)) {
|
|
6455
6460
|
res.statusCode = 304;
|
|
6456
6461
|
res.end();
|
|
6457
6462
|
return;
|
|
@@ -6615,7 +6620,7 @@ window.__FARM_ISLAND_STRATEGY__ = ${JSON.stringify(req.__FARM_ISLAND_STRATEGY__
|
|
|
6615
6620
|
window.__FARM_PAGE_MODULE__ = ${JSON.stringify(relativePath)};
|
|
6616
6621
|
window.__FARM_LOADING_MODULE__ = ${JSON.stringify(req.__FARM_LOADING_MODULE_PATH__ || null)};
|
|
6617
6622
|
window.__FARM_MANIFEST__ = ${JSON.stringify(clientManifest)};
|
|
6618
|
-
window.__FARM_INTEGRATION_API_MANIFEST__ = ${JSON.stringify(
|
|
6623
|
+
window.__FARM_INTEGRATION_API_MANIFEST__ = ${JSON.stringify(_chunkWAPQWAE6cjs.getRegisteredIntegrationAPIManifest.call(void 0, ))};
|
|
6619
6624
|
window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0, ) ? serializeInlineValue(_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0, )) : "null"};
|
|
6620
6625
|
</script>`);
|
|
6621
6626
|
const deferredScript = farmScripts(createDeferredHydrationScript(deferredProps.records));
|
|
@@ -6652,19 +6657,19 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
6652
6657
|
i18nSnapshot,
|
|
6653
6658
|
this.getI18nAlternateOptions(req, req.__FARM_METADATA__)
|
|
6654
6659
|
) : "";
|
|
6655
|
-
const themeDocument =
|
|
6660
|
+
const themeDocument = _chunkVCKGOXFIcjs.createFarmThemeDocumentParts.call(void 0,
|
|
6656
6661
|
this.config.theme,
|
|
6657
6662
|
this.config.basePath,
|
|
6658
6663
|
_chunk4ZJ5C7UJcjs.getTheme.call(void 0, )
|
|
6659
6664
|
);
|
|
6660
6665
|
themeDocument.head = farmScripts(themeDocument.head);
|
|
6661
|
-
const fullDocument =
|
|
6666
|
+
const fullDocument = _chunkVCKGOXFIcjs.extractFarmFullDocument.call(void 0, content);
|
|
6662
6667
|
let html;
|
|
6663
6668
|
if (fullDocument) {
|
|
6664
6669
|
const shouldReplaceLayoutTitle = hasExplicitTitle || rendererHasTitle;
|
|
6665
|
-
const documentHtml = shouldReplaceLayoutTitle ?
|
|
6666
|
-
const effectiveRendererHead = hasExplicitTitle ?
|
|
6667
|
-
html =
|
|
6670
|
+
const documentHtml = shouldReplaceLayoutTitle ? _chunkVCKGOXFIcjs.removeFarmDocumentTitles.call(void 0, fullDocument) : fullDocument;
|
|
6671
|
+
const effectiveRendererHead = hasExplicitTitle ? _chunkVCKGOXFIcjs.removeFarmDocumentTitles.call(void 0, rendererHead) : rendererHead;
|
|
6672
|
+
html = _chunkVCKGOXFIcjs.composeFarmFullDocument.call(void 0, documentHtml, {
|
|
6668
6673
|
fallbackIcon: !hasFavicon,
|
|
6669
6674
|
viewport: viewportTags,
|
|
6670
6675
|
htmlAttributes: `${i18nSnapshot ? ` lang="${escapeHtmlAttribute2(i18nSnapshot.locale)}" dir="${escapeHtmlAttribute2(i18nSnapshot.direction)}"` : ""}${themeDocument.attributes}`,
|
|
@@ -6770,7 +6775,8 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
6770
6775
|
async renderWithSSR(element, req, res, clearMiddlewareData, options = {}) {
|
|
6771
6776
|
const renderToPipeableStream = this.rendererRuntime.renderToPipeableStream;
|
|
6772
6777
|
const fullDocumentRouteKey = options.observabilityRoute || req.__FARM_ROUTE__ || req.url || "/";
|
|
6773
|
-
|
|
6778
|
+
const streamDocument = fullDocumentRoutes.has(fullDocumentRouteKey) || await this.rootLayoutRendersDocument();
|
|
6779
|
+
if (!renderToPipeableStream || _chunkWJFFPXCVcjs._isFarmMarkdownPageCheck.call(void 0, _optionalChain([req, 'access', _293 => _293.headers, 'optionalAccess', _294 => _294[_chunkWJFFPXCVcjs.FARM_MARKDOWN_PAGE_CHECK_HEADER]])) || streamDocument && (options.captureStaticShell || !_chunkRD623KW4cjs.isReactRenderer.call(void 0, this.config.renderer))) {
|
|
6774
6780
|
return this.renderBufferedSSR(element, req, res, clearMiddlewareData, options);
|
|
6775
6781
|
}
|
|
6776
6782
|
return new Promise((resolve3, reject) => {
|
|
@@ -6874,7 +6880,7 @@ window.__FARM_LOADING_MODULE__ = ${JSON.stringify(
|
|
|
6874
6880
|
req.__FARM_LOADING_MODULE_PATH__ || null
|
|
6875
6881
|
)};
|
|
6876
6882
|
window.__FARM_MANIFEST__ = ${JSON.stringify(clientManifest)};
|
|
6877
|
-
window.__FARM_INTEGRATION_API_MANIFEST__ = ${JSON.stringify(
|
|
6883
|
+
window.__FARM_INTEGRATION_API_MANIFEST__ = ${JSON.stringify(_chunkWAPQWAE6cjs.getRegisteredIntegrationAPIManifest.call(void 0, ))};
|
|
6878
6884
|
window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0, ) ? serializeInlineValue(_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0, )) : "null"};
|
|
6879
6885
|
</script>`;
|
|
6880
6886
|
const hydrationClickQueueScript = isClientComponent || req.__FARM_SHOULD_HYDRATE__ === true || req.__FARM_HAS_HYDRATABLE_ROUTE_SLOTS__ === true ? createPreHydrationClickQueueScript() : "";
|
|
@@ -6882,6 +6888,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
6882
6888
|
title,
|
|
6883
6889
|
tags: metaTags,
|
|
6884
6890
|
hasFavicon,
|
|
6891
|
+
hasExplicitTitle,
|
|
6885
6892
|
viewport: viewportTags
|
|
6886
6893
|
} = _chunk6IOZPJ3Icjs.renderMetadataHead.call(void 0, req.__FARM_METADATA__, {
|
|
6887
6894
|
pathname: getFarmMetadataPathname(req),
|
|
@@ -6894,7 +6901,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
6894
6901
|
this.getI18nAlternateOptions(req, req.__FARM_METADATA__)
|
|
6895
6902
|
) : "";
|
|
6896
6903
|
const fontHead = renderFarmFontDevHead(this.config.root || process.cwd());
|
|
6897
|
-
const themeDocument =
|
|
6904
|
+
const themeDocument = _chunkVCKGOXFIcjs.createFarmThemeDocumentParts.call(void 0,
|
|
6898
6905
|
this.config.theme,
|
|
6899
6906
|
this.config.basePath,
|
|
6900
6907
|
_chunk4ZJ5C7UJcjs.getTheme.call(void 0, )
|
|
@@ -6947,25 +6954,70 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
6947
6954
|
<body class="">${earlyClient ? `
|
|
6948
6955
|
${FARM_DEV_EARLY_CLIENT_SCRIPT}` : ""}
|
|
6949
6956
|
<div id="root">`;
|
|
6950
|
-
const securedShell = stampDocumentHTML(shell);
|
|
6951
|
-
|
|
6952
|
-
|
|
6957
|
+
const securedShell = streamDocument ? "" : stampDocumentHTML(shell);
|
|
6958
|
+
if (securedShell) {
|
|
6959
|
+
htmlParts.push(securedShell);
|
|
6960
|
+
_optionalChain([staticShellParts, 'optionalAccess', _300 => _300.push, 'call', _301 => _301(securedShell)]);
|
|
6961
|
+
}
|
|
6962
|
+
const withEarlyClient = (document) => earlyClient ? {
|
|
6963
|
+
...document,
|
|
6964
|
+
html: document.html.replace(
|
|
6965
|
+
/<body\b[^>]*>/i,
|
|
6966
|
+
(open) => `${open}
|
|
6967
|
+
${stampDocumentHTML(FARM_DEV_EARLY_CLIENT_SCRIPT)}`
|
|
6968
|
+
)
|
|
6969
|
+
} : document;
|
|
6970
|
+
const documentTransform = streamDocument ? _chunkVCKGOXFIcjs.createFarmStreamedDocumentTransform.call(void 0,
|
|
6971
|
+
(opening) => withEarlyClient(
|
|
6972
|
+
_chunkVCKGOXFIcjs.openFarmStreamedDocument.call(void 0,
|
|
6973
|
+
hasExplicitTitle ? _chunkVCKGOXFIcjs.removeFarmDocumentTitles.call(void 0, opening) : opening,
|
|
6974
|
+
{
|
|
6975
|
+
fallbackIcon: !hasFavicon,
|
|
6976
|
+
viewport: viewportTags,
|
|
6977
|
+
htmlAttributes: `${i18nSnapshot ? ` lang="${escapeHtmlAttribute2(i18nSnapshot.locale)}" dir="${escapeHtmlAttribute2(i18nSnapshot.direction)}"` : ""}${themeDocument.attributes}`,
|
|
6978
|
+
replaceHtmlAttributes: [
|
|
6979
|
+
...i18nSnapshot ? ["lang", "dir"] : [],
|
|
6980
|
+
...themeDocument.attributes ? ["data-theme"] : []
|
|
6981
|
+
],
|
|
6982
|
+
headAssets: stampDocumentHTML(
|
|
6983
|
+
[
|
|
6984
|
+
themeDocument.head,
|
|
6985
|
+
`<meta name="farm-deployment-id" content="${escapeHtmlAttribute2(deploymentId)}">`,
|
|
6986
|
+
hasExplicitTitle ? `<title>${title}</title>` : "",
|
|
6987
|
+
metaTags,
|
|
6988
|
+
i18nAlternateTags,
|
|
6989
|
+
fontHead,
|
|
6990
|
+
globalStylesheetLink,
|
|
6991
|
+
...devStyleLinks,
|
|
6992
|
+
`<script type="module" src="/@vite/client"></script>`,
|
|
6993
|
+
propsScript,
|
|
6994
|
+
hydrationClickQueueScript
|
|
6995
|
+
].filter(Boolean).join("\n ")
|
|
6996
|
+
),
|
|
6997
|
+
// The footer follows the streamed body.
|
|
6998
|
+
bodyFooter: ""
|
|
6999
|
+
}
|
|
7000
|
+
)
|
|
7001
|
+
),
|
|
7002
|
+
stampDocumentHTML(shell)
|
|
7003
|
+
) : void 0;
|
|
6953
7004
|
let firstChunk = true;
|
|
6954
7005
|
let checkedFullDocument = false;
|
|
6955
7006
|
let documentPrefix = "";
|
|
6956
7007
|
const cspNonceRewriter = cspNonce ? _chunk6JHZPB52cjs.createFarmCspNonceRewriter.call(void 0, cspNonce) : void 0;
|
|
6957
7008
|
const cspStreamDecoder = cspNonceRewriter ? new TextDecoder() : void 0;
|
|
6958
|
-
const recordRenderedChunk = (chunkText) => {
|
|
6959
|
-
if (!
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
const prefix = _chunkC2R5RVLAcjs.classifyFarmDocumentPrefix.call(void 0, documentPrefix);
|
|
7009
|
+
const recordRenderedChunk = (chunkText, renderedText = chunkText) => {
|
|
7010
|
+
if (!checkedFullDocument && renderedText) {
|
|
7011
|
+
documentPrefix += renderedText;
|
|
7012
|
+
const prefix = _chunkVCKGOXFIcjs.classifyFarmDocumentPrefix.call(void 0, documentPrefix);
|
|
6963
7013
|
if (prefix !== "pending") {
|
|
6964
7014
|
checkedFullDocument = true;
|
|
6965
7015
|
documentPrefix = "";
|
|
6966
7016
|
if (prefix === "document") fullDocumentRoutes.add(fullDocumentRouteKey);
|
|
7017
|
+
else fullDocumentRoutes.delete(fullDocumentRouteKey);
|
|
6967
7018
|
}
|
|
6968
7019
|
}
|
|
7020
|
+
if (!chunkText) return;
|
|
6969
7021
|
htmlParts.push(chunkText);
|
|
6970
7022
|
if (staticShellParts && findStaticShellBoundary && !staticShellClosed) {
|
|
6971
7023
|
const dynamicIndex = findStaticShellBoundary(chunkText);
|
|
@@ -6991,12 +7043,16 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
6991
7043
|
}
|
|
6992
7044
|
const chunkText = Buffer.isBuffer(chunk) ? cspStreamDecoder ? cspStreamDecoder.decode(chunk, { stream: true }) : chunk.toString() : String(chunk);
|
|
6993
7045
|
const securedChunkText = cspNonceRewriter ? cspNonceRewriter.write(chunkText) : chunkText;
|
|
6994
|
-
|
|
7046
|
+
const outputText = documentTransform ? documentTransform.write(securedChunkText) : securedChunkText;
|
|
7047
|
+
recordRenderedChunk(outputText, securedChunkText);
|
|
6995
7048
|
const onWrite = () => {
|
|
6996
7049
|
if (typeof res.flush === "function") res.flush();
|
|
6997
7050
|
callback();
|
|
6998
7051
|
};
|
|
6999
|
-
if (
|
|
7052
|
+
if (documentTransform) {
|
|
7053
|
+
if (outputText) res.write(outputText, onWrite);
|
|
7054
|
+
else callback();
|
|
7055
|
+
} else if (cspNonceRewriter) res.write(securedChunkText, onWrite);
|
|
7000
7056
|
else res.write(chunk, encoding, onWrite);
|
|
7001
7057
|
},
|
|
7002
7058
|
final: (callback) => {
|
|
@@ -7005,7 +7061,8 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
7005
7061
|
lateNavigationError = null;
|
|
7006
7062
|
createLateNavigationRecovery(navigationError).then(
|
|
7007
7063
|
(recovery) => {
|
|
7008
|
-
const
|
|
7064
|
+
const filtered = filterDocumentHTML(recovery);
|
|
7065
|
+
const secured = documentTransform ? documentTransform.write(filtered) : filtered;
|
|
7009
7066
|
htmlParts.push(secured);
|
|
7010
7067
|
res.write(secured);
|
|
7011
7068
|
finishStream(callback);
|
|
@@ -7022,16 +7079,24 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
7022
7079
|
});
|
|
7023
7080
|
const finishStream = (callback) => {
|
|
7024
7081
|
if (cspNonceRewriter) {
|
|
7025
|
-
const
|
|
7026
|
-
|
|
7082
|
+
const rewritten = cspNonceRewriter.write(cspStreamDecoder.decode(), true);
|
|
7083
|
+
const tail = documentTransform ? documentTransform.write(rewritten) : rewritten;
|
|
7084
|
+
recordRenderedChunk(tail, rewritten);
|
|
7027
7085
|
if (tail) res.write(tail);
|
|
7028
7086
|
}
|
|
7087
|
+
const documentEnd = _optionalChain([documentTransform, 'optionalAccess', _304 => _304.end, 'call', _305 => _305()]);
|
|
7088
|
+
if (_optionalChain([documentEnd, 'optionalAccess', _306 => _306.text])) {
|
|
7089
|
+
recordRenderedChunk(documentEnd.text, "");
|
|
7090
|
+
res.write(documentEnd.text);
|
|
7091
|
+
}
|
|
7029
7092
|
const suspenseRevealFallback = `<script>(function(){function moveFragment(srcId,placeholderId){var src=document.getElementById(srcId),ph=document.getElementById(placeholderId);if(!src||!ph||!ph.parentNode)return false;while(src.firstChild)ph.parentNode.insertBefore(src.firstChild,ph);ph.parentNode.removeChild(ph);if(src.parentNode)src.parentNode.removeChild(src);return true}function revealBoundary(boundaryId,sectionId){var boundary=document.getElementById(boundaryId),section=document.getElementById(sectionId);if(!boundary||!section||!boundary.parentNode)return false;var start=boundary.previousSibling;if(!start||start.nodeType!==8)return false;var parent=boundary.parentNode;var node=boundary;var depth=0;while(node){if(node.nodeType===8){var data=node.data;if(data==="/$"||data==="/&"){if(depth===0)break;depth--;}else if(data==="$"||data==="$?"||data==="$~"||data==="$!"||data==="&"){depth++;}}var next=node.nextSibling;parent.removeChild(node);node=next;}while(section.firstChild)parent.insertBefore(section.firstChild,node);if(section.parentNode)section.parentNode.removeChild(section);start.data="$";return true}var tries=0;var timer=setInterval(function(){var changed=false;document.querySelectorAll('div[id^="S:"]').forEach(function(section){var suffix=section.id.slice(2);changed=moveFragment('S:'+suffix,'P:'+suffix)||changed;});document.querySelectorAll('template[id^="B:"]').forEach(function(boundary){var suffix=boundary.id.slice(2);changed=revealBoundary('B:'+suffix,'S:'+suffix)||changed;});tries++;if(tries>80||(!document.querySelector('template[id^="B:"]')&&!document.querySelector('template[id^="P:"]'))){clearInterval(timer);}},50);})();</script>`;
|
|
7030
7093
|
const footer = stampDocumentHTML(
|
|
7031
7094
|
createDocumentFooter({
|
|
7032
7095
|
suspenseRevealFallback,
|
|
7033
7096
|
deferredHydrationScript: createDeferredHydrationScript(deferredProps.records),
|
|
7034
|
-
earlyClient
|
|
7097
|
+
earlyClient,
|
|
7098
|
+
// A full document: Farm's #root closes only where Farm opened it.
|
|
7099
|
+
..._optionalChain([documentEnd, 'optionalAccess', _307 => _307.document]) ? { closeRoot: documentEnd.rootOpened } : {}
|
|
7035
7100
|
})
|
|
7036
7101
|
);
|
|
7037
7102
|
htmlParts.push(footer);
|
|
@@ -7135,7 +7200,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
7135
7200
|
return await this.routeManager.loadRouteModule(notFoundPath);
|
|
7136
7201
|
}
|
|
7137
7202
|
async loadNotFoundComponent() {
|
|
7138
|
-
return await _asyncNullishCoalesce(await _asyncOptionalChain([(await this.loadNotFoundModule()), 'optionalAccess', async
|
|
7203
|
+
return await _asyncNullishCoalesce(await _asyncOptionalChain([(await this.loadNotFoundModule()), 'optionalAccess', async _308 => _308.default]), async () => ( null));
|
|
7139
7204
|
}
|
|
7140
7205
|
/** The not-found document's head: layout and not-found metadata, as production renders it. */
|
|
7141
7206
|
async notFoundMetadataHead(layoutModule, notFoundModule) {
|
|
@@ -7158,13 +7223,13 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
7158
7223
|
*/
|
|
7159
7224
|
async createLateNavigationRecoveryHTML(req, error) {
|
|
7160
7225
|
if (_chunk7JUIK547cjs.isFarmRedirectError.call(void 0, error)) {
|
|
7161
|
-
return
|
|
7226
|
+
return _chunkVCKGOXFIcjs.createLateRedirectRecovery.call(void 0,
|
|
7162
7227
|
this.localizeRedirectUrl(_chunk7JUIK547cjs.getFarmRedirectError.call(void 0, error).url),
|
|
7163
7228
|
this.getCspNonce(req) || ""
|
|
7164
7229
|
);
|
|
7165
7230
|
}
|
|
7166
7231
|
const pathname = _chunkHNAISJFDcjs.resolveFarmRequestURL.call(void 0, req, {
|
|
7167
|
-
trustProxy: _optionalChain([this, 'access',
|
|
7232
|
+
trustProxy: _optionalChain([this, 'access', _309 => _309.config, 'access', _310 => _310.server, 'optionalAccess', _311 => _311.trustProxy])
|
|
7168
7233
|
}).pathname;
|
|
7169
7234
|
let content = this.defaultNotFoundContent();
|
|
7170
7235
|
const NotFoundComponent = await this.loadNotFoundComponent();
|
|
@@ -7180,12 +7245,12 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
7180
7245
|
_chunkXN2MB4QZcjs.logger.warn(`not-found page could not render outside its layout, using Farm's: ${error2}`);
|
|
7181
7246
|
}
|
|
7182
7247
|
}
|
|
7183
|
-
return
|
|
7248
|
+
return _chunkVCKGOXFIcjs.createLateNotFoundRecovery.call(void 0, content, this.getCspNonce(req) || "");
|
|
7184
7249
|
}
|
|
7185
7250
|
async render404(req, res) {
|
|
7186
7251
|
res.statusCode = 404;
|
|
7187
7252
|
const pathname = _chunkHNAISJFDcjs.resolveFarmRequestURL.call(void 0, req, {
|
|
7188
|
-
trustProxy: _optionalChain([this, 'access',
|
|
7253
|
+
trustProxy: _optionalChain([this, 'access', _312 => _312.config, 'access', _313 => _313.server, 'optionalAccess', _314 => _314.trustProxy])
|
|
7189
7254
|
}).pathname;
|
|
7190
7255
|
const acceptHeader = req.headers.accept;
|
|
7191
7256
|
const accept = Array.isArray(acceptHeader) ? acceptHeader.join(",") : acceptHeader;
|
|
@@ -7213,9 +7278,9 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
7213
7278
|
);
|
|
7214
7279
|
if (notFoundPath) {
|
|
7215
7280
|
const notFoundModule = await this.loadNotFoundModule();
|
|
7216
|
-
const NotFoundComponent = _nullishCoalesce(_optionalChain([notFoundModule, 'optionalAccess',
|
|
7281
|
+
const NotFoundComponent = _nullishCoalesce(_optionalChain([notFoundModule, 'optionalAccess', _315 => _315.default]), () => ( null));
|
|
7217
7282
|
if (NotFoundComponent) {
|
|
7218
|
-
const LayoutComponent = _nullishCoalesce(_optionalChain([layoutModule, 'optionalAccess',
|
|
7283
|
+
const LayoutComponent = _nullishCoalesce(_optionalChain([layoutModule, 'optionalAccess', _316 => _316.default]), () => ( null));
|
|
7219
7284
|
let element = this.rendererRuntime.createElement(NotFoundComponent, { pathname });
|
|
7220
7285
|
if (LayoutComponent) {
|
|
7221
7286
|
element = this.rendererRuntime.createElement(LayoutComponent, {
|
|
@@ -7255,23 +7320,23 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
7255
7320
|
res.statusCode = statusCode;
|
|
7256
7321
|
const isDev = process.env.NODE_ENV === "development";
|
|
7257
7322
|
const requestUrl = _chunkHNAISJFDcjs.resolveFarmRequestURL.call(void 0, req, {
|
|
7258
|
-
trustProxy: _optionalChain([this, 'access',
|
|
7323
|
+
trustProxy: _optionalChain([this, 'access', _317 => _317.config, 'access', _318 => _318.server, 'optionalAccess', _319 => _319.trustProxy])
|
|
7259
7324
|
});
|
|
7260
7325
|
const diagnostics = isDev ? createDefaultErrorDiagnostics(error, this.config.root || process.cwd()) : void 0;
|
|
7261
|
-
const statusText =
|
|
7326
|
+
const statusText = _chunkVCKGOXFIcjs.getDefaultErrorStatusText.call(void 0, statusCode);
|
|
7262
7327
|
const content = this.stampFarmScripts(
|
|
7263
7328
|
req,
|
|
7264
|
-
|
|
7329
|
+
_chunkVCKGOXFIcjs.createDefaultErrorMarkup.call(void 0, {
|
|
7265
7330
|
statusCode,
|
|
7266
7331
|
statusText,
|
|
7267
7332
|
requestPath: requestUrl.pathname,
|
|
7268
7333
|
method: req.method || "GET",
|
|
7269
|
-
message: _optionalChain([diagnostics, 'optionalAccess',
|
|
7270
|
-
errorName: _optionalChain([diagnostics, 'optionalAccess',
|
|
7271
|
-
stack: _optionalChain([diagnostics, 'optionalAccess',
|
|
7272
|
-
sourceFrame: _optionalChain([diagnostics, 'optionalAccess',
|
|
7334
|
+
message: _optionalChain([diagnostics, 'optionalAccess', _320 => _320.message]),
|
|
7335
|
+
errorName: _optionalChain([diagnostics, 'optionalAccess', _321 => _321.name]),
|
|
7336
|
+
stack: _optionalChain([diagnostics, 'optionalAccess', _322 => _322.stack]),
|
|
7337
|
+
sourceFrame: _optionalChain([diagnostics, 'optionalAccess', _323 => _323.sourceFrame]),
|
|
7273
7338
|
development: isDev,
|
|
7274
|
-
farmVersion:
|
|
7339
|
+
farmVersion: _chunkRHOR2J6Vcjs.FARM_VERSION,
|
|
7275
7340
|
nodeVersion: process.version,
|
|
7276
7341
|
mode: isDev ? "development" : "production"
|
|
7277
7342
|
})
|
|
@@ -7297,8 +7362,8 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
7297
7362
|
*/
|
|
7298
7363
|
getI18nAlternateOptions(req, metadata) {
|
|
7299
7364
|
return {
|
|
7300
|
-
metadataBase: _optionalChain([metadata, 'optionalAccess',
|
|
7301
|
-
origin: req ? _chunkHNAISJFDcjs.resolveFarmRequestURL.call(void 0, req, { trustProxy: _optionalChain([this, 'access',
|
|
7365
|
+
metadataBase: _optionalChain([metadata, 'optionalAccess', _324 => _324.metadataBase]),
|
|
7366
|
+
origin: req ? _chunkHNAISJFDcjs.resolveFarmRequestURL.call(void 0, req, { trustProxy: _optionalChain([this, 'access', _325 => _325.config, 'access', _326 => _326.server, 'optionalAccess', _327 => _327.trustProxy]) }).origin : void 0
|
|
7302
7367
|
};
|
|
7303
7368
|
}
|
|
7304
7369
|
createFullHTML(content, isClientComponent = false, requestPath = "/", metadataHead, alternates = {}) {
|
|
@@ -7308,7 +7373,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
|
|
|
7308
7373
|
const viteClientScript = farmScripts(`<script type="module" src="/@vite/client"></script>`);
|
|
7309
7374
|
const integrationManifestScript = farmScripts(`<script>
|
|
7310
7375
|
window.__FARM_DEPLOYMENT_ID__ = ${serializeInlineValue(this.getDeploymentId())};
|
|
7311
|
-
window.__FARM_INTEGRATION_API_MANIFEST__ = ${JSON.stringify(
|
|
7376
|
+
window.__FARM_INTEGRATION_API_MANIFEST__ = ${JSON.stringify(_chunkWAPQWAE6cjs.getRegisteredIntegrationAPIManifest.call(void 0, ))};
|
|
7312
7377
|
${i18nSnapshot ? `window.__FARM_I18N__ = ${serializeInlineValue(i18nSnapshot)};` : ""}
|
|
7313
7378
|
</script>`);
|
|
7314
7379
|
const alternateLinks = i18nSnapshot ? renderI18nAlternateLinks(
|
|
@@ -7317,20 +7382,20 @@ ${i18nSnapshot ? `window.__FARM_I18N__ = ${serializeInlineValue(i18nSnapshot)};`
|
|
|
7317
7382
|
this.getI18nAlternateOptions(alternates.req, alternates.metadata)
|
|
7318
7383
|
) : "";
|
|
7319
7384
|
const fontHead = renderFarmFontDevHead(this.config.root || process.cwd());
|
|
7320
|
-
const themeDocument =
|
|
7385
|
+
const themeDocument = _chunkVCKGOXFIcjs.createFarmThemeDocumentParts.call(void 0,
|
|
7321
7386
|
this.config.theme,
|
|
7322
7387
|
this.config.basePath,
|
|
7323
7388
|
_chunk4ZJ5C7UJcjs.getTheme.call(void 0, )
|
|
7324
7389
|
);
|
|
7325
7390
|
themeDocument.head = farmScripts(themeDocument.head);
|
|
7326
7391
|
const rendererHydrationScript = farmScripts(
|
|
7327
|
-
_optionalChain([this, 'access',
|
|
7392
|
+
_optionalChain([this, 'access', _328 => _328.rendererRuntime, 'access', _329 => _329.generateHydrationScript, 'optionalCall', _330 => _330()]) || ""
|
|
7328
7393
|
);
|
|
7329
|
-
const viewportTags = _chunk6IOZPJ3Icjs.renderViewportHead.call(void 0, _optionalChain([alternates, 'access',
|
|
7330
|
-
const fullDocument =
|
|
7394
|
+
const viewportTags = _chunk6IOZPJ3Icjs.renderViewportHead.call(void 0, _optionalChain([alternates, 'access', _331 => _331.metadata, 'optionalAccess', _332 => _332.viewport]));
|
|
7395
|
+
const fullDocument = _chunkVCKGOXFIcjs.extractFarmFullDocument.call(void 0, content);
|
|
7331
7396
|
if (fullDocument) {
|
|
7332
|
-
return
|
|
7333
|
-
metadataHead ?
|
|
7397
|
+
return _chunkVCKGOXFIcjs.composeFarmFullDocument.call(void 0,
|
|
7398
|
+
metadataHead ? _chunkVCKGOXFIcjs.removeFarmDocumentTitles.call(void 0, fullDocument) : fullDocument,
|
|
7334
7399
|
{
|
|
7335
7400
|
fallbackIcon: !metadataHead,
|
|
7336
7401
|
viewport: viewportTags,
|
|
@@ -7356,7 +7421,7 @@ ${i18nSnapshot ? `window.__FARM_I18N__ = ${serializeInlineValue(i18nSnapshot)};`
|
|
|
7356
7421
|
);
|
|
7357
7422
|
}
|
|
7358
7423
|
return `<!DOCTYPE html>
|
|
7359
|
-
<html lang="${escapeHtmlAttribute2(_optionalChain([i18nSnapshot, 'optionalAccess',
|
|
7424
|
+
<html lang="${escapeHtmlAttribute2(_optionalChain([i18nSnapshot, 'optionalAccess', _333 => _333.locale]) || "en")}"${i18nSnapshot ? ` dir="${i18nSnapshot.direction}"` : ""}${themeDocument.attributes}>
|
|
7360
7425
|
<head>
|
|
7361
7426
|
${themeDocument.head}
|
|
7362
7427
|
<meta charset="utf-8">
|
|
@@ -7398,7 +7463,7 @@ ${clientScript}
|
|
|
7398
7463
|
res.setHeader(_chunkE552H232cjs.FARM_DEPLOYMENT_ID_HEADER, deploymentId);
|
|
7399
7464
|
if ((req.method || "GET").toUpperCase() !== "GET") return;
|
|
7400
7465
|
const forwardedProto = req.headers["x-forwarded-proto"];
|
|
7401
|
-
const isSecure = _optionalChain([(Array.isArray(forwardedProto) ? forwardedProto[0] : forwardedProto), 'optionalAccess',
|
|
7466
|
+
const isSecure = _optionalChain([(Array.isArray(forwardedProto) ? forwardedProto[0] : forwardedProto), 'optionalAccess', _334 => _334.split, 'call', _335 => _335(","), 'access', _336 => _336[0], 'optionalAccess', _337 => _337.trim, 'call', _338 => _338()]) === "https" || Boolean(_optionalChain([req, 'access', _339 => _339.socket, 'optionalAccess', _340 => _340.encrypted]));
|
|
7402
7467
|
const cookie = _chunkE552H232cjs.createFarmDeploymentCookie.call(void 0, deploymentId, this.config.basePath || "/", isSecure);
|
|
7403
7468
|
const existing = res.getHeader("Set-Cookie");
|
|
7404
7469
|
if (Array.isArray(existing)) {
|
|
@@ -7489,13 +7554,13 @@ var FarmApp = class {
|
|
|
7489
7554
|
plugins: config.plugins || [],
|
|
7490
7555
|
migrations: config.migrations || { commands: [] },
|
|
7491
7556
|
cron: _chunkC7425KDGcjs.resolveCronConfig.call(void 0, config.cron),
|
|
7492
|
-
workflows:
|
|
7557
|
+
workflows: _chunkIQXGHGZFcjs.resolveWorkflowsConfig.call(void 0, config.workflows),
|
|
7493
7558
|
api: normalizeFarmAppAPIConfig(config.api),
|
|
7494
7559
|
middleware: config.middleware || {},
|
|
7495
7560
|
routeRules: _chunkV56632LAcjs.normalizeRouteRules.call(void 0, config.routeRules),
|
|
7496
7561
|
context: config.context || (() => void 0),
|
|
7497
|
-
server:
|
|
7498
|
-
serverActions:
|
|
7562
|
+
server: _chunkLIFUPCXWcjs.resolveFarmServerConfig.call(void 0, config.server),
|
|
7563
|
+
serverActions: _chunk6QA2SXVHcjs.resolveServerActionsConfig.call(void 0, config.serverActions),
|
|
7499
7564
|
security: _chunk6JHZPB52cjs.resolveFarmSecurityConfig.call(void 0, config.security),
|
|
7500
7565
|
images: _chunkHEPJIKKQcjs.resolveFarmImageConfig.call(void 0, config.images),
|
|
7501
7566
|
performance: _chunkNYQSC4DXcjs.resolveFarmPerformanceConfig.call(void 0, config.performance),
|
|
@@ -7526,10 +7591,10 @@ var FarmApp = class {
|
|
|
7526
7591
|
env: config.env || { server: {}, public: {} },
|
|
7527
7592
|
suppressLintOnLink: _nullishCoalesce(config.suppressLintOnLink, () => ( false)),
|
|
7528
7593
|
experimental: {
|
|
7529
|
-
serverComponents: _nullishCoalesce(_optionalChain([config, 'access',
|
|
7530
|
-
serverActions: _nullishCoalesce(_optionalChain([config, 'access',
|
|
7531
|
-
isolatedClientHydration: _nullishCoalesce(_optionalChain([config, 'access',
|
|
7532
|
-
ppr: _nullishCoalesce(_optionalChain([config, 'access',
|
|
7594
|
+
serverComponents: _nullishCoalesce(_optionalChain([config, 'access', _341 => _341.experimental, 'optionalAccess', _342 => _342.serverComponents]), () => ( false)),
|
|
7595
|
+
serverActions: _nullishCoalesce(_optionalChain([config, 'access', _343 => _343.experimental, 'optionalAccess', _344 => _344.serverActions]), () => ( false)),
|
|
7596
|
+
isolatedClientHydration: _nullishCoalesce(_optionalChain([config, 'access', _345 => _345.experimental, 'optionalAccess', _346 => _346.isolatedClientHydration]), () => ( "off")),
|
|
7597
|
+
ppr: _nullishCoalesce(_optionalChain([config, 'access', _347 => _347.experimental, 'optionalAccess', _348 => _348.ppr]), () => ( false)),
|
|
7533
7598
|
...config.experimental
|
|
7534
7599
|
},
|
|
7535
7600
|
agent: _nullishCoalesce(config.agent, () => ( {})),
|
|
@@ -7576,7 +7641,7 @@ function isResolvedAuthConfig(value) {
|
|
|
7576
7641
|
);
|
|
7577
7642
|
}
|
|
7578
7643
|
function normalizeFarmAppAPIConfig(config) {
|
|
7579
|
-
if (typeof _optionalChain([config, 'optionalAccess',
|
|
7644
|
+
if (typeof _optionalChain([config, 'optionalAccess', _349 => _349.baseURL]) === "function" || typeof _optionalChain([config, 'optionalAccess', _350 => _350.basePath]) === "function") {
|
|
7580
7645
|
throw new Error(
|
|
7581
7646
|
"Farm API config resolver functions must be processed with resolveConfig() before creating a FarmApp."
|
|
7582
7647
|
);
|
|
@@ -7591,7 +7656,7 @@ function createFarmApp(config, viteServer) {
|
|
|
7591
7656
|
var SHARP_INSTALL_HINT = _chunkKORZ6PREcjs.formatOptionalPeerInstallHint.call(void 0, "sharp", "optimize images");
|
|
7592
7657
|
var CLOUDFLARE_IMAGE_PRESETS = /* @__PURE__ */ new Set(["cloudflare", "cloudflare-pages", "cloudflare-module"]);
|
|
7593
7658
|
function resolveFarmImageProviderForRuntime(images, options) {
|
|
7594
|
-
const provider = _nullishCoalesce(_optionalChain([images, 'optionalAccess',
|
|
7659
|
+
const provider = _nullishCoalesce(_optionalChain([images, 'optionalAccess', _351 => _351.provider]), () => ( "auto"));
|
|
7595
7660
|
if (provider === "none") return images;
|
|
7596
7661
|
const usesSharp = options.dev ? true : provider === "node" || provider === "auto" && !CLOUDFLARE_IMAGE_PRESETS.has(options.preset || "");
|
|
7597
7662
|
if (!usesSharp || _chunkKORZ6PREcjs.isOptionalPeerInstalled.call(void 0, options.root, "sharp")) return images;
|
|
@@ -7720,9 +7785,9 @@ function staticValue(node) {
|
|
|
7720
7785
|
}
|
|
7721
7786
|
}
|
|
7722
7787
|
function property(object, name) {
|
|
7723
|
-
return _optionalChain([object, 'access',
|
|
7788
|
+
return _optionalChain([object, 'access', _352 => _352.properties, 'access', _353 => _353.find, 'call', _354 => _354(
|
|
7724
7789
|
(entry) => entry.type === "Property" && !entry.computed && (entry.key.name === name || entry.key.value === name)
|
|
7725
|
-
), 'optionalAccess',
|
|
7790
|
+
), 'optionalAccess', _355 => _355.value]);
|
|
7726
7791
|
}
|
|
7727
7792
|
function toolFromObject(object) {
|
|
7728
7793
|
const name = staticValue(property(object, "name"));
|
|
@@ -7768,7 +7833,7 @@ function findFarmWebMCPTools(code, filename = "module.tsx") {
|
|
|
7768
7833
|
if (statement.type !== "ImportDeclaration" || statement.source.value !== WEBMCP_CLIENT)
|
|
7769
7834
|
continue;
|
|
7770
7835
|
for (const specifier of statement.specifiers) {
|
|
7771
|
-
const imported = _nullishCoalesce(_optionalChain([specifier, 'access',
|
|
7836
|
+
const imported = _nullishCoalesce(_optionalChain([specifier, 'access', _356 => _356.imported, 'optionalAccess', _357 => _357.name]), () => ( _optionalChain([specifier, 'access', _358 => _358.imported, 'optionalAccess', _359 => _359.value])));
|
|
7772
7837
|
if (specifier.type === "ImportSpecifier" && DEFINERS.has(imported))
|
|
7773
7838
|
locals.set(specifier.local.name, imported);
|
|
7774
7839
|
}
|
|
@@ -7784,7 +7849,7 @@ function findFarmWebMCPTools(code, filename = "module.tsx") {
|
|
|
7784
7849
|
const [argument] = current.arguments;
|
|
7785
7850
|
if (definer && argument) {
|
|
7786
7851
|
const objects = definer === "registerWebMCPTools" ? argument.type === "ArrayExpression" ? argument.elements.filter(
|
|
7787
|
-
(element) => _optionalChain([element, 'optionalAccess',
|
|
7852
|
+
(element) => _optionalChain([element, 'optionalAccess', _360 => _360.type]) === "ObjectExpression"
|
|
7788
7853
|
) : [] : argument.type === "ObjectExpression" ? [argument] : [];
|
|
7789
7854
|
for (const object of objects) {
|
|
7790
7855
|
const tool = toolFromObject(object);
|
|
@@ -7853,6 +7918,12 @@ var CLIENT_KEYS = [
|
|
|
7853
7918
|
];
|
|
7854
7919
|
var HYDRATION_KEYS = ["before", "after"];
|
|
7855
7920
|
var NAVIGATION_KEYS = ["before", "loaded", "resolved", "rendered", "error"];
|
|
7921
|
+
var MOBILE_SHELL_CLIENT_IMPORT = 'import { farmMobileShellClient as __farmMobileShellClient } from "@farm.js/core/internal/client-runtime";';
|
|
7922
|
+
var MOBILE_SHELL_CLIENT_REGISTRATION = ` {
|
|
7923
|
+
name: "farm:mobile-shell",
|
|
7924
|
+
enforce: "pre",
|
|
7925
|
+
definition: __farmMobileShellClient,
|
|
7926
|
+
}`;
|
|
7856
7927
|
var APP_CLIENT_EXTENSIONS = ["ts", "tsx", "js", "jsx", "mts", "mjs"];
|
|
7857
7928
|
function resolveFarmAppClientEntry(root = process.cwd(), srcDir = "src") {
|
|
7858
7929
|
const sourceRoot = path4.default.resolve(root, srcDir);
|
|
@@ -7863,7 +7934,7 @@ function resolveFarmAppClientEntry(root = process.cwd(), srcDir = "src") {
|
|
|
7863
7934
|
return void 0;
|
|
7864
7935
|
}
|
|
7865
7936
|
function resolveFarmClientPlugins(plugins, _root) {
|
|
7866
|
-
if (!_optionalChain([plugins, 'optionalAccess',
|
|
7937
|
+
if (!_optionalChain([plugins, 'optionalAccess', _361 => _361.length])) return [];
|
|
7867
7938
|
return plugins.flatMap((plugin) => {
|
|
7868
7939
|
if (!plugin.client) return [];
|
|
7869
7940
|
assertClientLifecycle(plugin.client, plugin.name);
|
|
@@ -7882,15 +7953,20 @@ function resolveFarmClientPlugins(plugins, _root) {
|
|
|
7882
7953
|
function generateFarmClientPluginEntryCode(plugins, root, srcDir = "src", appPublicData) {
|
|
7883
7954
|
const resolved = resolveFarmClientPlugins(plugins, root);
|
|
7884
7955
|
const appClientEntry = root ? resolveFarmAppClientEntry(root, srcDir) : void 0;
|
|
7885
|
-
const
|
|
7886
|
-
const
|
|
7887
|
-
|
|
7956
|
+
const appImport = appClientEntry ? `import farmAppClientDefinition from ${JSON.stringify(appClientEntry.replace(/\\/g, "/"))};` : "";
|
|
7957
|
+
const mobileShell = _chunkAQLHD6HZcjs.resolveFarmPlatform.call(void 0, ) === "mobile";
|
|
7958
|
+
const imports = mobileShell ? [MOBILE_SHELL_CLIENT_IMPORT, appImport].filter(Boolean).join("\n") : appImport;
|
|
7959
|
+
const serializedPlugins = mobileShell ? [MOBILE_SHELL_CLIENT_REGISTRATION] : [];
|
|
7960
|
+
serializedPlugins.push(
|
|
7961
|
+
...resolved.map(
|
|
7962
|
+
(plugin) => ` {
|
|
7888
7963
|
name: ${JSON.stringify(plugin.name)},
|
|
7889
7964
|
version: ${serializeOptionalString(plugin.version)},
|
|
7890
7965
|
enforce: ${serializeOptionalString(plugin.enforce)},
|
|
7891
7966
|
definition: ${serializeClientLifecycle(plugin.definition, plugin.name)},
|
|
7892
7967
|
public: ${serializePublicData(plugin.publicData)},
|
|
7893
7968
|
}`
|
|
7969
|
+
)
|
|
7894
7970
|
);
|
|
7895
7971
|
if (appClientEntry) {
|
|
7896
7972
|
assertPublicData(appPublicData, "farm:app-client");
|
|
@@ -7940,7 +8016,7 @@ function assertLifecycleObject(value, pluginName, location, allowedKeys) {
|
|
|
7940
8016
|
throw new TypeError(`Client plugin "${pluginName}" has an unknown ${location}.${key} option`);
|
|
7941
8017
|
}
|
|
7942
8018
|
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
7943
|
-
if (!_optionalChain([descriptor, 'optionalAccess',
|
|
8019
|
+
if (!_optionalChain([descriptor, 'optionalAccess', _362 => _362.enumerable])) {
|
|
7944
8020
|
throw new TypeError(`Client plugin "${pluginName}" ${location}.${key} must be enumerable`);
|
|
7945
8021
|
}
|
|
7946
8022
|
if (!("value" in descriptor)) {
|
|
@@ -8058,7 +8134,7 @@ function assertPublicData(value, pluginName) {
|
|
|
8058
8134
|
throwPublicDataError(pluginName, pathSegments, "cannot contain symbol keys");
|
|
8059
8135
|
}
|
|
8060
8136
|
const descriptor = Object.getOwnPropertyDescriptor(current, key);
|
|
8061
|
-
if (!_optionalChain([descriptor, 'optionalAccess',
|
|
8137
|
+
if (!_optionalChain([descriptor, 'optionalAccess', _363 => _363.enumerable])) {
|
|
8062
8138
|
throwPublicDataError(
|
|
8063
8139
|
pluginName,
|
|
8064
8140
|
[...pathSegments, key],
|
|
@@ -8099,8 +8175,8 @@ function isArrayIndex(key) {
|
|
|
8099
8175
|
|
|
8100
8176
|
var ADAPTER_EXTENSIONS = ["ts", "tsx", "js", "jsx", "mts", "mjs"];
|
|
8101
8177
|
function resolveFarmClientCacheAdapterEntry(root, cache2) {
|
|
8102
|
-
const client = _optionalChain([cache2, 'optionalAccess',
|
|
8103
|
-
const adapter = _optionalChain([client, 'optionalAccess',
|
|
8178
|
+
const client = _optionalChain([cache2, 'optionalAccess', _364 => _364.client]);
|
|
8179
|
+
const adapter = _optionalChain([client, 'optionalAccess', _365 => _365.adapter]);
|
|
8104
8180
|
if (adapter === void 0) return void 0;
|
|
8105
8181
|
if (typeof adapter !== "string" || adapter.trim().length === 0) {
|
|
8106
8182
|
throw new Error(
|
|
@@ -8115,8 +8191,8 @@ function resolveFarmClientCacheAdapterEntry(root, cache2) {
|
|
|
8115
8191
|
);
|
|
8116
8192
|
}
|
|
8117
8193
|
const options = {};
|
|
8118
|
-
if (_optionalChain([client, 'optionalAccess',
|
|
8119
|
-
if (_optionalChain([client, 'optionalAccess',
|
|
8194
|
+
if (_optionalChain([client, 'optionalAccess', _366 => _366.version]) !== void 0) options.version = client.version;
|
|
8195
|
+
if (_optionalChain([client, 'optionalAccess', _367 => _367.flushDelayMs]) !== void 0) options.flushDelayMs = client.flushDelayMs;
|
|
8120
8196
|
return { importPath: found.replace(/\\/g, "/"), options };
|
|
8121
8197
|
}
|
|
8122
8198
|
function resolveAdapterFile(resolved) {
|
|
@@ -8316,7 +8392,7 @@ function redactFarmDocsClientConfig(code, filename) {
|
|
|
8316
8392
|
const current = node;
|
|
8317
8393
|
if (current.type === "Property") {
|
|
8318
8394
|
const name = propertyKeyName(current);
|
|
8319
|
-
const valueType = _optionalChain([current, 'access',
|
|
8395
|
+
const valueType = _optionalChain([current, 'access', _368 => _368.value, 'optionalAccess', _369 => _369.type]);
|
|
8320
8396
|
const credential = name !== void 0 && (name.toLowerCase() === "headers" || _chunkSM2SYWARcjs.isSecretDocsConfigKey.call(void 0, name) && valueType !== "ObjectExpression" && valueType !== "ArrayExpression");
|
|
8321
8397
|
if (name && credential) {
|
|
8322
8398
|
edits.push(
|
|
@@ -8356,7 +8432,7 @@ function farmDocsClientConfigPlugin(configModule) {
|
|
|
8356
8432
|
name: "farm:docs-client-config",
|
|
8357
8433
|
enforce: "pre",
|
|
8358
8434
|
transform(code, id, options) {
|
|
8359
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
8435
|
+
if (_optionalChain([options, 'optionalAccess', _370 => _370.ssr]) || !isFarmDocsClientConfigModule(id, configModule)) return null;
|
|
8360
8436
|
const redacted = redactFarmDocsClientConfig(code, id.split("?")[0]);
|
|
8361
8437
|
return redacted === null ? null : { code: redacted, map: null };
|
|
8362
8438
|
}
|
|
@@ -8387,7 +8463,7 @@ var FARM_CLIENT_OPTIMIZE_DEPS_INCLUDE = [
|
|
|
8387
8463
|
];
|
|
8388
8464
|
function getFarmClientOptimizeDepsInclude(renderer) {
|
|
8389
8465
|
return Array.from(
|
|
8390
|
-
/* @__PURE__ */ new Set([...FARM_CLIENT_OPTIMIZE_DEPS_INCLUDE, ..._optionalChain([renderer, 'optionalAccess',
|
|
8466
|
+
/* @__PURE__ */ new Set([...FARM_CLIENT_OPTIMIZE_DEPS_INCLUDE, ..._optionalChain([renderer, 'optionalAccess', _371 => _371.optimizeDeps]) || []])
|
|
8391
8467
|
);
|
|
8392
8468
|
}
|
|
8393
8469
|
function createFarmClientOptimizeDepsEntries(projectRoot, appDirectories) {
|
|
@@ -8410,7 +8486,7 @@ function createFarmClientOptimizeDepsConfig(entries, renderer) {
|
|
|
8410
8486
|
// Farm's HTML boots through a virtual module and imports route UI lazily.
|
|
8411
8487
|
// Explicit entries let Vite finish that crawl before a navigation can
|
|
8412
8488
|
// rotate the optimizer hash underneath a hydrated React runtime.
|
|
8413
|
-
..._optionalChain([entries, 'optionalAccess',
|
|
8489
|
+
..._optionalChain([entries, 'optionalAccess', _372 => _372.length]) ? { entries: [...entries] } : {}
|
|
8414
8490
|
};
|
|
8415
8491
|
}
|
|
8416
8492
|
function createFarmSourceAlias(projectRoot, srcDir = "src") {
|
|
@@ -8436,8 +8512,8 @@ function mergeAlias(farmValue, userValue) {
|
|
|
8436
8512
|
return [...normalize(userValue), ...normalize(farmValue)];
|
|
8437
8513
|
}
|
|
8438
8514
|
function mergeFarmViteConfig(farmConfig, userConfig = {}) {
|
|
8439
|
-
const noDiscovery = _nullishCoalesce(_optionalChain([userConfig, 'access',
|
|
8440
|
-
const holdUntilCrawlEnd = _nullishCoalesce(_optionalChain([userConfig, 'access',
|
|
8515
|
+
const noDiscovery = _nullishCoalesce(_optionalChain([userConfig, 'access', _373 => _373.optimizeDeps, 'optionalAccess', _374 => _374.noDiscovery]), () => ( _optionalChain([farmConfig, 'access', _375 => _375.optimizeDeps, 'optionalAccess', _376 => _376.noDiscovery])));
|
|
8516
|
+
const holdUntilCrawlEnd = _nullishCoalesce(_optionalChain([userConfig, 'access', _377 => _377.optimizeDeps, 'optionalAccess', _378 => _378.holdUntilCrawlEnd]), () => ( (_optionalChain([userConfig, 'access', _379 => _379.optimizeDeps, 'optionalAccess', _380 => _380.noDiscovery]) === true ? false : _optionalChain([farmConfig, 'access', _381 => _381.optimizeDeps, 'optionalAccess', _382 => _382.holdUntilCrawlEnd]))));
|
|
8441
8517
|
return {
|
|
8442
8518
|
...farmConfig,
|
|
8443
8519
|
...userConfig,
|
|
@@ -8449,9 +8525,9 @@ function mergeFarmViteConfig(farmConfig, userConfig = {}) {
|
|
|
8449
8525
|
resolve: {
|
|
8450
8526
|
...farmConfig.resolve,
|
|
8451
8527
|
...userConfig.resolve,
|
|
8452
|
-
alias: mergeAlias(_optionalChain([farmConfig, 'access',
|
|
8528
|
+
alias: mergeAlias(_optionalChain([farmConfig, 'access', _383 => _383.resolve, 'optionalAccess', _384 => _384.alias]), _optionalChain([userConfig, 'access', _385 => _385.resolve, 'optionalAccess', _386 => _386.alias])),
|
|
8453
8529
|
dedupe: Array.from(
|
|
8454
|
-
/* @__PURE__ */ new Set([..._optionalChain([farmConfig, 'access',
|
|
8530
|
+
/* @__PURE__ */ new Set([..._optionalChain([farmConfig, 'access', _387 => _387.resolve, 'optionalAccess', _388 => _388.dedupe]) || [], ..._optionalChain([userConfig, 'access', _389 => _389.resolve, 'optionalAccess', _390 => _390.dedupe]) || []])
|
|
8455
8531
|
)
|
|
8456
8532
|
},
|
|
8457
8533
|
optimizeDeps: {
|
|
@@ -8461,21 +8537,21 @@ function mergeFarmViteConfig(farmConfig, userConfig = {}) {
|
|
|
8461
8537
|
holdUntilCrawlEnd,
|
|
8462
8538
|
include: Array.from(
|
|
8463
8539
|
/* @__PURE__ */ new Set([
|
|
8464
|
-
..._optionalChain([farmConfig, 'access',
|
|
8465
|
-
..._optionalChain([userConfig, 'access',
|
|
8540
|
+
..._optionalChain([farmConfig, 'access', _391 => _391.optimizeDeps, 'optionalAccess', _392 => _392.include]) || [],
|
|
8541
|
+
..._optionalChain([userConfig, 'access', _393 => _393.optimizeDeps, 'optionalAccess', _394 => _394.include]) || []
|
|
8466
8542
|
])
|
|
8467
8543
|
),
|
|
8468
8544
|
exclude: Array.from(
|
|
8469
8545
|
/* @__PURE__ */ new Set([
|
|
8470
|
-
..._optionalChain([farmConfig, 'access',
|
|
8471
|
-
..._optionalChain([userConfig, 'access',
|
|
8546
|
+
..._optionalChain([farmConfig, 'access', _395 => _395.optimizeDeps, 'optionalAccess', _396 => _396.exclude]) || [],
|
|
8547
|
+
..._optionalChain([userConfig, 'access', _397 => _397.optimizeDeps, 'optionalAccess', _398 => _398.exclude]) || []
|
|
8472
8548
|
])
|
|
8473
8549
|
)
|
|
8474
8550
|
},
|
|
8475
8551
|
ssr: {
|
|
8476
8552
|
...farmConfig.ssr,
|
|
8477
8553
|
...userConfig.ssr,
|
|
8478
|
-
noExternal: mergeNoExternal(_optionalChain([farmConfig, 'access',
|
|
8554
|
+
noExternal: mergeNoExternal(_optionalChain([farmConfig, 'access', _399 => _399.ssr, 'optionalAccess', _400 => _400.noExternal]), _optionalChain([userConfig, 'access', _401 => _401.ssr, 'optionalAccess', _402 => _402.noExternal]))
|
|
8479
8555
|
}
|
|
8480
8556
|
};
|
|
8481
8557
|
}
|
|
@@ -8527,7 +8603,7 @@ function mergeFarmProductionViteConfig(farmConfig, userConfig = {}) {
|
|
|
8527
8603
|
...farmConfig.build,
|
|
8528
8604
|
rollupOptions: {
|
|
8529
8605
|
...userBundlerOptions,
|
|
8530
|
-
..._optionalChain([farmConfig, 'access',
|
|
8606
|
+
..._optionalChain([farmConfig, 'access', _403 => _403.build, 'optionalAccess', _404 => _404.rollupOptions])
|
|
8531
8607
|
}
|
|
8532
8608
|
},
|
|
8533
8609
|
css: farmConfig.css || userCss ? { ...farmConfig.css, ...userCss } : void 0,
|
|
@@ -8535,7 +8611,7 @@ function mergeFarmProductionViteConfig(farmConfig, userConfig = {}) {
|
|
|
8535
8611
|
esbuild: typeof userEsbuild === "object" && farmConfig.esbuild !== false ? { ...userEsbuild, ...farmConfig.esbuild } : _nullishCoalesce(farmConfig.esbuild, () => ( userEsbuild)),
|
|
8536
8612
|
ssr: {
|
|
8537
8613
|
...merged.ssr,
|
|
8538
|
-
external: mergeExternal(_optionalChain([farmConfig, 'access',
|
|
8614
|
+
external: mergeExternal(_optionalChain([farmConfig, 'access', _405 => _405.ssr, 'optionalAccess', _406 => _406.external]), _optionalChain([userConfig, 'access', _407 => _407.ssr, 'optionalAccess', _408 => _408.external]))
|
|
8539
8615
|
}
|
|
8540
8616
|
};
|
|
8541
8617
|
}
|