@farm.js/core 0.1.49 → 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-Bb8hnnqd.d.ts → agent-mcp-9BMbRgg_.d.ts} +1 -1
- package/dist/{agent-mcp-ir3v4fHf.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-y649szYm.d.ts → app-BWibTHVT.d.ts} +7 -7
- package/dist/{app-DLzz02du.d.mts → app-DVJ13FPA.d.mts} +7 -7
- package/dist/{app-manifest-Crn8Qd3U.d.mts → app-manifest-CQDJOKL2.d.mts} +1 -1
- package/dist/{app-manifest-DNeTKMRL.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-ACI52TCN.mjs → chunk-2VCC3GVC.mjs} +1 -1
- package/dist/chunk-3ATXWZPH.cjs +227 -0
- package/dist/{chunk-C5S457CK.cjs → chunk-474FO3UE.cjs} +68 -54
- 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-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-4HM5B5RR.cjs → chunk-B5S2JS6M.cjs} +117 -115
- 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-FR4HJDI6.cjs → chunk-F5LERVY3.cjs} +21 -24
- 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-NPPT4RWF.cjs → chunk-GOOK2J2W.cjs} +7 -7
- package/dist/{chunk-NW2BKDVT.mjs → chunk-HHFMECFO.mjs} +1 -1
- package/dist/{chunk-J27BZO67.mjs → chunk-HWCHIBJZ.mjs} +21 -24
- package/dist/{chunk-HTLCLOXQ.cjs → chunk-HYN3LLG7.cjs} +3 -3
- 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-Z3BXMMFF.mjs → chunk-IWJKJDNW.mjs} +38 -24
- package/dist/{chunk-DGVVVYKD.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-AIHD6VME.cjs → chunk-KZH6YLND.cjs} +154 -126
- 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-RYDDUCNJ.mjs → chunk-M7LKA632.mjs} +1 -1
- 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-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-J5VCA45K.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-N25RPPO5.cjs → chunk-WAPQWAE6.cjs} +10 -10
- package/dist/{chunk-Z4LTSH7D.mjs → chunk-WVBUXNBX.mjs} +71 -43
- 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-IVHPRF4W.mjs → chunk-ZLOQQ2UF.mjs} +32 -30
- package/dist/client/lifecycle.d.mts +1 -1
- package/dist/client/lifecycle.d.ts +1 -1
- package/dist/{client-plugins-DFDQUI9Q.d.ts → client-plugins-BPfltM5m.d.ts} +15 -8
- package/dist/{client-plugins-BNBeyLMi.d.mts → client-plugins-D4RO59f0.d.mts} +15 -8
- 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-YO6KPIOQ.mjs → dev-guard-4PFQNXQX.mjs} +2 -1
- package/dist/{dev-guard-PLHL6OTJ.cjs → dev-guard-YLO5DE3H.cjs} +4 -3
- 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-CeJ9_s9p.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-DBdiTkNc.d.ts → index-k8o8eUOd.d.mts} +2 -2
- package/dist/index.cjs +72 -65
- package/dist/index.d.mts +29 -45
- package/dist/index.d.ts +29 -45
- package/dist/index.mjs +77 -70
- 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 +35 -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 +34 -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/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/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 +12 -12
- package/dist/internal/production-runtime.d.mts +19 -19
- package/dist/internal/production-runtime.d.ts +19 -19
- package/dist/internal/production-runtime.mjs +14 -14
- 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 +30 -28
- package/dist/plugin.d.mts +13 -8
- package/dist/plugin.d.ts +13 -8
- package/dist/plugin.mjs +29 -27
- package/dist/{production-runtime-DcD-GRAv.d.mts → production-runtime-DXnQQkQf.d.mts} +3 -3
- package/dist/{production-runtime-B3qFFtKF.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-fD9f4XqU.d.ts → programmatic-routes-client-BwiTndEC.d.ts} +2 -2
- package/dist/{programmatic-routes-client-DzbYGiZQ.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-B6cfssrr.d.ts → render-plan-BPbwRbuN.d.ts} +1 -1
- package/dist/{render-plan-DqJ51ufr.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-jhvUMXRx.d.ts → request-B8PGTZNR.d.ts} +1 -1
- package/dist/{request-UuAxHn8h.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-Cou00t1X.d.mts → route-rendering-DlddURL1.d.mts} +1 -1
- package/dist/{route-rendering-Sn50cYZf.d.ts → route-rendering-RNtcj607.d.ts} +1 -1
- package/dist/{router-0X9DCTcm.d.mts → router-B97eB0Mq.d.mts} +1 -1
- package/dist/{router-xwLvi48p.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-VKHMABDJ.cjs → rsc-pipeline-L4XOZ2TE.cjs} +13 -11
- package/dist/{rsc-pipeline-F6ZPH5MU.mjs → rsc-pipeline-T3775JUA.mjs} +12 -10
- package/dist/runtime-BIBGJO7V.cjs +1005 -0
- package/dist/{runtime-B9HmxiZc.d.ts → runtime-C4CmlOOh.d.ts} +2 -2
- package/dist/{runtime-tkSXZiqO.d.ts → runtime-C8GUnNeP.d.ts} +1 -1
- package/dist/{runtime-CMrsyChI.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 +88 -65
- package/dist/server.d.mts +22 -17
- package/dist/server.d.ts +22 -17
- package/dist/server.mjs +63 -40
- package/dist/{spa-router-B48EjsS1.d.mts → spa-router-Dlv5ofg0.d.mts} +4 -4
- package/dist/{spa-router-B06APnGK.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-C5fyK2tE.d.ts → utils-A-cYF81u.d.ts} +1 -1
- package/dist/{utils-hyAwmcN6.d.mts → utils-DyvlSxFk.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +30 -28
- package/dist/vite.d.mts +9 -9
- package/dist/vite.d.ts +9 -9
- package/dist/vite.mjs +29 -27
- 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
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var _chunkMF3IA2AWcjs = require('./chunk-MF3IA2AW.cjs');
|
|
4
3
|
|
|
5
4
|
|
|
6
5
|
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
|
|
9
|
+
var _chunkVZY7MAVScjs = require('./chunk-VZY7MAVS.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkMF3IA2AWcjs = require('./chunk-MF3IA2AW.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkVM57CK74cjs = require('./chunk-VM57CK74.cjs');
|
|
@@ -18,7 +18,7 @@ var _chunkVM57CK74cjs = require('./chunk-VM57CK74.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk4T25YCZ5cjs = require('./chunk-4T25YCZ5.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -29,7 +29,7 @@ var _chunkQNQEK3OFcjs = require('./chunk-QNQEK3OF.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkX2EL3BLHcjs = require('./chunk-X2EL3BLH.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
@@ -37,7 +37,7 @@ var _chunkEVCQX243cjs = require('./chunk-EVCQX243.cjs');
|
|
|
37
37
|
var _chunkEQMTJBB7cjs = require('./chunk-EQMTJBB7.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkHYN3LLG7cjs = require('./chunk-HYN3LLG7.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunkBRWIVOV4cjs = require('./chunk-BRWIVOV4.cjs');
|
|
@@ -52,7 +52,7 @@ var _chunkV3UOEWCBcjs = require('./chunk-V3UOEWCB.cjs');
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
var
|
|
55
|
+
var _chunkLYWAGXXWcjs = require('./chunk-LYWAGXXW.cjs');
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
|
|
@@ -84,7 +84,7 @@ var _chunkKZT2VHRQcjs = require('./chunk-KZT2VHRQ.cjs');
|
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
|
|
87
|
-
var
|
|
87
|
+
var _chunk474FO3UEcjs = require('./chunk-474FO3UE.cjs');
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
var _chunkIXSMFKZ2cjs = require('./chunk-IXSMFKZ2.cjs');
|
|
@@ -95,7 +95,7 @@ var _chunk3EEET2Q5cjs = require('./chunk-3EEET2Q5.cjs');
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
|
-
var
|
|
98
|
+
var _chunkIUBDMDZZcjs = require('./chunk-IUBDMDZZ.cjs');
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
|
|
@@ -114,25 +114,28 @@ var _chunkVCKGOXFIcjs = require('./chunk-VCKGOXFI.cjs');
|
|
|
114
114
|
var _chunk47JV57DAcjs = require('./chunk-47JV57DA.cjs');
|
|
115
115
|
|
|
116
116
|
|
|
117
|
+
var _chunkSGBNF56Scjs = require('./chunk-SGBNF56S.cjs');
|
|
117
118
|
|
|
118
119
|
|
|
119
120
|
|
|
120
121
|
|
|
121
122
|
|
|
122
|
-
var _chunkNPPT4RWFcjs = require('./chunk-NPPT4RWF.cjs');
|
|
123
123
|
|
|
124
124
|
|
|
125
|
+
var _chunkGOOK2J2Wcjs = require('./chunk-GOOK2J2W.cjs');
|
|
125
126
|
|
|
126
127
|
|
|
127
|
-
var _chunkSBABQKPTcjs = require('./chunk-SBABQKPT.cjs');
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
var
|
|
130
|
+
var _chunkSBABQKPTcjs = require('./chunk-SBABQKPT.cjs');
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
var _chunkJ37KTQIAcjs = require('./chunk-J37KTQIA.cjs');
|
|
134
134
|
|
|
135
135
|
|
|
136
|
+
var _chunkJATTVAHAcjs = require('./chunk-JATTVAHA.cjs');
|
|
137
|
+
|
|
138
|
+
|
|
136
139
|
|
|
137
140
|
var _chunkSM2SYWARcjs = require('./chunk-SM2SYWAR.cjs');
|
|
138
141
|
|
|
@@ -167,23 +170,20 @@ var _chunk5Y2P454Ocjs = require('./chunk-5Y2P454O.cjs');
|
|
|
167
170
|
|
|
168
171
|
|
|
169
172
|
|
|
170
|
-
var
|
|
171
|
-
|
|
172
|
-
|
|
173
|
+
var _chunk2HW5LWAHcjs = require('./chunk-2HW5LWAH.cjs');
|
|
173
174
|
|
|
174
175
|
|
|
175
176
|
|
|
176
|
-
var
|
|
177
|
+
var _chunkIQXGHGZFcjs = require('./chunk-IQXGHGZF.cjs');
|
|
177
178
|
|
|
178
179
|
|
|
179
|
-
var _chunkFGJQS4ECcjs = require('./chunk-FGJQS4EC.cjs');
|
|
180
180
|
|
|
181
181
|
|
|
182
|
-
var _chunkJATTVAHAcjs = require('./chunk-JATTVAHA.cjs');
|
|
183
182
|
|
|
183
|
+
var _chunkC7425KDGcjs = require('./chunk-C7425KDG.cjs');
|
|
184
184
|
|
|
185
185
|
|
|
186
|
-
var
|
|
186
|
+
var _chunk6QA2SXVHcjs = require('./chunk-6QA2SXVH.cjs');
|
|
187
187
|
|
|
188
188
|
|
|
189
189
|
var _chunkWJFFPXCVcjs = require('./chunk-WJFFPXCV.cjs');
|
|
@@ -193,7 +193,7 @@ var _chunkJMYXO572cjs = require('./chunk-JMYXO572.cjs');
|
|
|
193
193
|
|
|
194
194
|
|
|
195
195
|
|
|
196
|
-
var
|
|
196
|
+
var _chunkWAPQWAE6cjs = require('./chunk-WAPQWAE6.cjs');
|
|
197
197
|
|
|
198
198
|
|
|
199
199
|
var _chunkPFV2KPDZcjs = require('./chunk-PFV2KPDZ.cjs');
|
|
@@ -204,7 +204,7 @@ var _chunkPFV2KPDZcjs = require('./chunk-PFV2KPDZ.cjs');
|
|
|
204
204
|
var _chunkL6QDME5Zcjs = require('./chunk-L6QDME5Z.cjs');
|
|
205
205
|
|
|
206
206
|
|
|
207
|
-
var
|
|
207
|
+
var _chunkYAXOEANDcjs = require('./chunk-YAXOEAND.cjs');
|
|
208
208
|
|
|
209
209
|
|
|
210
210
|
var _chunkBBPDJGCUcjs = require('./chunk-BBPDJGCU.cjs');
|
|
@@ -231,7 +231,7 @@ var _chunkXN2MB4QZcjs = require('./chunk-XN2MB4QZ.cjs');
|
|
|
231
231
|
var _chunkB5BBTPJQcjs = require('./chunk-B5BBTPJQ.cjs');
|
|
232
232
|
|
|
233
233
|
|
|
234
|
-
var
|
|
234
|
+
var _chunkRHOR2J6Vcjs = require('./chunk-RHOR2J6V.cjs');
|
|
235
235
|
|
|
236
236
|
|
|
237
237
|
var _chunkE552H232cjs = require('./chunk-E552H232.cjs');
|
|
@@ -338,7 +338,7 @@ function getDocsTitle(docs) {
|
|
|
338
338
|
return typeof docs.config.nav === "object" && docs.config.nav && "title" in docs.config.nav ? String(docs.config.nav.title || "Documentation") : "Documentation";
|
|
339
339
|
}
|
|
340
340
|
function loadPages(contentDir, docs) {
|
|
341
|
-
return
|
|
341
|
+
return _chunkX2EL3BLHcjs.discoverFarmDocsPages.call(void 0, contentDir, docs).map((page) => _chunkX2EL3BLHcjs.loadFarmDocsPage.call(void 0, contentDir, docs, page.slug)).filter((page) => Boolean(page)).sort((a, b) => a.href.localeCompare(b.href));
|
|
342
342
|
}
|
|
343
343
|
function findSocialImagePath(html) {
|
|
344
344
|
const match = /<meta\s+property=["']og:image["']\s+content=["']([^"']+)["']/i.exec(html) || /<meta\s+content=["']([^"']+)["']\s+property=["']og:image["']/i.exec(html);
|
|
@@ -356,14 +356,14 @@ async function addHandlerRoute(routes, pathname, handler, absolutePaths) {
|
|
|
356
356
|
return response;
|
|
357
357
|
}
|
|
358
358
|
async function compileFarmDocsManifest(docs, options) {
|
|
359
|
-
const contentDir =
|
|
359
|
+
const contentDir = _chunkX2EL3BLHcjs.resolveFarmDocsContentDir.call(void 0, docs, options);
|
|
360
360
|
const pages = loadPages(contentDir, docs);
|
|
361
361
|
const absolutePaths = [
|
|
362
362
|
_path2.default.resolve(options.root),
|
|
363
363
|
_path2.default.resolve(contentDir),
|
|
364
364
|
docs.configPath || ""
|
|
365
365
|
];
|
|
366
|
-
const handler =
|
|
366
|
+
const handler = _chunkX2EL3BLHcjs.createFarmDocsHandler.call(void 0, docs, {
|
|
367
367
|
root: options.root,
|
|
368
368
|
srcDir: options.srcDir,
|
|
369
369
|
clientEntry: options.clientEntry,
|
|
@@ -372,7 +372,7 @@ async function compileFarmDocsManifest(docs, options) {
|
|
|
372
372
|
globalStylesheetHref: options.globalStylesheetHref,
|
|
373
373
|
isPathGuarded: options.isPathGuarded
|
|
374
374
|
});
|
|
375
|
-
const apiHandler =
|
|
375
|
+
const apiHandler = _chunk4T25YCZ5cjs.createFarmDocsAPIHandler.call(void 0, {
|
|
376
376
|
rootDir: options.root,
|
|
377
377
|
srcDir: options.srcDir,
|
|
378
378
|
docs,
|
|
@@ -383,7 +383,7 @@ async function compileFarmDocsManifest(docs, options) {
|
|
|
383
383
|
const apiMarkdown = {};
|
|
384
384
|
for (const page of pages) {
|
|
385
385
|
const htmlResponse = await addHandlerRoute(routes, page.href, handler, absolutePaths);
|
|
386
|
-
const markdownPath =
|
|
386
|
+
const markdownPath = _chunkX2EL3BLHcjs.getFarmDocsMarkdownPath.call(void 0, page.href);
|
|
387
387
|
await addHandlerRoute(routes, markdownPath, handler, absolutePaths);
|
|
388
388
|
if (htmlResponse) {
|
|
389
389
|
const socialImagePath = findSocialImagePath(await htmlResponse.text());
|
|
@@ -467,7 +467,7 @@ async function compileFarmDocsManifest(docs, options) {
|
|
|
467
467
|
post: await compileResponse(postResponse, absolutePaths),
|
|
468
468
|
search: {
|
|
469
469
|
pages: publicPages.map((page) => ({
|
|
470
|
-
...
|
|
470
|
+
..._chunkX2EL3BLHcjs.toFarmDocsMarkdownPage.call(void 0, page),
|
|
471
471
|
sourcePath: `farm-docs:${page.slug || "index"}`
|
|
472
472
|
})),
|
|
473
473
|
search: _nullishCoalesce(searchConfig, () => ( true)),
|
|
@@ -645,7 +645,7 @@ async function createFarmRouteRuntimeManifest(options) {
|
|
|
645
645
|
const routes = [];
|
|
646
646
|
for (const [pattern, entry] of options.routeManager.getRoutes()) {
|
|
647
647
|
const routeModule = await options.routeManager.loadRouteModule(entry.modulePath);
|
|
648
|
-
const rendering = await
|
|
648
|
+
const rendering = await _chunkIUBDMDZZcjs.resolveRouteRenderingConfigFromFile.call(void 0, routeModule, entry.modulePath);
|
|
649
649
|
const runtimeConfig = await options.routeManager.resolveRouteRuntimeConfig(pattern);
|
|
650
650
|
routes.push({
|
|
651
651
|
kind: "page",
|
|
@@ -957,7 +957,7 @@ export default async function farmNetlifyHandler(request, context) {
|
|
|
957
957
|
// src/build/strip-platform-config.ts
|
|
958
958
|
|
|
959
959
|
|
|
960
|
-
var PLATFORM_CONFIG_KEYS = /* @__PURE__ */ new Set(["desktop"]);
|
|
960
|
+
var PLATFORM_CONFIG_KEYS = /* @__PURE__ */ new Set(["desktop", "mobile"]);
|
|
961
961
|
var CONFIG_FACTORIES = /* @__PURE__ */ new Set(["defineConfig", "defineFarmConfig"]);
|
|
962
962
|
function isConfigObject(node) {
|
|
963
963
|
return _optionalChain([node, 'optionalAccess', _15 => _15.type]) === "ObjectExpression";
|
|
@@ -992,23 +992,33 @@ function collectConfigObjects(node, found) {
|
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
994
|
function stripPlatformConfigSource(code, parse) {
|
|
995
|
-
if (!code.includes("desktop")) return null;
|
|
995
|
+
if (!code.includes("desktop") && !code.includes("mobile")) return null;
|
|
996
996
|
const objects = [];
|
|
997
997
|
collectConfigObjects(parse(code), objects);
|
|
998
998
|
const removals = [];
|
|
999
999
|
for (const object of objects) {
|
|
1000
1000
|
const properties = object.properties;
|
|
1001
|
-
properties.
|
|
1001
|
+
const removed = properties.map((property) => {
|
|
1002
1002
|
const name = propertyName(property);
|
|
1003
|
-
|
|
1004
|
-
if (index < properties.length - 1)
|
|
1005
|
-
removals.push([property.start, properties[index + 1].start]);
|
|
1006
|
-
else if (index > 0) removals.push([properties[index - 1].end, property.end]);
|
|
1007
|
-
else {
|
|
1008
|
-
const trailingComma = /^\s*,/.exec(code.slice(property.end));
|
|
1009
|
-
removals.push([property.start, property.end + (_nullishCoalesce(_optionalChain([trailingComma, 'optionalAccess', _18 => _18[0], 'access', _19 => _19.length]), () => ( 0)))]);
|
|
1010
|
-
}
|
|
1003
|
+
return !!name && PLATFORM_CONFIG_KEYS.has(name);
|
|
1011
1004
|
});
|
|
1005
|
+
for (let first = 0; first < properties.length; first++) {
|
|
1006
|
+
if (!removed[first]) continue;
|
|
1007
|
+
let last = first;
|
|
1008
|
+
while (last + 1 < properties.length && removed[last + 1]) last++;
|
|
1009
|
+
if (last < properties.length - 1) {
|
|
1010
|
+
removals.push([properties[first].start, properties[last + 1].start]);
|
|
1011
|
+
} else if (first > 0) {
|
|
1012
|
+
removals.push([properties[first - 1].end, properties[last].end]);
|
|
1013
|
+
} else {
|
|
1014
|
+
const trailingComma = /^\s*,/.exec(code.slice(properties[last].end));
|
|
1015
|
+
removals.push([
|
|
1016
|
+
properties[first].start,
|
|
1017
|
+
properties[last].end + (_nullishCoalesce(_optionalChain([trailingComma, 'optionalAccess', _18 => _18[0], 'access', _19 => _19.length]), () => ( 0)))
|
|
1018
|
+
]);
|
|
1019
|
+
}
|
|
1020
|
+
first = last;
|
|
1021
|
+
}
|
|
1012
1022
|
}
|
|
1013
1023
|
if (removals.length === 0) return null;
|
|
1014
1024
|
removals.sort((left, right) => right[0] - left[0]);
|
|
@@ -1667,7 +1677,7 @@ async function findFarmConfigPath(root) {
|
|
|
1667
1677
|
}
|
|
1668
1678
|
function hasFarmServerRuntimePlugins(config) {
|
|
1669
1679
|
return (config.plugins || []).some((plugin) => {
|
|
1670
|
-
if (
|
|
1680
|
+
if (_chunkWAPQWAE6cjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) === false) return false;
|
|
1671
1681
|
return Boolean(
|
|
1672
1682
|
plugin.setup || plugin.init || plugin.ready || plugin.shutdown || plugin.runtime || plugin.router || plugin.render || plugin.beforeRouteMatch || plugin.afterRouteMatch || plugin.beforeRender || plugin.afterRender || plugin.onError || plugin.transformHTML
|
|
1673
1683
|
);
|
|
@@ -1678,7 +1688,7 @@ function hasFarmPluginRoutes(config) {
|
|
|
1678
1688
|
}
|
|
1679
1689
|
function farmServerRuntimePluginsMayHandlePath(config, pathname) {
|
|
1680
1690
|
return (config.plugins || []).some(
|
|
1681
|
-
(plugin) =>
|
|
1691
|
+
(plugin) => _chunkWAPQWAE6cjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false && _chunk47JV57DAcjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, pathname)
|
|
1682
1692
|
);
|
|
1683
1693
|
}
|
|
1684
1694
|
async function discoverMiddlewareRoutes(appDir) {
|
|
@@ -1737,7 +1747,7 @@ async function buildUniversal(config, routeManager, apiRouteManager, serverRende
|
|
|
1737
1747
|
assertFarmDocsRuntimeSupported(config, preset);
|
|
1738
1748
|
const srcDir = config.srcDir || "src";
|
|
1739
1749
|
const distDir = config.distDir || ".farm";
|
|
1740
|
-
const deployOutputDir =
|
|
1750
|
+
const deployOutputDir = _chunkLYWAGXXWcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
1741
1751
|
const lifecyclePluginManager = options.pluginManager;
|
|
1742
1752
|
const productionViteResultPromise = Promise.allSettled([
|
|
1743
1753
|
Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkMF3IA2AWcjs.loadFarmProductionVite.call(void 0, ))))
|
|
@@ -1993,7 +2003,7 @@ async function mergeBuiltFontCss(outputDir, fontCssSource) {
|
|
|
1993
2003
|
}
|
|
1994
2004
|
const normalizedFontCss = typeof fontCss === "string" ? fontCss : Buffer.from(fontCss).toString("utf8");
|
|
1995
2005
|
await fs4.writeFile(fontCssPath, normalizedFontCss);
|
|
1996
|
-
await fs4.writeFile(clientCssPath,
|
|
2006
|
+
await fs4.writeFile(clientCssPath, _chunk474FO3UEcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
|
|
1997
2007
|
}
|
|
1998
2008
|
var IncompleteClientBuildOutputError = class extends Error {
|
|
1999
2009
|
constructor(detail) {
|
|
@@ -2039,7 +2049,7 @@ function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, optio
|
|
|
2039
2049
|
const key = `${_path2.default.resolve(root)}\0${mode}\0${options.asyncOwnerIslands === true}\0${options.serverOwners === true}\0${options.serverTreeLayouts === true}\0${_path2.default.resolve(modulePath)}`;
|
|
2040
2050
|
let plan = cache.get(key);
|
|
2041
2051
|
if (!plan) {
|
|
2042
|
-
plan =
|
|
2052
|
+
plan = _chunk474FO3UEcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
|
|
2043
2053
|
cache.set(key, plan);
|
|
2044
2054
|
}
|
|
2045
2055
|
return { ...plan, isolatedBoundaries: [...plan.isolatedBoundaries] };
|
|
@@ -2047,7 +2057,7 @@ function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, optio
|
|
|
2047
2057
|
async function buildClient(productionVite, config, root, srcDir, outputDir, pageRoutes, layoutRoutes = [], routeSlots = [], isolatedClientBoundaryModules = /* @__PURE__ */ new Set(), hydrationPlanCache = /* @__PURE__ */ new Map(), rendererBuildLifetime, programmaticClientRoutes) {
|
|
2048
2058
|
const viteBuild = productionVite.build;
|
|
2049
2059
|
const { farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.cjs");
|
|
2050
|
-
const { PluginManager: PluginManager2 } = await import("./plugin-
|
|
2060
|
+
const { PluginManager: PluginManager2 } = await import("./plugin-HZIBL3DW.cjs");
|
|
2051
2061
|
const fs4 = await import("fs/promises");
|
|
2052
2062
|
const pluginManager = new PluginManager2({
|
|
2053
2063
|
config,
|
|
@@ -2056,7 +2066,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2056
2066
|
});
|
|
2057
2067
|
pluginManager.addPlugins(config.plugins || []);
|
|
2058
2068
|
const clientPages = [];
|
|
2059
|
-
const integrationProviders =
|
|
2069
|
+
const integrationProviders = _chunkWAPQWAE6cjs.getIntegrationProviders.call(void 0, config.integrations).filter(
|
|
2060
2070
|
(provider) => provider.component || provider.type === "clerk"
|
|
2061
2071
|
);
|
|
2062
2072
|
const unsupportedIntegrationProvider = integrationProviders.find(
|
|
@@ -2067,14 +2077,14 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2067
2077
|
`[Farm.js] isolated hydration kept route-wide because integration provider "${unsupportedIntegrationProvider.name}" does not declare supportsIsolatedHydration: true.`
|
|
2068
2078
|
);
|
|
2069
2079
|
}
|
|
2070
|
-
const isolatedMode =
|
|
2080
|
+
const isolatedMode = _chunk474FO3UEcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
2071
2081
|
_optionalChain([config, 'access', _47 => _47.experimental, 'optionalAccess', _48 => _48.isolatedClientHydration]),
|
|
2072
2082
|
{
|
|
2073
2083
|
serverComponents: _chunkBPNOYILCcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _49 => _49.experimental, 'optionalAccess', _50 => _50.serverComponents])) === "rsc",
|
|
2074
2084
|
hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
|
|
2075
2085
|
}
|
|
2076
2086
|
);
|
|
2077
|
-
const planOptions =
|
|
2087
|
+
const planOptions = _chunk474FO3UEcjs.getFarmClientHydrationPlanOptions.call(void 0,
|
|
2078
2088
|
config.renderer,
|
|
2079
2089
|
Boolean(unsupportedIntegrationProvider)
|
|
2080
2090
|
);
|
|
@@ -2142,7 +2152,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2142
2152
|
);
|
|
2143
2153
|
const syntheticDocsEntry = _optionalChain([config, 'access', _60 => _60.docs, 'optionalAccess', _61 => _61.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
|
|
2144
2154
|
const syntheticDocsPatterns = syntheticDocsEntry ? syntheticDocsEntry === "/" ? ["/", "/[...slug]"] : [syntheticDocsEntry, `${syntheticDocsEntry}/[...slug]`] : [];
|
|
2145
|
-
const markdownPagePlan =
|
|
2155
|
+
const markdownPagePlan = _chunk474FO3UEcjs.createMarkdownPageHydrationPlanner.call(void 0,
|
|
2146
2156
|
_chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx), root),
|
|
2147
2157
|
root,
|
|
2148
2158
|
isolatedMode,
|
|
@@ -2158,7 +2168,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2158
2168
|
pagePlanOptions
|
|
2159
2169
|
)
|
|
2160
2170
|
}));
|
|
2161
|
-
|
|
2171
|
+
_chunk474FO3UEcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
|
|
2162
2172
|
clientLayouts.map((layout) => ({
|
|
2163
2173
|
pattern: layout.pattern,
|
|
2164
2174
|
depth: layout.pattern.split("/").filter(Boolean).length,
|
|
@@ -2190,7 +2200,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2190
2200
|
for (const layout of clientLayouts) {
|
|
2191
2201
|
const matchesBuiltRoute = pageRoutes.some((route) => layoutAppliesToRoute(layout.pattern, routeDirectory(route))) || Boolean(adapterDocsEntry && layoutAppliesToRoute(layout.pattern, adapterDocsEntry));
|
|
2192
2202
|
if (matchesBuiltRoute && layout.suppressedAsyncHydration) {
|
|
2193
|
-
_chunkXN2MB4QZcjs.logger.warn(`\u26A0\uFE0F ${
|
|
2203
|
+
_chunkXN2MB4QZcjs.logger.warn(`\u26A0\uFE0F ${_chunk474FO3UEcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`);
|
|
2194
2204
|
}
|
|
2195
2205
|
}
|
|
2196
2206
|
if (isolatedMode === "analyze") {
|
|
@@ -2214,7 +2224,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2214
2224
|
);
|
|
2215
2225
|
if (metadata.suppressedAsyncHydration) {
|
|
2216
2226
|
_chunkXN2MB4QZcjs.logger.warn(
|
|
2217
|
-
`\u26A0\uFE0F ${
|
|
2227
|
+
`\u26A0\uFE0F ${_chunk474FO3UEcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
|
|
2218
2228
|
);
|
|
2219
2229
|
}
|
|
2220
2230
|
if (metadata.shouldHydrate || metadata.hasIsolatedClientBoundaries || applicableClientLayouts.length > 0) {
|
|
@@ -2239,7 +2249,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2239
2249
|
...applicableClientLayouts.filter((layout) => layout.hasIsolatedClientBoundaries || layout.serverTreeLayout).flatMap((layout) => layout.isolatedBoundaries)
|
|
2240
2250
|
],
|
|
2241
2251
|
// The server renders a server tree only below a hydrating layout.
|
|
2242
|
-
...
|
|
2252
|
+
..._chunk474FO3UEcjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
|
|
2243
2253
|
});
|
|
2244
2254
|
_chunkXN2MB4QZcjs.logger.info(`\u{1F4F1} Found hydratable route: ${route.pattern} -> ${route.modulePath}`);
|
|
2245
2255
|
}
|
|
@@ -2275,7 +2285,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2275
2285
|
}
|
|
2276
2286
|
const clientRouteSlots = routeSlots.filter((slot) => {
|
|
2277
2287
|
try {
|
|
2278
|
-
return
|
|
2288
|
+
return _chunk474FO3UEcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root).shouldHydrate;
|
|
2279
2289
|
} catch (error) {
|
|
2280
2290
|
_chunkXN2MB4QZcjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
|
|
2281
2291
|
return false;
|
|
@@ -2303,9 +2313,9 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2303
2313
|
config.renderer,
|
|
2304
2314
|
config.publicRuntimeConfig,
|
|
2305
2315
|
config.trailingSlash,
|
|
2306
|
-
|
|
2316
|
+
_chunkWAPQWAE6cjs.getIntegrationProviders.call(void 0, config.integrations),
|
|
2307
2317
|
config.basePath,
|
|
2308
|
-
|
|
2318
|
+
_chunk474FO3UEcjs.generateClientCachePersistenceCode.call(void 0, _chunk474FO3UEcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
|
|
2309
2319
|
adapterOwnsDocsRuntime ? _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0,
|
|
2310
2320
|
_chunkBPNOYILCcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _67 => _67.experimental, 'optionalAccess', _68 => _68.serverComponents])) === "islands"
|
|
2311
2321
|
);
|
|
@@ -2394,7 +2404,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2394
2404
|
}
|
|
2395
2405
|
},
|
|
2396
2406
|
plugins: [
|
|
2397
|
-
|
|
2407
|
+
_chunk474FO3UEcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
2398
2408
|
createFarmPrivateClientSourcemapsPlugin({
|
|
2399
2409
|
outDir: _path2.default.join(_path2.default.dirname(outputDir), FARM_CLIENT_SOURCEMAPS_DIR)
|
|
2400
2410
|
}),
|
|
@@ -2419,7 +2429,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2419
2429
|
...rendererVitePlugins,
|
|
2420
2430
|
...config.vite.plugins || [],
|
|
2421
2431
|
farmServerOnlyEntriesPlugin(),
|
|
2422
|
-
|
|
2432
|
+
_chunk474FO3UEcjs.farmDocsClientConfigPlugin.call(void 0,
|
|
2423
2433
|
adapterOwnsDocsRuntime ? _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
|
|
2424
2434
|
),
|
|
2425
2435
|
// Plugin to redirect @farm.js/core imports to client-only exports
|
|
@@ -2481,7 +2491,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2481
2491
|
} : void 0,
|
|
2482
2492
|
// Ensure React is bundled for client
|
|
2483
2493
|
resolve: {
|
|
2484
|
-
alias:
|
|
2494
|
+
alias: _chunk474FO3UEcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
|
|
2485
2495
|
dedupe: [...config.renderer.dedupe || []]
|
|
2486
2496
|
},
|
|
2487
2497
|
// Optimize dependencies - exclude server-side code from client bundle
|
|
@@ -2494,7 +2504,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2494
2504
|
]
|
|
2495
2505
|
}
|
|
2496
2506
|
};
|
|
2497
|
-
await viteBuild(
|
|
2507
|
+
await viteBuild(_chunk474FO3UEcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite));
|
|
2498
2508
|
await mergeBuiltFontCss(outputDir);
|
|
2499
2509
|
await validateClientBuildOutput(root, srcDir, outputDir);
|
|
2500
2510
|
} finally {
|
|
@@ -3369,7 +3379,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
|
|
|
3369
3379
|
direction: {}
|
|
3370
3380
|
}, plugins = [], renderer = _chunkRD623KW4cjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false) {
|
|
3371
3381
|
const toImportPath = (targetPath) => targetPath.replace(/\\/g, "/");
|
|
3372
|
-
const clientPluginEntry =
|
|
3382
|
+
const clientPluginEntry = _chunk474FO3UEcjs.generateFarmClientPluginEntryCode.call(void 0,
|
|
3373
3383
|
plugins,
|
|
3374
3384
|
root,
|
|
3375
3385
|
srcDir,
|
|
@@ -3380,7 +3390,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
|
|
|
3380
3390
|
import { createRoot, hydrateRoot } from "react-dom/client";` : appSetupPath ? `import React, { createRoot, hydrateRoot, configureApp as __farmConfigureApp } from ${JSON.stringify(renderer.client)};
|
|
3381
3391
|
import __farmAppSetup from ${JSON.stringify(_chunkXN2MB4QZcjs.toPosixPath.call(void 0, appSetupPath))};
|
|
3382
3392
|
__farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};`;
|
|
3383
|
-
const providerClientCode =
|
|
3393
|
+
const providerClientCode = _chunk474FO3UEcjs.generateFarmIntegrationProviderClientCode.call(void 0,
|
|
3384
3394
|
integrationProviders,
|
|
3385
3395
|
root,
|
|
3386
3396
|
_nullishCoalesce(renderer.componentExtensions, () => ( []))
|
|
@@ -3461,7 +3471,7 @@ function isFarmDocsPath() {
|
|
|
3461
3471
|
// Farm.js Client Runtime (no client components)
|
|
3462
3472
|
${cssImport}
|
|
3463
3473
|
${layoutImports}
|
|
3464
|
-
import { createClientCancellation, createClientPluginManager, getFarmIslandValueHeaders, getHashTargetElement, installChunkErrorRecovery, isFarmBlockedNavigationURL, isFarmExternalNavigationURL, reconcileFarmDocumentHead, setFarmBasePath, setFarmTrailingSlashPreference, stripFarmBasePath } from "@farm.js/core/internal/client-runtime";
|
|
3474
|
+
import { createClientCancellation, createClientPluginManager, getFarmIslandValueHeaders, getHashTargetElement, installChunkErrorRecovery, isFarmBlockedNavigationURL, isFarmExternalNavigationURL, reconcileFarmDocumentHead, runFarmNavigationDelegates, setFarmBasePath, setFarmTrailingSlashPreference, stripFarmBasePath } from "@farm.js/core/internal/client-runtime";
|
|
3465
3475
|
import { createFarmDeploymentMismatchError, createFarmDeploymentRequestHeaders, isFarmDeploymentMismatchResponse } from "@farm.js/core/deployment";
|
|
3466
3476
|
${clientPluginEntry.imports}
|
|
3467
3477
|
${clientCachePersistence.imports}
|
|
@@ -3526,6 +3536,15 @@ ${generateUniversalRouterStateProperties()}
|
|
|
3526
3536
|
if (action === "pop") this.revertBlockedPopState(from);
|
|
3527
3537
|
return;
|
|
3528
3538
|
}
|
|
3539
|
+
// A refresh re-renders the page on screen; only a move to another page is offered.
|
|
3540
|
+
if (
|
|
3541
|
+
action !== "pop" &&
|
|
3542
|
+
!(options.refresh && to === from) &&
|
|
3543
|
+
(await runFarmNavigationDelegates({ url: url.href, from, to, action }))
|
|
3544
|
+
) {
|
|
3545
|
+
this.cancelActiveNavigation();
|
|
3546
|
+
return;
|
|
3547
|
+
}
|
|
3529
3548
|
if (action === "pop") {
|
|
3530
3549
|
this.currentHistoryIndex = readHistoryIndex(options.popState);
|
|
3531
3550
|
this.currentHistoryState = options.popState;
|
|
@@ -3826,7 +3845,7 @@ ${layoutImports}
|
|
|
3826
3845
|
${rendererClientImports}
|
|
3827
3846
|
${isolatedHydrationImport}
|
|
3828
3847
|
${providerClientCode.imports}
|
|
3829
|
-
import { createClientCancellation, createClientPluginManager, getFarmIslandValueHeaders, getHashTargetElement, installChunkErrorRecovery, isFarmBlockedNavigationURL, isFarmExternalNavigationURL, reconcileFarmDocumentHead, scheduleFarmIslandHydration, searchParamsToObject, setFarmBasePath, setFarmTrailingSlashPreference, stripFarmBasePath } from "@farm.js/core/internal/client-runtime";
|
|
3848
|
+
import { createClientCancellation, createClientPluginManager, getFarmIslandValueHeaders, getHashTargetElement, installChunkErrorRecovery, isFarmBlockedNavigationURL, isFarmExternalNavigationURL, reconcileFarmDocumentHead, runFarmNavigationDelegates, scheduleFarmIslandHydration, searchParamsToObject, setFarmBasePath, setFarmTrailingSlashPreference, stripFarmBasePath } from "@farm.js/core/internal/client-runtime";
|
|
3830
3849
|
import { createFarmDeploymentMismatchError, createFarmDeploymentRequestHeaders, isFarmDeploymentMismatchResponse } from "@farm.js/core/deployment";
|
|
3831
3850
|
import { createFarmRouter, isFarmRouteActive, matchFarmRoute } from "@farm.js/core/router";
|
|
3832
3851
|
${clientPluginEntry.imports}
|
|
@@ -3905,7 +3924,7 @@ function hasHydratableLayout(pathname) {
|
|
|
3905
3924
|
});
|
|
3906
3925
|
}
|
|
3907
3926
|
|
|
3908
|
-
${
|
|
3927
|
+
${_chunk474FO3UEcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
|
|
3909
3928
|
// Wrap a page element with applicable layouts
|
|
3910
3929
|
function wrapWithLayouts(pageElement, pathname, params) {
|
|
3911
3930
|
const layouts = getApplicableLayouts(pathname);
|
|
@@ -3940,7 +3959,7 @@ function createLayoutPageBoundary(route, pageElement, serverHtml) {
|
|
|
3940
3959
|
return React.createElement("div", props, pageElement);
|
|
3941
3960
|
}
|
|
3942
3961
|
let farmLastRouteState = null;
|
|
3943
|
-
${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${
|
|
3962
|
+
${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${_chunk474FO3UEcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
|
|
3944
3963
|
function farmTreeLayoutsOf(pathname) {
|
|
3945
3964
|
return getApplicableLayouts(pathname).filter(function(layout) {
|
|
3946
3965
|
return layout.serverTree === true;
|
|
@@ -4595,6 +4614,15 @@ ${islandValues ? ` // Islands mode: navigations name the layouts on screen, and
|
|
|
4595
4614
|
if (action === "pop") this.revertBlockedPopState(from);
|
|
4596
4615
|
return;
|
|
4597
4616
|
}
|
|
4617
|
+
// A refresh re-renders the page on screen; only a move to another page is offered.
|
|
4618
|
+
if (
|
|
4619
|
+
action !== "pop" &&
|
|
4620
|
+
!(options.refresh && to === from) &&
|
|
4621
|
+
(await runFarmNavigationDelegates({ url: url.href, from, to, action }))
|
|
4622
|
+
) {
|
|
4623
|
+
this.cancelActiveNavigation();
|
|
4624
|
+
return;
|
|
4625
|
+
}
|
|
4598
4626
|
if (action === "pop") {
|
|
4599
4627
|
this.currentHistoryIndex = readHistoryIndex(options.popState);
|
|
4600
4628
|
this.currentHistoryState = options.popState;
|
|
@@ -5049,7 +5077,7 @@ void hydrate();
|
|
|
5049
5077
|
async function buildSSRInMemory(productionVite, config, root, routeManager, apiRouteManager, serverRenderer, preset, collectedPageRoutes, collectedLayoutRoutes, collectedRouteSlots, isolatedClientBoundaryModules, hydrationPlanCache, rendererBuildLifetime) {
|
|
5050
5078
|
const viteBuild = productionVite.build;
|
|
5051
5079
|
const { farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.cjs");
|
|
5052
|
-
const { PluginManager: PluginManager2 } = await import("./plugin-
|
|
5080
|
+
const { PluginManager: PluginManager2 } = await import("./plugin-HZIBL3DW.cjs");
|
|
5053
5081
|
const fs4 = await import("fs/promises");
|
|
5054
5082
|
const pluginManager = new PluginManager2({
|
|
5055
5083
|
config,
|
|
@@ -5166,7 +5194,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5166
5194
|
}
|
|
5167
5195
|
const middlewareRoutes = await discoverMiddlewareRoutes(appDirs);
|
|
5168
5196
|
const instrumentationPath = _chunkBRWIVOV4cjs.resolveFarmInstrumentationFile.call(void 0, root, config.srcDir || "src");
|
|
5169
|
-
const notFoundPath =
|
|
5197
|
+
const notFoundPath = _chunk474FO3UEcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
|
|
5170
5198
|
if (notFoundPath) _chunkXN2MB4QZcjs.logger.info(`\u{1F4CB} Found custom 404 page: ${notFoundPath}`);
|
|
5171
5199
|
layoutRoutes.sort((a, b) => {
|
|
5172
5200
|
const depthA = a.pattern.split("/").filter(Boolean).length;
|
|
@@ -5183,13 +5211,13 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5183
5211
|
const hasServerRuntimeIntegrations = configuredIntegrationValues.some(
|
|
5184
5212
|
(integration) => typeof integration === "object" && integration !== null && (!("serverRuntime" in integration) || integration.serverRuntime !== false)
|
|
5185
5213
|
);
|
|
5186
|
-
const hasIntegrationProviders =
|
|
5214
|
+
const hasIntegrationProviders = _chunkWAPQWAE6cjs.getIntegrationProviders.call(void 0, config.integrations).some(
|
|
5187
5215
|
(provider) => provider.component || provider.type === "clerk"
|
|
5188
5216
|
);
|
|
5189
5217
|
const hasObservabilityHandler = !!config.observability && typeof config.observability === "object" && "onEvent" in config.observability;
|
|
5190
5218
|
const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _75 => _75.mdx, 'optionalAccess', _76 => _76.components]));
|
|
5191
5219
|
const hasMiddlewareConfig = _chunkVCKGOXFIcjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
|
|
5192
|
-
const hasRouteContextConfig =
|
|
5220
|
+
const hasRouteContextConfig = _chunkLYWAGXXWcjs.hasCustomFarmRouteContext.call(void 0, config);
|
|
5193
5221
|
const hasServerRuntimePlugins = hasFarmServerRuntimePlugins(config);
|
|
5194
5222
|
const hasPluginRoutes = hasFarmPluginRoutes(config);
|
|
5195
5223
|
const hasServerCacheConfig = hasFarmServerCacheConfig(config.cache);
|
|
@@ -5199,9 +5227,9 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5199
5227
|
const hasConfiguredRuntimePlugins = Boolean(
|
|
5200
5228
|
hasRuntimeConfigModule && (config.plugins || []).length > 0
|
|
5201
5229
|
);
|
|
5202
|
-
if (
|
|
5230
|
+
if (_chunk4T25YCZ5cjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
|
|
5203
5231
|
const adapterGuardedPaths = new Set(getFarmDocsGuardedPaths(config, middlewareRoutes));
|
|
5204
|
-
|
|
5232
|
+
_chunk4T25YCZ5cjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
|
|
5205
5233
|
config.docs,
|
|
5206
5234
|
{ root, srcDir: config.srcDir },
|
|
5207
5235
|
(pathname) => adapterGuardedPaths.has(pathname)
|
|
@@ -5210,7 +5238,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5210
5238
|
const farmDocsCspNonceMarker = _chunk6JHZPB52cjs.createFarmCspNonce.call(void 0, config.security);
|
|
5211
5239
|
const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _77 => _77.docs, 'optionalAccess', _78 => _78.enabled]) && _chunkE552H232cjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? await _chunkHNAISJFDcjs._runWithFarmCspNonce.call(void 0,
|
|
5212
5240
|
farmDocsCspNonceMarker,
|
|
5213
|
-
async () => _optionalChain([config, 'access', _79 => _79.docs, 'access', _80 => _80.adapter, 'optionalAccess', _81 => _81.server]) ? await
|
|
5241
|
+
async () => _optionalChain([config, 'access', _79 => _79.docs, 'access', _80 => _80.adapter, 'optionalAccess', _81 => _81.server]) ? await _chunk4T25YCZ5cjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
|
|
5214
5242
|
root,
|
|
5215
5243
|
srcDir: config.srcDir,
|
|
5216
5244
|
clientEntry: FARM_CLIENT_JS_SRC_PLACEHOLDER,
|
|
@@ -5372,7 +5400,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5372
5400
|
__FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _87 => _87.env, 'optionalAccess', _88 => _88.public]) || {})
|
|
5373
5401
|
},
|
|
5374
5402
|
plugins: [
|
|
5375
|
-
|
|
5403
|
+
_chunk474FO3UEcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
5376
5404
|
...tailwindVitePlugin ? [tailwindVitePlugin] : [],
|
|
5377
5405
|
...rendererVitePlugins,
|
|
5378
5406
|
...config.vite.plugins || [],
|
|
@@ -5433,7 +5461,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5433
5461
|
resolve: {
|
|
5434
5462
|
alias: [
|
|
5435
5463
|
...shouldAliasReactServerToWebBuild(config.renderer, preset) ? [createFarmReactWebServerAlias(hasReactDomEdgeServerBuild(root))] : [],
|
|
5436
|
-
...Object.entries(
|
|
5464
|
+
...Object.entries(_chunk474FO3UEcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
|
|
5437
5465
|
([find, replacement]) => ({ find, replacement })
|
|
5438
5466
|
)
|
|
5439
5467
|
],
|
|
@@ -5441,7 +5469,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
5441
5469
|
dedupe: [...config.renderer.dedupe || []]
|
|
5442
5470
|
}
|
|
5443
5471
|
};
|
|
5444
|
-
await viteBuild(
|
|
5472
|
+
await viteBuild(_chunk474FO3UEcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
|
|
5445
5473
|
} finally {
|
|
5446
5474
|
if (postcssConfigDir) {
|
|
5447
5475
|
try {
|
|
@@ -5478,7 +5506,7 @@ function readFarmPageLastModified(pageRoutes) {
|
|
|
5478
5506
|
}
|
|
5479
5507
|
function getFarmDocsGuardedPaths(config, middlewareRoutes) {
|
|
5480
5508
|
if (!_optionalChain([config, 'access', _89 => _89.docs, 'optionalAccess', _90 => _90.enabled])) return [];
|
|
5481
|
-
const contentDir =
|
|
5509
|
+
const contentDir = _chunkX2EL3BLHcjs.resolveFarmDocsContentDir.call(void 0, config.docs, {
|
|
5482
5510
|
root: config.root,
|
|
5483
5511
|
srcDir: config.srcDir
|
|
5484
5512
|
});
|
|
@@ -5486,7 +5514,7 @@ function getFarmDocsGuardedPaths(config, middlewareRoutes) {
|
|
|
5486
5514
|
config: { middleware: config.middleware, integrations: config.integrations },
|
|
5487
5515
|
middlewareRoutes
|
|
5488
5516
|
};
|
|
5489
|
-
return
|
|
5517
|
+
return _chunkX2EL3BLHcjs.discoverFarmDocsPages.call(void 0, contentDir, config.docs).flatMap((page) => [page.href, _chunkX2EL3BLHcjs.getFarmDocsMarkdownPath.call(void 0, page.href)]).filter((pathname) => _chunkVCKGOXFIcjs.farmPathGuardCoversPage.call(void 0, guards, pathname));
|
|
5490
5518
|
}
|
|
5491
5519
|
function getFarmAppOwnedDocsEnginePaths(agent, applicationMetadataRoutes) {
|
|
5492
5520
|
const llmsTxt = _optionalChain([agent, 'optionalAccess', _91 => _91.llmsTxt]);
|
|
@@ -5890,7 +5918,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
5890
5918
|
);
|
|
5891
5919
|
const hasMiddlewareRuntime = middlewareRoutes.length > 0 || _chunkVCKGOXFIcjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
|
|
5892
5920
|
const farmDocsFontAssets = _optionalChain([config, 'access', _116 => _116.docs, 'optionalAccess', _117 => _117.enabled]) ? _chunkERMUL73Lcjs.toFarmDocsPublicFontAssets.call(void 0, _chunkERMUL73Lcjs.resolveFarmDocsFontAssets.call(void 0, config.root)) : [];
|
|
5893
|
-
const integrationProviders =
|
|
5921
|
+
const integrationProviders = _chunkWAPQWAE6cjs.getIntegrationProviders.call(void 0, config.integrations);
|
|
5894
5922
|
const renderedIntegrationProviders = integrationProviders.filter(
|
|
5895
5923
|
(provider) => provider.component || provider.type === "clerk"
|
|
5896
5924
|
);
|
|
@@ -5899,7 +5927,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
5899
5927
|
`Integration provider components are not supported by the "${config.renderer.name}" renderer.`
|
|
5900
5928
|
);
|
|
5901
5929
|
}
|
|
5902
|
-
const providerServerModules =
|
|
5930
|
+
const providerServerModules = _chunk474FO3UEcjs.generateFarmIntegrationProviderServerModules.call(void 0,
|
|
5903
5931
|
renderedIntegrationProviders,
|
|
5904
5932
|
config.root,
|
|
5905
5933
|
_nullishCoalesce(config.renderer.componentExtensions, () => ( []))
|
|
@@ -5919,14 +5947,14 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
5919
5947
|
const unsupportedIntegrationProvider = renderedIntegrationProviders.find(
|
|
5920
5948
|
(provider) => provider.supportsIsolatedHydration !== true
|
|
5921
5949
|
);
|
|
5922
|
-
const isolatedHydrationMode =
|
|
5950
|
+
const isolatedHydrationMode = _chunk474FO3UEcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
5923
5951
|
_optionalChain([config, 'access', _120 => _120.experimental, 'optionalAccess', _121 => _121.isolatedClientHydration]),
|
|
5924
5952
|
{
|
|
5925
5953
|
serverComponents: _chunkBPNOYILCcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _122 => _122.experimental, 'optionalAccess', _123 => _123.serverComponents])) === "rsc",
|
|
5926
5954
|
hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
|
|
5927
5955
|
}
|
|
5928
5956
|
);
|
|
5929
|
-
const hydrationPlanOptions =
|
|
5957
|
+
const hydrationPlanOptions = _chunk474FO3UEcjs.getFarmClientHydrationPlanOptions.call(void 0,
|
|
5930
5958
|
config.renderer,
|
|
5931
5959
|
Boolean(unsupportedIntegrationProvider)
|
|
5932
5960
|
);
|
|
@@ -5944,7 +5972,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
5944
5972
|
{ ...hydrationPlanOptions, serverTreeLayouts: pageHydrationPlanOptions.serverOwners }
|
|
5945
5973
|
)
|
|
5946
5974
|
}));
|
|
5947
|
-
const markdownPagePlan =
|
|
5975
|
+
const markdownPagePlan = _chunk474FO3UEcjs.createMarkdownPageHydrationPlanner.call(void 0,
|
|
5948
5976
|
_chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx), config.root),
|
|
5949
5977
|
config.root,
|
|
5950
5978
|
isolatedHydrationMode,
|
|
@@ -5962,7 +5990,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
5962
5990
|
)
|
|
5963
5991
|
])
|
|
5964
5992
|
);
|
|
5965
|
-
|
|
5993
|
+
_chunk474FO3UEcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
|
|
5966
5994
|
layoutHydrationPlans.map((layout) => ({
|
|
5967
5995
|
pattern: layout.pattern,
|
|
5968
5996
|
depth: layout.pattern.split("/").filter(Boolean).length,
|
|
@@ -6028,7 +6056,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
6028
6056
|
`import * as ${varName} from ${toVirtualEntryImportSpecifier(route.modulePath)};`
|
|
6029
6057
|
);
|
|
6030
6058
|
const clientMetadata = pageHydrationPlans.get(route.modulePath);
|
|
6031
|
-
const renderingDirective =
|
|
6059
|
+
const renderingDirective = _chunkIUBDMDZZcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
|
|
6032
6060
|
pageRegistrations.push(`
|
|
6033
6061
|
{
|
|
6034
6062
|
pattern: ${JSON.stringify(route.pattern)},${route.directory ? `
|
|
@@ -6036,7 +6064,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
6036
6064
|
module: ${varName},
|
|
6037
6065
|
shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},${clientMetadata.shouldHydrate ? `
|
|
6038
6066
|
clientModule: ${JSON.stringify(_chunkXN2MB4QZcjs.toViteModuleId.call(void 0, route.modulePath, config.root))},` : ""}
|
|
6039
|
-
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${
|
|
6067
|
+
islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunk474FO3UEcjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${renderingDirective ? `
|
|
6040
6068
|
rendering: ${JSON.stringify(renderingDirective)},` : ""}
|
|
6041
6069
|
${route.source !== void 0 ? `markdownSource: {
|
|
6042
6070
|
source: ${JSON.stringify(route.source)},
|
|
@@ -6255,7 +6283,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
6255
6283
|
import { getSharedLayoutPrefixLength, handleFarmFormActionRequest, ignoreFarmHeldValues, installFarmIslandValues, parseFarmLayoutChainHeader } from "@farm.js/core/internal/production-runtime";
|
|
6256
6284
|
import { installFarmIslandsServer } from "@farm.js/core/internal/islands-server";
|
|
6257
6285
|
installFarmIslandsServer();
|
|
6258
|
-
const farmFormActionsConfig = ${JSON.stringify(
|
|
6286
|
+
const farmFormActionsConfig = ${JSON.stringify(_chunk6QA2SXVHcjs.resolveServerActionsConfig.call(void 0, config.serverActions))};
|
|
6259
6287
|
installFarmIslandValues();
|
|
6260
6288
|
${islandsActionKeyCode()}
|
|
6261
6289
|
${FARM_SEGMENT_NAVIGATION_SERVER_RUNTIME}` : ""}`;
|
|
@@ -6309,7 +6337,7 @@ ${integrationRuntimeImport}
|
|
|
6309
6337
|
${nativeAuth.importSource}
|
|
6310
6338
|
${nativeMCP.importSource}
|
|
6311
6339
|
`;
|
|
6312
|
-
const imageRuntime =
|
|
6340
|
+
const imageRuntime = _chunk474FO3UEcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
|
|
6313
6341
|
const imageRuntimeImport = imageRuntime === "none" ? "" : `import { _withFarmImageSourceClientAddress, createCloudflareImageTransformer, createFarmImageHandler } from "@farm.js/core/image/server";`;
|
|
6314
6342
|
const imageNodeRuntimeImport = imageRuntime === "node" ? `import { createNodeImageFetcher, createNodeImageUrlValidator, createSharpImageTransformer } from "@farm.js/core/image/sharp";` : "";
|
|
6315
6343
|
const apiHandlerCode = apiRoutes.length > 0 ? `
|
|
@@ -6488,7 +6516,7 @@ const farmResolvedRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs);
|
|
|
6488
6516
|
|
|
6489
6517
|
function FarmDefault404Page() {
|
|
6490
6518
|
return React.createElement(React.Fragment, null,
|
|
6491
|
-
React.createElement("style", null, ${JSON.stringify(
|
|
6519
|
+
React.createElement("style", null, ${JSON.stringify(_chunk474FO3UEcjs.DEFAULT_NOT_FOUND_STYLES)}),
|
|
6492
6520
|
React.createElement("main", {
|
|
6493
6521
|
className: "farm-default-not-found",
|
|
6494
6522
|
"aria-labelledby": "farm-default-not-found-title",
|
|
@@ -6791,12 +6819,12 @@ function fetchFarmInnerRequest(request, context) {
|
|
|
6791
6819
|
}
|
|
6792
6820
|
const farmLocalAPIBasePath = ${JSON.stringify(_chunkB5BBTPJQcjs.resolveFarmAPIServerBasePath.call(void 0, config.api))};
|
|
6793
6821
|
const farmOpenAPIReference = ${JSON.stringify(openAPIReference)};
|
|
6794
|
-
${_optionalChain([config, 'access', _155 => _155.agent, 'optionalAccess', _156 => _156.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(
|
|
6822
|
+
${_optionalChain([config, 'access', _155 => _155.agent, 'optionalAccess', _156 => _156.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkGOOK2J2Wcjs.resolveFarmApiCatalogInput.call(void 0, config))};
|
|
6795
6823
|
` : ""}${_optionalChain([config, 'access', _157 => _157.agent, 'optionalAccess', _158 => _158.manifest]) !== false ? `const farmAppManifestInput = ${JSON.stringify(
|
|
6796
|
-
|
|
6824
|
+
_chunkGOOK2J2Wcjs.resolveFarmAppManifestInput.call(void 0, config, {
|
|
6797
6825
|
build: config.deploymentId,
|
|
6798
|
-
packages:
|
|
6799
|
-
webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ?
|
|
6826
|
+
packages: _chunk474FO3UEcjs.resolveFarmAppPackages.call(void 0, config.root),
|
|
6827
|
+
webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunk474FO3UEcjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
|
|
6800
6828
|
})
|
|
6801
6829
|
)};
|
|
6802
6830
|
${servesDefaultMCP ? "farmAppManifestInput.defaultMCP = getFarmDefaultMCPServer;\n" : ""}// A guard written for an MCP server's path keeps its tools out of the public view.
|
|
@@ -7962,7 +7990,7 @@ ${servesDefaultMCP ? `// agent.mcp: the default read-only MCP server at /mcp, as
|
|
|
7962
7990
|
// aside for a page route that answers /mcp and for any MCP server published or
|
|
7963
7991
|
// registered at runtime, such as the docs engine's.
|
|
7964
7992
|
const farmDefaultMCPServer = ${JSON.stringify(
|
|
7965
|
-
_chunkSBABQKPTcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root),
|
|
7993
|
+
_chunkSBABQKPTcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunkRHOR2J6Vcjs.FARM_VERSION)
|
|
7966
7994
|
)};
|
|
7967
7995
|
let farmDefaultMCPRouteFree;
|
|
7968
7996
|
function getFarmDefaultMCPServer() {
|
|
@@ -8372,7 +8400,7 @@ ${hasInfraAnalyticsRuntime ? `
|
|
|
8372
8400
|
// endpoints, Markdown mirrors, and docs pages have no app route pattern, so they are
|
|
8373
8401
|
// labeled here; route.pattern keeps meaning the matched app route for plugins.
|
|
8374
8402
|
const farmBuiltInRoutePaths = new Set(${JSON.stringify(
|
|
8375
|
-
|
|
8403
|
+
_chunkGOOK2J2Wcjs.listFarmBuiltInRoutePaths.call(void 0, {
|
|
8376
8404
|
agent: {
|
|
8377
8405
|
...config.agent,
|
|
8378
8406
|
aiCatalog: servesAiCatalog,
|
|
@@ -9060,7 +9088,7 @@ ${hasServerRuntimeIntegrations ? `
|
|
|
9060
9088
|
// agent.manifest: /.well-known/farmjs.json (and 0.1.34's /.well-known/farmjs), the app's
|
|
9061
9089
|
// public manifest, the same document for every request.
|
|
9062
9090
|
if (
|
|
9063
|
-
[${JSON.stringify(
|
|
9091
|
+
[${JSON.stringify(_chunkGOOK2J2Wcjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunkGOOK2J2Wcjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
|
|
9064
9092
|
normalizeRuntimePath(routePathname),
|
|
9065
9093
|
)
|
|
9066
9094
|
) {
|
|
@@ -9072,7 +9100,7 @@ ${hasServerRuntimeIntegrations ? `
|
|
|
9072
9100
|
` : ""}
|
|
9073
9101
|
${_optionalChain([config, 'access', _182 => _182.agent, 'optionalAccess', _183 => _183.apiCatalog]) ? `
|
|
9074
9102
|
// agent.apiCatalog: list the OpenAPI and MCP surfaces at the RFC 9727 path.
|
|
9075
|
-
if (normalizeRuntimePath(routePathname) === ${JSON.stringify(
|
|
9103
|
+
if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkGOOK2J2Wcjs.FARM_API_CATALOG_PATH)}) {
|
|
9076
9104
|
return applyProductionMiddlewareHeaders(
|
|
9077
9105
|
createFarmApiCatalogResponse(request.method, farmApiCatalogInput, request),
|
|
9078
9106
|
middlewareHeaders,
|
|
@@ -10578,7 +10606,7 @@ function getPhysicalPrerenderBypassReason(options) {
|
|
|
10578
10606
|
}
|
|
10579
10607
|
if (_chunkVCKGOXFIcjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
|
|
10580
10608
|
if (_chunkVCKGOXFIcjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
|
|
10581
|
-
if (
|
|
10609
|
+
if (_chunkLYWAGXXWcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
|
|
10582
10610
|
if (farmServerRuntimePluginsMayHandlePath(config, pathname)) return "server runtime plugin";
|
|
10583
10611
|
const manifestEntry = getManifestPageEntry(routeRuntimeManifest, pathname);
|
|
10584
10612
|
if (_optionalChain([manifestEntry, 'optionalAccess', _200 => _200.rendering]) === "dynamic") return "dynamic runtime manifest";
|
|
@@ -10611,10 +10639,10 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
|
|
|
10611
10639
|
const nitroBuilder = nitroBuilderResult.value;
|
|
10612
10640
|
const isVercel = preset === "vercel" || preset === "vercel-edge";
|
|
10613
10641
|
const isCloudflareWorker = preset === "cloudflare-module";
|
|
10614
|
-
const outputDir =
|
|
10642
|
+
const outputDir = _chunkLYWAGXXWcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
10615
10643
|
const runtimeServerOutputDir = isVercel ? _path2.default.join(outputDir, "functions", "__nitro.func") : _path2.default.join(outputDir, "server");
|
|
10616
10644
|
const ssrOutputDir = _path2.default.join(root, distDir, "ssr");
|
|
10617
|
-
const imageRuntime =
|
|
10645
|
+
const imageRuntime = _chunk474FO3UEcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
|
|
10618
10646
|
const hasGeneratedMetadataImages = Array.from(routeManager.getMetadataImages().values()).some(
|
|
10619
10647
|
(image) => image.sourceType === "module"
|
|
10620
10648
|
);
|
|
@@ -10635,7 +10663,7 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
|
|
|
10635
10663
|
const ssgCollectionPromise = routeManager.collectSSGPages();
|
|
10636
10664
|
const middlewareRoutesPromise = discoverMiddlewareRoutes(_chunk5Y2P454Ocjs.getFarmAppDirectories.call(void 0, config));
|
|
10637
10665
|
const configuredResponseRoutesPromise = Promise.all([config.redirects(), config.rewrites()]);
|
|
10638
|
-
const farmWorkflows = await
|
|
10666
|
+
const farmWorkflows = await _chunkIQXGHGZFcjs.prepareFarmWorkflowsForNitro.call(void 0, config);
|
|
10639
10667
|
const farmCron = await _chunkC7425KDGcjs.prepareFarmCronForNitro.call(void 0, config);
|
|
10640
10668
|
const [{ ssg: ssgPages }, middlewareRoutes, [configuredRedirects, configuredRewrites]] = await Promise.all([
|
|
10641
10669
|
ssgCollectionPromise,
|
|
@@ -11213,13 +11241,13 @@ function toFarmNodeResponse(request, response) {
|
|
|
11213
11241
|
}
|
|
11214
11242
|
if (prerenderRoutes.length > 0) {
|
|
11215
11243
|
_chunkXN2MB4QZcjs.logger.info(`\u{1F4C4} Pre-rendering ${prerenderRoutes.length} SSG page(s)`);
|
|
11216
|
-
const previousPrerender = process.env[
|
|
11217
|
-
process.env[
|
|
11244
|
+
const previousPrerender = process.env[_chunkHYN3LLG7cjs.FARM_PRERENDER_ENV];
|
|
11245
|
+
process.env[_chunkHYN3LLG7cjs.FARM_PRERENDER_ENV] = "1";
|
|
11218
11246
|
try {
|
|
11219
11247
|
await nitroBuilder.prerender(nitroInstance);
|
|
11220
11248
|
} finally {
|
|
11221
|
-
if (previousPrerender === void 0) delete process.env[
|
|
11222
|
-
else process.env[
|
|
11249
|
+
if (previousPrerender === void 0) delete process.env[_chunkHYN3LLG7cjs.FARM_PRERENDER_ENV];
|
|
11250
|
+
else process.env[_chunkHYN3LLG7cjs.FARM_PRERENDER_ENV] = previousPrerender;
|
|
11223
11251
|
}
|
|
11224
11252
|
}
|
|
11225
11253
|
const sharpRuntimeStagePromise = imageRuntime === "node" ? stageSharpRuntime(config, root, distDir, fs4, preset) : Promise.resolve(null);
|
|
@@ -11387,7 +11415,7 @@ async function postProcessVercelOutput(root, outputDir, fs4, config, farmWorkflo
|
|
|
11387
11415
|
presetRoutes: Array.isArray(vercelConfig.routes) ? vercelConfig.routes : [],
|
|
11388
11416
|
runtimeRoutes
|
|
11389
11417
|
});
|
|
11390
|
-
const vercelConfigWithWorkflowCrons =
|
|
11418
|
+
const vercelConfigWithWorkflowCrons = _chunkIQXGHGZFcjs.applyFarmWorkflowVercelCrons.call(void 0,
|
|
11391
11419
|
vercelConfig,
|
|
11392
11420
|
farmWorkflows.workflows
|
|
11393
11421
|
);
|
|
@@ -11402,7 +11430,7 @@ async function copyFarmDocsContentForVercel(config, root, nitroFuncDir, fs4) {
|
|
|
11402
11430
|
const docsContentDir = resolveBuildDocsContentDir(config, root);
|
|
11403
11431
|
if (!docsContentDir) return;
|
|
11404
11432
|
const bundledContentDir = _path2.default.join(nitroFuncDir, "farm-docs-content");
|
|
11405
|
-
const lastModifiedManifest =
|
|
11433
|
+
const lastModifiedManifest = _chunkX2EL3BLHcjs.createFarmDocsLastModifiedManifest.call(void 0, docsContentDir, {
|
|
11406
11434
|
fallback: "now"
|
|
11407
11435
|
});
|
|
11408
11436
|
await fs4.rm(bundledContentDir, { recursive: true, force: true });
|
|
@@ -11412,7 +11440,7 @@ async function copyFarmDocsContentForVercel(config, root, nitroFuncDir, fs4) {
|
|
|
11412
11440
|
force: true
|
|
11413
11441
|
});
|
|
11414
11442
|
await fs4.writeFile(
|
|
11415
|
-
_path2.default.join(bundledContentDir,
|
|
11443
|
+
_path2.default.join(bundledContentDir, _chunkX2EL3BLHcjs.FARM_DOCS_LAST_MODIFIED_MANIFEST),
|
|
11416
11444
|
`${JSON.stringify(lastModifiedManifest, null, 2)}
|
|
11417
11445
|
`
|
|
11418
11446
|
);
|
|
@@ -11483,7 +11511,7 @@ async function stageSharpRuntime(config, root, distDir, fs4, preset) {
|
|
|
11483
11511
|
try {
|
|
11484
11512
|
await copyPackage("sharp", sharpRequire);
|
|
11485
11513
|
if (!copiedPackages.has("sharp")) {
|
|
11486
|
-
throw new Error(`Farm image optimization requires sharp. ${
|
|
11514
|
+
throw new Error(`Farm image optimization requires sharp. ${_chunk474FO3UEcjs.SHARP_INSTALL_HINT}`);
|
|
11487
11515
|
}
|
|
11488
11516
|
} catch (error) {
|
|
11489
11517
|
await fs4.rm(stageDir, { recursive: true, force: true });
|
|
@@ -11713,7 +11741,7 @@ function createBuildTargetBaseline(config) {
|
|
|
11713
11741
|
preset,
|
|
11714
11742
|
distDir,
|
|
11715
11743
|
outputDir,
|
|
11716
|
-
outputWasDerived: outputDir ===
|
|
11744
|
+
outputWasDerived: outputDir === _chunkLYWAGXXWcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
|
|
11717
11745
|
};
|
|
11718
11746
|
}
|
|
11719
11747
|
function resolveBuildTargets(config, options, baseline) {
|
|
@@ -11722,8 +11750,8 @@ function resolveBuildTargets(config, options, baseline) {
|
|
|
11722
11750
|
const distDir = config.distDir || ".farm";
|
|
11723
11751
|
const outputWasReplaced = config.deploy.outputDir !== baseline.outputDir;
|
|
11724
11752
|
const shouldRefreshDerivedOutput = baseline.outputWasDerived && !outputWasReplaced && (preset !== baseline.preset || distDir !== baseline.distDir);
|
|
11725
|
-
const deployTarget = preset === config.deploy.preset ? config.deploy.target :
|
|
11726
|
-
const outputDir = shouldRefreshDerivedOutput ?
|
|
11753
|
+
const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkLYWAGXXWcjs.getDeployTargetForPreset.call(void 0, preset);
|
|
11754
|
+
const outputDir = shouldRefreshDerivedOutput ? _chunkLYWAGXXWcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
|
|
11727
11755
|
return {
|
|
11728
11756
|
root,
|
|
11729
11757
|
preset,
|
|
@@ -11731,7 +11759,7 @@ function resolveBuildTargets(config, options, baseline) {
|
|
|
11731
11759
|
distDir,
|
|
11732
11760
|
deployTarget,
|
|
11733
11761
|
outputDir,
|
|
11734
|
-
deployOutputDir:
|
|
11762
|
+
deployOutputDir: _chunkLYWAGXXWcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
|
|
11735
11763
|
};
|
|
11736
11764
|
}
|
|
11737
11765
|
async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
@@ -11768,7 +11796,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
11768
11796
|
};
|
|
11769
11797
|
config = {
|
|
11770
11798
|
...config,
|
|
11771
|
-
images:
|
|
11799
|
+
images: _chunk474FO3UEcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
|
|
11772
11800
|
root: targets.root,
|
|
11773
11801
|
preset: targets.preset
|
|
11774
11802
|
})
|
|
@@ -11796,18 +11824,18 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
11796
11824
|
root,
|
|
11797
11825
|
rendererBuild.signal
|
|
11798
11826
|
);
|
|
11799
|
-
const farmApp =
|
|
11827
|
+
const farmApp = _chunk474FO3UEcjs.createFarmApp.call(void 0, config, projectModuleServer);
|
|
11800
11828
|
await farmApp.initialize();
|
|
11801
11829
|
const routeManager = farmApp.getRouteManager();
|
|
11802
11830
|
const serverRenderer = farmApp.getServerRenderer();
|
|
11803
|
-
const typeArtifacts =
|
|
11831
|
+
const typeArtifacts = _chunkIUBDMDZZcjs.generateFarmTypeArtifacts.call(void 0, {
|
|
11804
11832
|
root,
|
|
11805
11833
|
srcDir,
|
|
11806
11834
|
layers: config.layers,
|
|
11807
11835
|
plugins: config.plugins,
|
|
11808
11836
|
extraRoutes: [
|
|
11809
11837
|
..._optionalChain([config, 'access', _241 => _241.openapi, 'optionalAccess', _242 => _242.enabled]) && config.openapi.route ? [config.openapi.route] : [],
|
|
11810
|
-
...
|
|
11838
|
+
..._chunkX2EL3BLHcjs.getFarmDocsRouteTypeEntries.call(void 0, config.docs)
|
|
11811
11839
|
],
|
|
11812
11840
|
suppressLintOnLink: config.suppressLintOnLink,
|
|
11813
11841
|
componentExtensions: config.renderer.componentExtensions,
|
|
@@ -11816,7 +11844,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
11816
11844
|
const message = error instanceof Error ? error.message : String(error);
|
|
11817
11845
|
_chunkXN2MB4QZcjs.logger.warn(`Route type generation failed (farm.d.ts may be stale): ${message}`);
|
|
11818
11846
|
});
|
|
11819
|
-
const apiRouteManager = new (0,
|
|
11847
|
+
const apiRouteManager = new (0, _chunkYAXOEANDcjs.APIRouteManager)(
|
|
11820
11848
|
_chunk5Y2P454Ocjs.getFarmAppDirectories.call(void 0, config),
|
|
11821
11849
|
projectModuleServer,
|
|
11822
11850
|
{
|
|
@@ -11902,7 +11930,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
11902
11930
|
ssr: true,
|
|
11903
11931
|
buildLifetime
|
|
11904
11932
|
});
|
|
11905
|
-
const viteConfig =
|
|
11933
|
+
const viteConfig = _chunk474FO3UEcjs.mergeFarmViteConfig.call(void 0,
|
|
11906
11934
|
{
|
|
11907
11935
|
root,
|
|
11908
11936
|
appType: "custom",
|
|
@@ -11914,7 +11942,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
11914
11942
|
},
|
|
11915
11943
|
plugins: [
|
|
11916
11944
|
...rendererVitePlugins,
|
|
11917
|
-
|
|
11945
|
+
_chunk474FO3UEcjs.farmFontImportsPlugin.call(void 0, {
|
|
11918
11946
|
root,
|
|
11919
11947
|
basePath: config.basePath,
|
|
11920
11948
|
publicDir: config.publicDir
|
|
@@ -11926,7 +11954,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
11926
11954
|
hmr: false
|
|
11927
11955
|
},
|
|
11928
11956
|
resolve: {
|
|
11929
|
-
alias:
|
|
11957
|
+
alias: _chunk474FO3UEcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
|
|
11930
11958
|
dedupe: [...config.renderer.dedupe || []]
|
|
11931
11959
|
},
|
|
11932
11960
|
optimizeDeps: {
|
|
@@ -11970,7 +11998,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
11970
11998
|
}
|
|
11971
11999
|
async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
|
|
11972
12000
|
const { farmI18nClientBridgePlugin, farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.cjs");
|
|
11973
|
-
const { PluginManager: PluginManager2 } = await import("./plugin-
|
|
12001
|
+
const { PluginManager: PluginManager2 } = await import("./plugin-HZIBL3DW.cjs");
|
|
11974
12002
|
const pluginManager = new PluginManager2({
|
|
11975
12003
|
config,
|
|
11976
12004
|
isDev: false,
|
|
@@ -11997,7 +12025,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
|
|
|
11997
12025
|
}
|
|
11998
12026
|
async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
|
|
11999
12027
|
const { farmI18nClientBridgePlugin, farmPlugin } = await import("./vite.cjs");
|
|
12000
|
-
const { PluginManager: PluginManager2 } = await import("./plugin-
|
|
12028
|
+
const { PluginManager: PluginManager2 } = await import("./plugin-HZIBL3DW.cjs");
|
|
12001
12029
|
const pluginManager = new PluginManager2({
|
|
12002
12030
|
config,
|
|
12003
12031
|
isDev: false,
|
|
@@ -12038,7 +12066,7 @@ function resolveLegacyPageEntry(config, root, srcDir) {
|
|
|
12038
12066
|
}
|
|
12039
12067
|
async function buildNitro(config, routeManager, apiRouteManager, serverRenderer, preset, root, distDir, pluginManager) {
|
|
12040
12068
|
const [{ createNitroConfig }, { createNitro, build: nitroBuild }] = await Promise.all([
|
|
12041
|
-
import("./nitro-
|
|
12069
|
+
import("./nitro-YPSZBYDK.cjs"),
|
|
12042
12070
|
import("nitro/builder")
|
|
12043
12071
|
]);
|
|
12044
12072
|
let nitroConfig = await createNitroConfig(
|
|
@@ -12051,7 +12079,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
|
|
|
12051
12079
|
if (pluginManager) {
|
|
12052
12080
|
nitroConfig = await pluginManager.runHookSerial("beforeNitroBuild", nitroConfig);
|
|
12053
12081
|
}
|
|
12054
|
-
const outputDir =
|
|
12082
|
+
const outputDir = _chunkLYWAGXXWcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
12055
12083
|
const serverOutputDir = _path2.default.join(outputDir, "server");
|
|
12056
12084
|
const publicOutputDir = _path2.default.join(outputDir, "public");
|
|
12057
12085
|
const { mkdir, cp } = await import("fs/promises");
|
|
@@ -12122,7 +12150,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
|
|
|
12122
12150
|
root,
|
|
12123
12151
|
preset,
|
|
12124
12152
|
distDir,
|
|
12125
|
-
outputDir:
|
|
12153
|
+
outputDir: _chunkLYWAGXXWcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
|
|
12126
12154
|
});
|
|
12127
12155
|
}
|
|
12128
12156
|
}
|