@farm.js/core 0.1.75 → 0.1.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-mcp.d-Djvao5eV.d.ts → agent-mcp.d-B1h3RznZ.d.ts} +1 -1
- package/dist/{agent-mcp.d-wA13pwmS.d.mts → agent-mcp.d-WFQotg8M.d.mts} +1 -1
- package/dist/agent-runtime.cjs +2 -2
- package/dist/agent-runtime.d.mts +7 -5
- package/dist/agent-runtime.d.ts +7 -5
- package/dist/agent-runtime.mjs +1 -1
- package/dist/{analyzer-LJHMFCDW.mjs → analyzer-64YS2OXQ.mjs} +2 -2
- package/dist/analyzer-HTNXLX6N.cjs +16 -0
- package/dist/api/node.d.mts +9 -7
- package/dist/api/node.d.ts +9 -7
- package/dist/api/route-manager.d.mts +9 -7
- package/dist/api/route-manager.d.ts +9 -7
- package/dist/api/runtime.d.mts +8 -6
- package/dist/api/runtime.d.ts +8 -6
- package/dist/api.d.mts +10 -8
- package/dist/api.d.ts +10 -8
- package/dist/{app-manifest.d-DIuqSi9k.d.mts → app-manifest.d-EZEYG-tD.d.mts} +1 -1
- package/dist/{app-manifest.d-BukcP_EV.d.ts → app-manifest.d-Ktsqsuk9.d.ts} +1 -1
- package/dist/app-markdown.d.mts +8 -6
- package/dist/app-markdown.d.ts +8 -6
- package/dist/{app.d-BQqmM6Gy.d.ts → app.d-CSh3y8w8.d.ts} +5 -4
- package/dist/{app.d-YVuFb10p.d.mts → app.d-DTkqYcIr.d.mts} +5 -4
- package/dist/{chunk-CL2ONP73.cjs → chunk-2PE5STAR.cjs} +36 -27
- package/dist/{chunk-HV2WZFUW.mjs → chunk-2QPTZMGK.mjs} +1 -1
- package/dist/{chunk-E7VF3LQ5.mjs → chunk-4STJ6LGR.mjs} +13 -1
- package/dist/{chunk-LQBV2Y37.mjs → chunk-65XXHTVJ.mjs} +38 -2
- package/dist/{chunk-XGDI4OUB.cjs → chunk-6ZFGWB75.cjs} +13 -1
- package/dist/{chunk-IDOUCM2X.mjs → chunk-7EXFAJST.mjs} +57 -44
- package/dist/{chunk-HVJ7IACB.cjs → chunk-7SAGHWWU.cjs} +2 -2
- package/dist/{chunk-GNY7BO7R.mjs → chunk-BTHNOAOF.mjs} +2 -2
- package/dist/{chunk-TJVUTGED.mjs → chunk-D2RLADWN.mjs} +285 -93
- package/dist/chunk-DS2KZ5BT.mjs +16 -0
- package/dist/{chunk-WHCNJVYU.cjs → chunk-DSRWQ4SJ.cjs} +3 -3
- package/dist/{chunk-ZPCZWEU3.cjs → chunk-FCHEO3LG.cjs} +2 -2
- package/dist/{chunk-75XSZIRE.mjs → chunk-FD6BMUA3.mjs} +35 -26
- package/dist/{chunk-4T2RB4JA.mjs → chunk-FNVGK72M.mjs} +5 -5
- package/dist/{chunk-TFEODQLG.mjs → chunk-FPGSIOWS.mjs} +2 -2
- package/dist/{chunk-4BS3HSY7.cjs → chunk-FTQUNBRN.cjs} +2 -2
- package/dist/{chunk-ZV76IQG7.cjs → chunk-FVVGEGQ2.cjs} +2 -2
- package/dist/{chunk-7564NP5Z.cjs → chunk-GC2BSXQS.cjs} +39 -3
- package/dist/{chunk-HT2SZKXG.mjs → chunk-H76C5AOU.mjs} +12 -0
- package/dist/{chunk-OFIFRB62.mjs → chunk-IHMSLS2O.mjs} +36 -20
- package/dist/{chunk-BUC3FDYC.cjs → chunk-IIVZTGGP.cjs} +2 -2
- package/dist/{chunk-6MATGOEF.mjs → chunk-IXC6WDMT.mjs} +1 -1
- package/dist/{chunk-KPYQ32BA.cjs → chunk-JD42G6BN.cjs} +2 -2
- package/dist/{chunk-WJ5CCQBM.cjs → chunk-LTDMJD2F.cjs} +4 -4
- package/dist/{chunk-XX6ZA2IO.cjs → chunk-MQW4LHJR.cjs} +1 -1
- package/dist/{chunk-BNTRXJL4.cjs → chunk-NQZWLIPT.cjs} +3 -3
- package/dist/{chunk-QGYHE6VJ.mjs → chunk-NTHAZLVS.mjs} +28 -27
- package/dist/{chunk-OCLCA3X3.mjs → chunk-OCKQ3YOH.mjs} +1 -1
- package/dist/{chunk-PBQGIA27.cjs → chunk-OQZF6H6G.cjs} +4 -4
- package/dist/{chunk-YSTKSZD2.mjs → chunk-ORWXJDUN.mjs} +1 -1
- package/dist/{chunk-JNZDTE75.cjs → chunk-PMKUTZGR.cjs} +8 -8
- package/dist/{chunk-4ZSZI6XL.cjs → chunk-PUEPDMWY.cjs} +16 -16
- package/dist/{chunk-MTBDJ326.cjs → chunk-QMR2TUVZ.cjs} +13 -1
- package/dist/{chunk-A5F55ZFA.mjs → chunk-QODXWUGQ.mjs} +2 -2
- package/dist/chunk-RFXEQYPH.cjs +723 -0
- package/dist/{chunk-IK33N2AN.cjs → chunk-SIYELCIX.cjs} +158 -142
- package/dist/{chunk-MFU7SXAB.mjs → chunk-SL2BSPDJ.mjs} +1 -1
- package/dist/{chunk-H7QY7ZE4.mjs → chunk-SMYDCZBW.mjs} +1 -1
- package/dist/{chunk-GLF44JKY.mjs → chunk-TQOYIPMQ.mjs} +1 -1
- package/dist/{chunk-IVBDRAOR.cjs → chunk-UYACD4SH.cjs} +1 -1
- package/dist/{chunk-B4CWYGCG.mjs → chunk-WHNNDFCJ.mjs} +1 -1
- package/dist/{chunk-4MU4QCX4.mjs → chunk-WXMR3OHY.mjs} +1 -1
- package/dist/{chunk-YL7BKHYE.cjs → chunk-WZVESREI.cjs} +291 -278
- package/dist/chunk-XRRHPBG2.cjs +16 -0
- package/dist/{chunk-NPGXX7HN.cjs → chunk-YROK6CJC.cjs} +7 -7
- package/dist/{chunk-OZARLCYQ.cjs → chunk-YRQ44JTF.cjs} +179 -178
- package/dist/{chunk-2NQ3S2SJ.mjs → chunk-YTGNMKRA.mjs} +1 -1
- package/dist/{chunk-YCNKS6SD.mjs → chunk-ZBE5EHVJ.mjs} +4 -4
- package/dist/cli-runtime.d-DljFfr8T.d.ts +537 -0
- package/dist/cli-runtime.d-HSkdfvoq.d.mts +537 -0
- package/dist/client/lifecycle.d.mts +1 -1
- package/dist/client/lifecycle.d.ts +1 -1
- package/dist/{client-component.d-BeqVuqy2.d.mts → client-component.d-B-1dIlsw.d.mts} +2 -137
- package/dist/{client-component.d-CZ1NpHAY.d.ts → client-component.d-_otXB__v.d.ts} +2 -137
- package/dist/{client-plugins.d-ChceYO9t.d.mts → client-plugins.d-BmBzvfSP.d.mts} +4 -4
- package/dist/{client-plugins.d-D9kWC0QB.d.ts → client-plugins.d-MjxlvbCK.d.ts} +4 -4
- package/dist/client-plugins.d.mts +7 -5
- package/dist/client-plugins.d.ts +7 -5
- package/dist/client.d.mts +12 -10
- package/dist/client.d.ts +12 -10
- package/dist/config.d.mts +7 -5
- package/dist/config.d.ts +7 -5
- package/dist/desktop.d.mts +8 -6
- package/dist/desktop.d.ts +8 -6
- package/dist/{devtools-B3W3DLPG.mjs → devtools-7LHXG2VS.mjs} +4 -3
- package/dist/{devtools-T5I2WHRX.cjs → devtools-NNQN66EZ.cjs} +5 -4
- package/dist/docs.cjs +6 -5
- package/dist/docs.d.mts +10 -65
- package/dist/docs.d.ts +10 -65
- package/dist/docs.mjs +5 -4
- package/dist/environment/vite.cjs +5 -4
- package/dist/environment/vite.mjs +4 -3
- package/dist/handler.d-C53zFDmp.d.ts +62 -0
- package/dist/handler.d-CaYopqaD.d.mts +62 -0
- package/dist/{headers.d-Aux4JVnm.d.ts → headers.d-BvtpC90T.d.ts} +1 -1
- package/dist/{headers.d-BawakaPv.d.mts → headers.d-MBkD9ZLf.d.mts} +1 -1
- package/dist/index.cjs +31 -24
- package/dist/index.d-2hQpPZ-P.d.ts +16 -0
- package/dist/index.d-Mikf-tdP.d.mts +16 -0
- package/dist/index.d.mts +39 -556
- package/dist/index.d.ts +39 -556
- package/dist/index.mjs +30 -23
- package/dist/integrations/orm.cjs +4 -3
- package/dist/integrations/orm.d.mts +6 -4
- package/dist/integrations/orm.d.ts +6 -4
- package/dist/integrations/orm.mjs +3 -2
- package/dist/integrations.cjs +2 -2
- package/dist/integrations.d.mts +7 -5
- package/dist/integrations.d.ts +7 -5
- package/dist/integrations.mjs +1 -1
- package/dist/internal/app-markdown-runtime.d.mts +8 -6
- package/dist/internal/app-markdown-runtime.d.ts +8 -6
- package/dist/internal/build-runtime.cjs +23 -22
- package/dist/internal/build-runtime.d.mts +10 -7
- package/dist/internal/build-runtime.d.ts +10 -7
- package/dist/internal/build-runtime.mjs +22 -21
- package/dist/internal/cli-runtime.cjs +17 -9
- package/dist/internal/cli-runtime.d.mts +46 -0
- package/dist/internal/cli-runtime.d.ts +46 -0
- package/dist/internal/cli-runtime.mjs +16 -8
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.d.mts +11 -9
- package/dist/internal/client-runtime.d.ts +11 -9
- package/dist/internal/compression-runtime.cjs +2 -2
- package/dist/internal/compression-runtime.d.mts +11 -6
- package/dist/internal/compression-runtime.d.ts +11 -6
- package/dist/internal/compression-runtime.mjs +1 -1
- package/dist/internal/config-runtime.cjs +6 -5
- package/dist/internal/config-runtime.d.mts +9 -7
- package/dist/internal/config-runtime.d.ts +9 -7
- package/dist/internal/config-runtime.mjs +5 -4
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/native-server-fns.cjs +4 -4
- package/dist/internal/native-server-fns.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +8 -7
- package/dist/internal/production-runtime.d.mts +16 -14
- package/dist/internal/production-runtime.d.ts +16 -14
- package/dist/internal/production-runtime.mjs +7 -6
- package/dist/internal/start-manifest.d.mts +7 -5
- package/dist/internal/start-manifest.d.ts +7 -5
- package/dist/{layers-XQ7VFMWO.mjs → layers-I7VE5Q2Y.mjs} +2 -1
- package/dist/layers-WP5K5F7W.cjs +21 -0
- package/dist/{lifecycle.d-OtGWAvJT.d.ts → lifecycle.d-VzcXyEyn.d.mts} +1 -1
- package/dist/{lifecycle.d-OtGWAvJT.d.mts → lifecycle.d-VzcXyEyn.d.ts} +1 -1
- package/dist/markdown.d.mts +7 -5
- package/dist/markdown.d.ts +7 -5
- package/dist/middleware.d.mts +7 -5
- package/dist/middleware.d.ts +7 -5
- package/dist/{mount.d-BomEt2kV.d.mts → mount.d-DsP46XCy.d.mts} +1 -1
- package/dist/{mount.d-Ca8eb9GB.d.ts → mount.d-GU-tNxbE.d.ts} +1 -1
- package/dist/{navigation-delegate.d-B1ujRkYo.d.mts → navigation-delegate.d-CUtNOYLi.d.mts} +1 -1
- package/dist/{navigation-delegate.d-DJCC2jXF.d.ts → navigation-delegate.d-DsxNPrLT.d.ts} +1 -1
- package/dist/navigation.d.mts +10 -8
- package/dist/navigation.d.ts +10 -8
- package/dist/{plugin-FD4S2QEJ.mjs → plugin-2KWR2X4B.mjs} +1 -1
- package/dist/{plugin-5BNPYCER.cjs → plugin-MW7IDV76.cjs} +2 -2
- package/dist/plugin.cjs +15 -14
- package/dist/plugin.d.mts +11 -8
- package/dist/plugin.d.ts +11 -8
- package/dist/plugin.mjs +14 -13
- package/dist/{render-plan.d-BxRbaxYA.d.ts → render-plan.d-8K6S0h0L.d.ts} +1 -1
- package/dist/{render-plan.d-CFod_Zf-.d.mts → render-plan.d-B7Xp-PPW.d.mts} +1 -1
- package/dist/renderer-client.d.mts +10 -8
- package/dist/renderer-client.d.ts +10 -8
- package/dist/{request.d-DRQgaXGG.d.ts → request.d-CuQxmOqX.d.ts} +1 -1
- package/dist/{request.d-DG4TeXMM.d.mts → request.d-nhqciCAz.d.mts} +1 -1
- package/dist/request.d.mts +8 -6
- package/dist/request.d.ts +8 -6
- package/dist/{route-rendering.d-Db07UNVG.d.ts → route-rendering.d-BSsdDYC1.d.ts} +1 -1
- package/dist/{route-rendering.d-BXtZKgqu.d.mts → route-rendering.d-CeF1FOnl.d.mts} +1 -1
- package/dist/{router.d-BC3hyjf0.d.ts → router.d-C7yGlhDL.d.ts} +1 -1
- package/dist/{router.d-B61kXqxJ.d.mts → router.d-D462OX24.d.mts} +1 -1
- package/dist/routes.d.mts +7 -5
- package/dist/routes.d.ts +7 -5
- package/dist/{rsc-pipeline-VENBFYXW.cjs → rsc-pipeline-7PV6ARDS.cjs} +8 -7
- package/dist/{rsc-pipeline-LJ7YCGY6.mjs → rsc-pipeline-EZU4W4RL.mjs} +7 -6
- package/dist/{runtime-UNDTYGQS.cjs → runtime-QOE3NRXF.cjs} +8 -7
- package/dist/{runtime-4DWUXZHS.mjs → runtime-RWLFEPS3.mjs} +5 -4
- package/dist/{runtime.d-Cl6EBGmC.d.mts → runtime.d-C-BHQMy5.d.mts} +1 -1
- package/dist/{runtime.d-SC95yDzr.d.ts → runtime.d-CORDJQMy.d.ts} +1 -1
- package/dist/{schema.d-Dny9pnrm.d.mts → schema.d-BM-uVGpx.d.mts} +1 -1
- package/dist/{schema.d-Dny9pnrm.d.ts → schema.d-BM-uVGpx.d.ts} +1 -1
- package/dist/schema.d.mts +1 -1
- package/dist/schema.d.ts +1 -1
- package/dist/{index.d-r1MLpgeE.d.ts → server-components-status.d-BJ6huueH.d.mts} +2 -15
- package/dist/{index.d-Ccq42CPU.d.mts → server-components-status.d-BbADqqjq.d.ts} +2 -15
- package/dist/server-plugins.cjs +2 -2
- package/dist/server-plugins.d.mts +9 -7
- package/dist/server-plugins.d.ts +9 -7
- package/dist/server-plugins.mjs +1 -1
- package/dist/server.cjs +46 -39
- package/dist/server.d.mts +17 -14
- package/dist/server.d.ts +17 -14
- package/dist/server.mjs +24 -17
- package/dist/session-OU7M4CIF.cjs +24 -0
- package/dist/{session-QZXZOPR2.mjs → session-WPAT6H76.mjs} +3 -2
- package/dist/{spa-router.d-DrlXgDqY.d.mts → spa-router.d-DfjafHyX.d.mts} +4 -4
- package/dist/{spa-router.d-DwM02Mwd.d.ts → spa-router.d-DyGJLQc_.d.ts} +4 -4
- package/dist/ssg.d-D11lz_wr.d.ts +138 -0
- package/dist/ssg.d-iiLTyLAO.d.mts +138 -0
- package/dist/storage.cjs +9 -2
- package/dist/storage.d.mts +266 -34
- package/dist/storage.d.ts +266 -34
- package/dist/storage.mjs +8 -1
- package/dist/testing.d.mts +7 -5
- package/dist/testing.d.ts +7 -5
- package/dist/types.d-DC97bnjj.d.mts +131 -0
- package/dist/types.d-DC97bnjj.d.ts +131 -0
- package/dist/{utils.d-C6KXz3uB.d.ts → utils.d-D-GQeEfa.d.ts} +1 -1
- package/dist/{utils.d-CHzxAshz.d.mts → utils.d-fW-95yEh.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +15 -14
- package/dist/vite.d.mts +12 -9
- package/dist/vite.d.ts +12 -9
- package/dist/vite.mjs +14 -13
- package/package.json +11 -4
- package/dist/analyzer-23GCBYFI.cjs +0 -16
- package/dist/chunk-JMYXO572.cjs +0 -531
- package/dist/layers-7P4RLKVX.cjs +0 -20
- package/dist/session-2Q72D4QV.cjs +0 -23
- package/dist/types.d-BnIqOn9w.d.mts +0 -73
- package/dist/types.d-BnIqOn9w.d.ts +0 -73
- /package/dist/{chunk-6DBBMQWT.cjs → chunk-AF3PNVVF.cjs} +0 -0
- /package/dist/{chunk-5O3SK3ZC.mjs → chunk-BEXH6BGH.mjs} +0 -0
- /package/dist/{chunk-PMU4U2W2.cjs → chunk-PC5OZ4YR.cjs} +0 -0
- /package/dist/{chunk-Z5ZZAGIH.mjs → chunk-RL47VZ6J.mjs} +0 -0
package/dist/server.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-IG2JE6WJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createFarmInfraAnalyticsPlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YTGNMKRA.mjs";
|
|
7
7
|
import {
|
|
8
8
|
FarmEnvironmentError,
|
|
9
9
|
createClientOnlyFn,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
resolveConfig,
|
|
25
25
|
resolveFarmMCPConfig,
|
|
26
26
|
resolveFarmMCPPlugin
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ZBE5EHVJ.mjs";
|
|
28
28
|
import "./chunk-VISQDC6W.mjs";
|
|
29
29
|
import {
|
|
30
30
|
loadFarmInstrumentation,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
farmIslandContainersPlugin,
|
|
41
41
|
farmPlugin,
|
|
42
42
|
farmServerOnlyEntriesPlugin
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-7EXFAJST.mjs";
|
|
44
44
|
import {
|
|
45
45
|
createFarmReactRefreshPlugins,
|
|
46
46
|
farmDesktopDevGuardPlugin
|
|
@@ -60,31 +60,31 @@ import {
|
|
|
60
60
|
inspectStaticMetadataImage,
|
|
61
61
|
mergeFarmViteConfig,
|
|
62
62
|
resolveFarmImageProviderForRuntime
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-IHMSLS2O.mjs";
|
|
64
64
|
import {
|
|
65
65
|
loadTailwindVitePlugin
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-SL2BSPDJ.mjs";
|
|
67
67
|
import {
|
|
68
68
|
FarmRuntimeShutdownError,
|
|
69
69
|
PluginManager
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-RL47VZ6J.mjs";
|
|
71
71
|
import {
|
|
72
72
|
resolveFarmPlatform,
|
|
73
73
|
validateFarmDesktopConfig
|
|
74
74
|
} from "./chunk-SMUW7UST.mjs";
|
|
75
75
|
import "./chunk-UB7RVEMX.mjs";
|
|
76
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-65XXHTVJ.mjs";
|
|
77
77
|
import "./chunk-3GMD2E4Q.mjs";
|
|
78
78
|
import "./chunk-ZJGFAW5U.mjs";
|
|
79
79
|
import "./chunk-HQ2VAJLW.mjs";
|
|
80
80
|
import "./chunk-UTUS6JUH.mjs";
|
|
81
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-H76C5AOU.mjs";
|
|
82
82
|
import "./chunk-LLZSYFOM.mjs";
|
|
83
83
|
import "./chunk-UUMKLGUU.mjs";
|
|
84
84
|
import "./chunk-ZXDX7VYZ.mjs";
|
|
85
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-BTHNOAOF.mjs";
|
|
86
86
|
import "./chunk-JA6RML7C.mjs";
|
|
87
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-ORWXJDUN.mjs";
|
|
88
88
|
import "./chunk-HONTCUK6.mjs";
|
|
89
89
|
import "./chunk-L4RTTTVE.mjs";
|
|
90
90
|
import "./chunk-GNZIAJGB.mjs";
|
|
@@ -98,7 +98,7 @@ import "./chunk-YFTGIHNC.mjs";
|
|
|
98
98
|
import "./chunk-HZOMT5DY.mjs";
|
|
99
99
|
import {
|
|
100
100
|
farmEnvironmentFunctionsPlugin
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-QODXWUGQ.mjs";
|
|
102
102
|
import "./chunk-S32PDOLO.mjs";
|
|
103
103
|
import {
|
|
104
104
|
getTheme,
|
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
getFarmSourceRoots,
|
|
126
126
|
loadFarmConfigFile,
|
|
127
127
|
resolveFarmLayers
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-4STJ6LGR.mjs";
|
|
129
129
|
import {
|
|
130
130
|
isReactRenderer,
|
|
131
131
|
loadFarmRendererVitePlugins,
|
|
@@ -159,7 +159,7 @@ import "./chunk-3AJQFVWW.mjs";
|
|
|
159
159
|
import "./chunk-WXFY5JIY.mjs";
|
|
160
160
|
import "./chunk-YP7YO3S3.mjs";
|
|
161
161
|
import "./chunk-YWPNIYUP.mjs";
|
|
162
|
-
import "./chunk-
|
|
162
|
+
import "./chunk-BEXH6BGH.mjs";
|
|
163
163
|
import "./chunk-H4WUWLQR.mjs";
|
|
164
164
|
import "./chunk-CZOXZ6WQ.mjs";
|
|
165
165
|
import "./chunk-WNLPQW7W.mjs";
|
|
@@ -177,6 +177,8 @@ import {
|
|
|
177
177
|
defineStorageClient,
|
|
178
178
|
disposeStorage,
|
|
179
179
|
driverStorage,
|
|
180
|
+
farmStorage,
|
|
181
|
+
getDatabase,
|
|
180
182
|
getStorage,
|
|
181
183
|
initStorage,
|
|
182
184
|
libsqlStorage,
|
|
@@ -191,13 +193,15 @@ import {
|
|
|
191
193
|
planetscaleStorage,
|
|
192
194
|
postgresStorage,
|
|
193
195
|
redisStorage,
|
|
196
|
+
resolveManagedStorageMount,
|
|
194
197
|
resolveStorageRuntimeClient,
|
|
195
198
|
s3Storage,
|
|
196
199
|
sqliteStorage,
|
|
197
200
|
upstashStorage,
|
|
198
201
|
vercelBlobStorage,
|
|
199
202
|
vercelKVStorage
|
|
200
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-D2RLADWN.mjs";
|
|
204
|
+
import "./chunk-DS2KZ5BT.mjs";
|
|
201
205
|
import "./chunk-BMQAPZXD.mjs";
|
|
202
206
|
import "./chunk-GAAK3HDZ.mjs";
|
|
203
207
|
import "./chunk-PKXGFQZS.mjs";
|
|
@@ -285,7 +289,7 @@ import "./chunk-H3ASZDT7.mjs";
|
|
|
285
289
|
import "./chunk-2DA7CLY7.mjs";
|
|
286
290
|
import {
|
|
287
291
|
FARM_VERSION
|
|
288
|
-
} from "./chunk-
|
|
292
|
+
} from "./chunk-SMYDCZBW.mjs";
|
|
289
293
|
import "./chunk-VDQZV6BX.mjs";
|
|
290
294
|
import "./chunk-QPNVDSFZ.mjs";
|
|
291
295
|
import "./chunk-GYMGK467.mjs";
|
|
@@ -314,7 +318,7 @@ import {
|
|
|
314
318
|
import "./chunk-LXTYJ2HW.mjs";
|
|
315
319
|
import {
|
|
316
320
|
createCompressionPlugin
|
|
317
|
-
} from "./chunk-
|
|
321
|
+
} from "./chunk-FD6BMUA3.mjs";
|
|
318
322
|
import {
|
|
319
323
|
createHeadersPlugin,
|
|
320
324
|
createRedirectsPlugin,
|
|
@@ -635,7 +639,7 @@ async function createServer2(config = {}, options = {}) {
|
|
|
635
639
|
checkWebDesktopBlock(userConfig?.desktop);
|
|
636
640
|
const rscConfig = userConfig ?? config;
|
|
637
641
|
if (resolveFarmServerComponentsMode(rscConfig.experimental?.serverComponents)) {
|
|
638
|
-
const { createFarmRscDevServer, farmAppUsesRscPipeline, resolveFarmRscCheckConfig } = await import("./rsc-pipeline-
|
|
642
|
+
const { createFarmRscDevServer, farmAppUsesRscPipeline, resolveFarmRscCheckConfig } = await import("./rsc-pipeline-EZU4W4RL.mjs");
|
|
639
643
|
await options.ensureServerComponentsPackages?.(rscConfig, root);
|
|
640
644
|
if (farmAppUsesRscPipeline(await resolveFarmRscCheckConfig(rscConfig, root, mode), root)) {
|
|
641
645
|
return await createFarmRscDevServer(rscConfig, {
|
|
@@ -956,9 +960,11 @@ export {
|
|
|
956
960
|
disposeStorage,
|
|
957
961
|
driverStorage,
|
|
958
962
|
farmPlugin,
|
|
963
|
+
farmStorage,
|
|
959
964
|
fileExists,
|
|
960
965
|
findFarmConfigFile,
|
|
961
966
|
getCurrentRequest,
|
|
967
|
+
getDatabase,
|
|
962
968
|
getFarmAppDirectories,
|
|
963
969
|
getFarmDataCache,
|
|
964
970
|
getFarmLayerAliases,
|
|
@@ -1001,6 +1007,7 @@ export {
|
|
|
1001
1007
|
resolveFarmLayers,
|
|
1002
1008
|
resolveFarmMCPConfig,
|
|
1003
1009
|
resolveFarmMCPPlugin,
|
|
1010
|
+
resolveManagedStorageMount,
|
|
1004
1011
|
resolveServerActionsConfig,
|
|
1005
1012
|
resolveStorageRuntimeClient,
|
|
1006
1013
|
revalidatePath,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkFTQUNBRNcjs = require('./chunk-FTQUNBRN.cjs');
|
|
11
|
+
require('./chunk-SHIWRBFI.cjs');
|
|
12
|
+
require('./chunk-RFXEQYPH.cjs');
|
|
13
|
+
require('./chunk-XRRHPBG2.cjs');
|
|
14
|
+
require('./chunk-BTZ5O6VM.cjs');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
exports.FARM_MOBILE_APP_HEADER = _chunkFTQUNBRNcjs.FARM_MOBILE_APP_HEADER; exports.FARM_MOBILE_DEVICE_COOKIE = _chunkFTQUNBRNcjs.FARM_MOBILE_DEVICE_COOKIE; exports.FARM_MOBILE_NONCE_HEADER = _chunkFTQUNBRNcjs.FARM_MOBILE_NONCE_HEADER; exports.FARM_MOBILE_SESSION_PATH = _chunkFTQUNBRNcjs.FARM_MOBILE_SESSION_PATH; exports.FARM_MOBILE_SESSION_PLUGIN = _chunkFTQUNBRNcjs.FARM_MOBILE_SESSION_PLUGIN; exports.createFarmMobileSessionPlugin = _chunkFTQUNBRNcjs.createFarmMobileSessionPlugin; exports.isFarmMobileNativeRequest = _chunkFTQUNBRNcjs.isFarmMobileNativeRequest; exports.parseFarmMobileToken = _chunkFTQUNBRNcjs.parseFarmMobileToken;
|
|
@@ -7,9 +7,10 @@ import {
|
|
|
7
7
|
createFarmMobileSessionPlugin,
|
|
8
8
|
isFarmMobileNativeRequest,
|
|
9
9
|
parseFarmMobileToken
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WHNNDFCJ.mjs";
|
|
11
11
|
import "./chunk-YP7YO3S3.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-D2RLADWN.mjs";
|
|
13
|
+
import "./chunk-DS2KZ5BT.mjs";
|
|
13
14
|
import "./chunk-Y6FXYEAI.mjs";
|
|
14
15
|
export {
|
|
15
16
|
FARM_MOBILE_APP_HEADER,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { M as Metadata } from './client-plugins.d-
|
|
2
|
-
import { F as FarmClientPluginManager } from './lifecycle.d-
|
|
1
|
+
import { M as Metadata } from './client-plugins.d-BmBzvfSP.mjs';
|
|
2
|
+
import { F as FarmClientPluginManager } from './lifecycle.d-VzcXyEyn.mjs';
|
|
3
3
|
import { b as FarmI18nClientSnapshot } from './types.d-euATAbE4.mjs';
|
|
4
4
|
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.mjs';
|
|
5
|
-
import { F as FarmRouteRenderPlan } from './render-plan.d-
|
|
5
|
+
import { F as FarmRouteRenderPlan } from './render-plan.d-B7Xp-PPW.mjs';
|
|
6
6
|
|
|
7
7
|
type NavigationMetadata = (Metadata & Record<string, any>) | undefined;
|
|
8
8
|
|
|
@@ -262,4 +262,4 @@ declare function pushState(state: unknown, href?: string): void;
|
|
|
262
262
|
declare function replaceState(state: unknown, href?: string): void;
|
|
263
263
|
declare function readPageState<TState = unknown>(): TState | null;
|
|
264
264
|
|
|
265
|
-
export { type FarmNavigationBlockerContext as F, SPARouter as S, type FarmNavigationState as a, type FarmNavigateOptions as b, type
|
|
265
|
+
export { type FarmNavigationBlockerContext as F, SPARouter as S, type FarmNavigationState as a, type FarmNavigateOptions as b, type FarmNavigationBlocker as c, type FarmNavigationListener as d, type FarmNavigationLocation as e, type FarmViewTransitionMode as f, getRouter as g, pushState as h, replaceState as i, navigateTo as n, prefetch as p, readPageState as r };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { M as Metadata } from './client-plugins.d-
|
|
2
|
-
import { F as FarmClientPluginManager } from './lifecycle.d-
|
|
1
|
+
import { M as Metadata } from './client-plugins.d-MjxlvbCK.js';
|
|
2
|
+
import { F as FarmClientPluginManager } from './lifecycle.d-VzcXyEyn.js';
|
|
3
3
|
import { b as FarmI18nClientSnapshot } from './types.d-euATAbE4.js';
|
|
4
4
|
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.js';
|
|
5
|
-
import { F as FarmRouteRenderPlan } from './render-plan.d-
|
|
5
|
+
import { F as FarmRouteRenderPlan } from './render-plan.d-8K6S0h0L.js';
|
|
6
6
|
|
|
7
7
|
type NavigationMetadata = (Metadata & Record<string, any>) | undefined;
|
|
8
8
|
|
|
@@ -262,4 +262,4 @@ declare function pushState(state: unknown, href?: string): void;
|
|
|
262
262
|
declare function replaceState(state: unknown, href?: string): void;
|
|
263
263
|
declare function readPageState<TState = unknown>(): TState | null;
|
|
264
264
|
|
|
265
|
-
export { type FarmNavigationBlockerContext as F, SPARouter as S, type FarmNavigationState as a, type FarmNavigateOptions as b, type
|
|
265
|
+
export { type FarmNavigationBlockerContext as F, SPARouter as S, type FarmNavigationState as a, type FarmNavigateOptions as b, type FarmNavigationBlocker as c, type FarmNavigationListener as d, type FarmNavigationLocation as e, type FarmViewTransitionMode as f, getRouter as g, pushState as h, replaceState as i, navigateTo as n, prefetch as p, readPageState as r };
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { R as RouteRenderingOptions, a as RouteRenderingConfig, D as DirectiveRenderingConfig } from './route-rendering.d-BSsdDYC1.js';
|
|
2
|
+
import { e as RouteModule, S as SSGCollectionResult, n as SSGPage } from './client-plugins.d-MjxlvbCK.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Farm.js SSG (Static Site Generation) Module
|
|
6
|
+
*
|
|
7
|
+
* Handles collection and pre-rendering of SSG pages at build time.
|
|
8
|
+
*
|
|
9
|
+
* SSR is the default - pages render on each request
|
|
10
|
+
* SSG is opt-in via `export const ssg = true`, Next-compatible route
|
|
11
|
+
* config exports, or a top-of-file rendering directive.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* // SSG Page
|
|
16
|
+
* export const ssg = true;
|
|
17
|
+
* export default function AboutPage() {
|
|
18
|
+
* return <h1>About</h1>;
|
|
19
|
+
* }
|
|
20
|
+
*
|
|
21
|
+
* // SSG with ISR
|
|
22
|
+
* export const ssg = true;
|
|
23
|
+
* export const revalidate = 60;
|
|
24
|
+
* export default async function ProductsPage() {
|
|
25
|
+
* const products = await fetchProducts();
|
|
26
|
+
* return <ProductList products={products} />;
|
|
27
|
+
* }
|
|
28
|
+
*
|
|
29
|
+
* // Dynamic SSG
|
|
30
|
+
* export const ssg = true;
|
|
31
|
+
* export async function getStaticPaths() {
|
|
32
|
+
* const posts = await fetchPosts();
|
|
33
|
+
* return posts.map(post => ({ slug: post.slug }));
|
|
34
|
+
* }
|
|
35
|
+
* export default async function BlogPost({ params }) {
|
|
36
|
+
* return <article>{params.slug}</article>;
|
|
37
|
+
* }
|
|
38
|
+
*
|
|
39
|
+
* // Next-compatible route config
|
|
40
|
+
* export const dynamic = "force-static";
|
|
41
|
+
* export const revalidate = 60;
|
|
42
|
+
*
|
|
43
|
+
* // PPR/static-shell route
|
|
44
|
+
* export const experimental_ppr = true;
|
|
45
|
+
* export const revalidate = 60;
|
|
46
|
+
*
|
|
47
|
+
* // Directive config
|
|
48
|
+
* "use ssg; 60";
|
|
49
|
+
* export default function DocsPage() {
|
|
50
|
+
* return <h1>Docs</h1>;
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
interface RouteEntry {
|
|
56
|
+
path: string;
|
|
57
|
+
filePath: string;
|
|
58
|
+
isDynamic: boolean;
|
|
59
|
+
pattern: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
interface StaticRouteCandidateAnalysis {
|
|
63
|
+
candidate: boolean;
|
|
64
|
+
blockers: string[];
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Resolve the effective rendering mode. Direct request reads make an explicitly
|
|
68
|
+
* static route dynamic so request-specific HTML cannot enter a shared artifact.
|
|
69
|
+
*/
|
|
70
|
+
declare function resolveRouteRenderingConfig(mod: RouteModule | null | undefined, source?: string, options?: RouteRenderingOptions): RouteRenderingConfig;
|
|
71
|
+
declare function resolveRouteRenderingConfigFromFile(mod: RouteModule | null | undefined, filePath: string, options?: RouteRenderingOptions): Promise<RouteRenderingConfig>;
|
|
72
|
+
/**
|
|
73
|
+
* Conservatively identify a route that may be safe to pre-render.
|
|
74
|
+
*
|
|
75
|
+
* This intentionally produces a suggestion rather than changing rendering:
|
|
76
|
+
* request-bound work can live in a transitive import, which source inspection
|
|
77
|
+
* of the route module cannot prove safe. Explicit route config always wins.
|
|
78
|
+
*/
|
|
79
|
+
declare function analyzeStaticRouteCandidate(mod: RouteModule | null | undefined, source: string | undefined, options?: {
|
|
80
|
+
isDynamic?: boolean;
|
|
81
|
+
}): StaticRouteCandidateAnalysis;
|
|
82
|
+
declare function findRequestBoundSourceBlockers(source: string): string[];
|
|
83
|
+
declare function parseRouteRenderingDirective(source: string | undefined): DirectiveRenderingConfig | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* A route's rendering directive as the production runtime needs it: the parsed directive plus
|
|
86
|
+
* whether its source reads request state. The runtime only sees module exports, so the build
|
|
87
|
+
* decides `requestBound` here and bakes it into the generated server entry, where
|
|
88
|
+
* `mergeRouteRenderingDirectiveConfig` combines it with the module's exports.
|
|
89
|
+
*/
|
|
90
|
+
declare function readRouteRenderingDirectiveFromFile(modulePath: string): DirectiveRenderingConfig | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Collect SSG pages from route modules
|
|
93
|
+
*
|
|
94
|
+
* Scans all routes and categorizes them into:
|
|
95
|
+
* - SSG pages: Pre-rendered at build time
|
|
96
|
+
* - SSR routes: Rendered on each request
|
|
97
|
+
*
|
|
98
|
+
* @param routes - Array of route entries
|
|
99
|
+
* @param loadModule - Function to load a route module
|
|
100
|
+
* @returns SSG pages and SSR routes
|
|
101
|
+
*/
|
|
102
|
+
declare function collectSSGPages(routes: RouteEntry[], loadModule: (filePath: string) => Promise<RouteModule>, options?: {
|
|
103
|
+
suggestStaticRendering?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Routes a docs adapter renders, which ignore route config: a static candidate among them
|
|
106
|
+
* is pointed at `docs.prerender` instead of `force-static`, or not at all once it is set.
|
|
107
|
+
*/
|
|
108
|
+
docsAdapterRoutes?: {
|
|
109
|
+
owns: (routePath: string) => boolean;
|
|
110
|
+
prerender: boolean;
|
|
111
|
+
};
|
|
112
|
+
}): Promise<SSGCollectionResult>;
|
|
113
|
+
/**
|
|
114
|
+
* Check if a route module is SSG
|
|
115
|
+
*/
|
|
116
|
+
declare function isSSGModule(mod: RouteModule | null | undefined): boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Check if a route module has ISR (Incremental Static Regeneration)
|
|
119
|
+
*/
|
|
120
|
+
declare function hasISR(mod: RouteModule | null | undefined): boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Get revalidation interval for a module
|
|
123
|
+
*/
|
|
124
|
+
declare function getRevalidateInterval(mod: RouteModule | null | undefined): number | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* Check if a route module has PPR/static-shell caching enabled.
|
|
127
|
+
*/
|
|
128
|
+
declare function hasPPR(mod: RouteModule | null | undefined, options?: RouteRenderingOptions): boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Generate SSG manifest for production builds
|
|
131
|
+
*/
|
|
132
|
+
declare function generateSSGManifest(pages: SSGPage[]): string;
|
|
133
|
+
/**
|
|
134
|
+
* Check if a URL path matches an SSG page
|
|
135
|
+
*/
|
|
136
|
+
declare function matchSSGPage(urlPath: string, ssgPages: SSGPage[]): SSGPage | undefined;
|
|
137
|
+
|
|
138
|
+
export { type StaticRouteCandidateAnalysis as S, analyzeStaticRouteCandidate as a, getRevalidateInterval as b, collectSSGPages as c, hasPPR as d, resolveRouteRenderingConfig as e, findRequestBoundSourceBlockers as f, generateSSGManifest as g, hasISR as h, isSSGModule as i, resolveRouteRenderingConfigFromFile as j, matchSSGPage as m, parseRouteRenderingDirective as p, readRouteRenderingDirectiveFromFile as r };
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { R as RouteRenderingOptions, a as RouteRenderingConfig, D as DirectiveRenderingConfig } from './route-rendering.d-CeF1FOnl.mjs';
|
|
2
|
+
import { e as RouteModule, S as SSGCollectionResult, n as SSGPage } from './client-plugins.d-BmBzvfSP.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Farm.js SSG (Static Site Generation) Module
|
|
6
|
+
*
|
|
7
|
+
* Handles collection and pre-rendering of SSG pages at build time.
|
|
8
|
+
*
|
|
9
|
+
* SSR is the default - pages render on each request
|
|
10
|
+
* SSG is opt-in via `export const ssg = true`, Next-compatible route
|
|
11
|
+
* config exports, or a top-of-file rendering directive.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* // SSG Page
|
|
16
|
+
* export const ssg = true;
|
|
17
|
+
* export default function AboutPage() {
|
|
18
|
+
* return <h1>About</h1>;
|
|
19
|
+
* }
|
|
20
|
+
*
|
|
21
|
+
* // SSG with ISR
|
|
22
|
+
* export const ssg = true;
|
|
23
|
+
* export const revalidate = 60;
|
|
24
|
+
* export default async function ProductsPage() {
|
|
25
|
+
* const products = await fetchProducts();
|
|
26
|
+
* return <ProductList products={products} />;
|
|
27
|
+
* }
|
|
28
|
+
*
|
|
29
|
+
* // Dynamic SSG
|
|
30
|
+
* export const ssg = true;
|
|
31
|
+
* export async function getStaticPaths() {
|
|
32
|
+
* const posts = await fetchPosts();
|
|
33
|
+
* return posts.map(post => ({ slug: post.slug }));
|
|
34
|
+
* }
|
|
35
|
+
* export default async function BlogPost({ params }) {
|
|
36
|
+
* return <article>{params.slug}</article>;
|
|
37
|
+
* }
|
|
38
|
+
*
|
|
39
|
+
* // Next-compatible route config
|
|
40
|
+
* export const dynamic = "force-static";
|
|
41
|
+
* export const revalidate = 60;
|
|
42
|
+
*
|
|
43
|
+
* // PPR/static-shell route
|
|
44
|
+
* export const experimental_ppr = true;
|
|
45
|
+
* export const revalidate = 60;
|
|
46
|
+
*
|
|
47
|
+
* // Directive config
|
|
48
|
+
* "use ssg; 60";
|
|
49
|
+
* export default function DocsPage() {
|
|
50
|
+
* return <h1>Docs</h1>;
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
interface RouteEntry {
|
|
56
|
+
path: string;
|
|
57
|
+
filePath: string;
|
|
58
|
+
isDynamic: boolean;
|
|
59
|
+
pattern: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
interface StaticRouteCandidateAnalysis {
|
|
63
|
+
candidate: boolean;
|
|
64
|
+
blockers: string[];
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Resolve the effective rendering mode. Direct request reads make an explicitly
|
|
68
|
+
* static route dynamic so request-specific HTML cannot enter a shared artifact.
|
|
69
|
+
*/
|
|
70
|
+
declare function resolveRouteRenderingConfig(mod: RouteModule | null | undefined, source?: string, options?: RouteRenderingOptions): RouteRenderingConfig;
|
|
71
|
+
declare function resolveRouteRenderingConfigFromFile(mod: RouteModule | null | undefined, filePath: string, options?: RouteRenderingOptions): Promise<RouteRenderingConfig>;
|
|
72
|
+
/**
|
|
73
|
+
* Conservatively identify a route that may be safe to pre-render.
|
|
74
|
+
*
|
|
75
|
+
* This intentionally produces a suggestion rather than changing rendering:
|
|
76
|
+
* request-bound work can live in a transitive import, which source inspection
|
|
77
|
+
* of the route module cannot prove safe. Explicit route config always wins.
|
|
78
|
+
*/
|
|
79
|
+
declare function analyzeStaticRouteCandidate(mod: RouteModule | null | undefined, source: string | undefined, options?: {
|
|
80
|
+
isDynamic?: boolean;
|
|
81
|
+
}): StaticRouteCandidateAnalysis;
|
|
82
|
+
declare function findRequestBoundSourceBlockers(source: string): string[];
|
|
83
|
+
declare function parseRouteRenderingDirective(source: string | undefined): DirectiveRenderingConfig | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* A route's rendering directive as the production runtime needs it: the parsed directive plus
|
|
86
|
+
* whether its source reads request state. The runtime only sees module exports, so the build
|
|
87
|
+
* decides `requestBound` here and bakes it into the generated server entry, where
|
|
88
|
+
* `mergeRouteRenderingDirectiveConfig` combines it with the module's exports.
|
|
89
|
+
*/
|
|
90
|
+
declare function readRouteRenderingDirectiveFromFile(modulePath: string): DirectiveRenderingConfig | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Collect SSG pages from route modules
|
|
93
|
+
*
|
|
94
|
+
* Scans all routes and categorizes them into:
|
|
95
|
+
* - SSG pages: Pre-rendered at build time
|
|
96
|
+
* - SSR routes: Rendered on each request
|
|
97
|
+
*
|
|
98
|
+
* @param routes - Array of route entries
|
|
99
|
+
* @param loadModule - Function to load a route module
|
|
100
|
+
* @returns SSG pages and SSR routes
|
|
101
|
+
*/
|
|
102
|
+
declare function collectSSGPages(routes: RouteEntry[], loadModule: (filePath: string) => Promise<RouteModule>, options?: {
|
|
103
|
+
suggestStaticRendering?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Routes a docs adapter renders, which ignore route config: a static candidate among them
|
|
106
|
+
* is pointed at `docs.prerender` instead of `force-static`, or not at all once it is set.
|
|
107
|
+
*/
|
|
108
|
+
docsAdapterRoutes?: {
|
|
109
|
+
owns: (routePath: string) => boolean;
|
|
110
|
+
prerender: boolean;
|
|
111
|
+
};
|
|
112
|
+
}): Promise<SSGCollectionResult>;
|
|
113
|
+
/**
|
|
114
|
+
* Check if a route module is SSG
|
|
115
|
+
*/
|
|
116
|
+
declare function isSSGModule(mod: RouteModule | null | undefined): boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Check if a route module has ISR (Incremental Static Regeneration)
|
|
119
|
+
*/
|
|
120
|
+
declare function hasISR(mod: RouteModule | null | undefined): boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Get revalidation interval for a module
|
|
123
|
+
*/
|
|
124
|
+
declare function getRevalidateInterval(mod: RouteModule | null | undefined): number | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* Check if a route module has PPR/static-shell caching enabled.
|
|
127
|
+
*/
|
|
128
|
+
declare function hasPPR(mod: RouteModule | null | undefined, options?: RouteRenderingOptions): boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Generate SSG manifest for production builds
|
|
131
|
+
*/
|
|
132
|
+
declare function generateSSGManifest(pages: SSGPage[]): string;
|
|
133
|
+
/**
|
|
134
|
+
* Check if a URL path matches an SSG page
|
|
135
|
+
*/
|
|
136
|
+
declare function matchSSGPage(urlPath: string, ssgPages: SSGPage[]): SSGPage | undefined;
|
|
137
|
+
|
|
138
|
+
export { type StaticRouteCandidateAnalysis as S, analyzeStaticRouteCandidate as a, getRevalidateInterval as b, collectSSGPages as c, hasPPR as d, resolveRouteRenderingConfig as e, findRequestBoundSourceBlockers as f, generateSSGManifest as g, hasISR as h, isSSGModule as i, resolveRouteRenderingConfigFromFile as j, matchSSGPage as m, parseRouteRenderingDirective as p, readRouteRenderingDirectiveFromFile as r };
|
package/dist/storage.cjs
CHANGED
|
@@ -27,7 +27,11 @@
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
var _chunkRFXEQYPHcjs = require('./chunk-RFXEQYPH.cjs');
|
|
34
|
+
require('./chunk-XRRHPBG2.cjs');
|
|
31
35
|
require('./chunk-BTZ5O6VM.cjs');
|
|
32
36
|
|
|
33
37
|
|
|
@@ -58,4 +62,7 @@ require('./chunk-BTZ5O6VM.cjs');
|
|
|
58
62
|
|
|
59
63
|
|
|
60
64
|
|
|
61
|
-
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
exports._collectFarmStorageModules = _chunkRFXEQYPHcjs._collectFarmStorageModules; exports._registerFarmStorageModules = _chunkRFXEQYPHcjs._registerFarmStorageModules; exports.createFarmStorage = _chunkRFXEQYPHcjs.createFarmStorage; exports.createStorageClient = _chunkRFXEQYPHcjs.createStorageClient; exports.databaseStorage = _chunkRFXEQYPHcjs.databaseStorage; exports.defineStorageClient = _chunkRFXEQYPHcjs.defineStorageClient; exports.disposeStorage = _chunkRFXEQYPHcjs.disposeStorage; exports.driverStorage = _chunkRFXEQYPHcjs.driverStorage; exports.farmStorage = _chunkRFXEQYPHcjs.farmStorage; exports.getDatabase = _chunkRFXEQYPHcjs.getDatabase; exports.getStorage = _chunkRFXEQYPHcjs.getStorage; exports.initStorage = _chunkRFXEQYPHcjs.initStorage; exports.libsqlStorage = _chunkRFXEQYPHcjs.libsqlStorage; exports.localStorage = _chunkRFXEQYPHcjs.localStorage; exports.memoryStorage = _chunkRFXEQYPHcjs.memoryStorage; exports.mongodbStorage = _chunkRFXEQYPHcjs.mongodbStorage; exports.mysql2Storage = _chunkRFXEQYPHcjs.mysql2Storage; exports.mysqlStorage = _chunkRFXEQYPHcjs.mysqlStorage; exports.netlifyBlobsStorage = _chunkRFXEQYPHcjs.netlifyBlobsStorage; exports.pgStorage = _chunkRFXEQYPHcjs.pgStorage; exports.pgliteStorage = _chunkRFXEQYPHcjs.pgliteStorage; exports.planetscaleStorage = _chunkRFXEQYPHcjs.planetscaleStorage; exports.postgresStorage = _chunkRFXEQYPHcjs.postgresStorage; exports.redisStorage = _chunkRFXEQYPHcjs.redisStorage; exports.resolveManagedStorageMount = _chunkRFXEQYPHcjs.resolveManagedStorageMount; exports.resolveStorageRuntimeClient = _chunkRFXEQYPHcjs.resolveStorageRuntimeClient; exports.s3Storage = _chunkRFXEQYPHcjs.s3Storage; exports.sqliteStorage = _chunkRFXEQYPHcjs.sqliteStorage; exports.upstashStorage = _chunkRFXEQYPHcjs.upstashStorage; exports.vercelBlobStorage = _chunkRFXEQYPHcjs.vercelBlobStorage; exports.vercelKVStorage = _chunkRFXEQYPHcjs.vercelKVStorage;
|