@farm.js/core 0.1.27 → 0.1.28
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-runtime.d.mts +2 -1
- package/dist/agent-runtime.d.ts +2 -1
- package/dist/api/client.cjs +4 -6
- package/dist/api/client.d.mts +1 -0
- package/dist/api/client.d.ts +1 -0
- package/dist/api/client.mjs +3 -5
- package/dist/api/route-manager.cjs +9 -8
- package/dist/api/route-manager.d.mts +2 -1
- package/dist/api/route-manager.d.ts +2 -1
- package/dist/api/route-manager.mjs +8 -7
- package/dist/api/runtime.cjs +7 -6
- package/dist/api/runtime.d.mts +2 -1
- package/dist/api/runtime.d.ts +2 -1
- package/dist/api/runtime.mjs +6 -5
- package/dist/api.cjs +12 -11
- package/dist/api.d.mts +3 -2
- package/dist/api.d.ts +3 -2
- package/dist/api.mjs +11 -10
- package/dist/{app-BfzZdjgX.d.mts → app-DSSq6wiN.d.mts} +3 -3
- package/dist/{app-CXK7Prrt.d.ts → app-M8nVWvNU.d.ts} +3 -3
- package/dist/app-markdown.cjs +5 -5
- package/dist/app-markdown.d.mts +3 -2
- package/dist/app-markdown.d.ts +3 -2
- package/dist/app-markdown.mjs +4 -4
- package/dist/cache-invalidation-BD0z_lfu.d.mts +4 -0
- package/dist/cache-invalidation-BD0z_lfu.d.ts +4 -0
- package/dist/cache.cjs +6 -4
- package/dist/cache.d.mts +11 -6
- package/dist/cache.d.ts +11 -6
- package/dist/cache.mjs +7 -5
- package/dist/{chunk-4FHDV7VM.mjs → chunk-2CNBR3EB.mjs} +2 -2
- package/dist/{chunk-MBFURXAC.mjs → chunk-2DLN6HG4.mjs} +1 -1
- package/dist/{chunk-UUYF3CHN.mjs → chunk-2N5PX3LS.mjs} +2 -2
- package/dist/{chunk-H6G5INWM.cjs → chunk-2SDO73HK.cjs} +14 -156
- package/dist/{chunk-3TQWUUNP.cjs → chunk-3LUF2PE2.cjs} +10 -5
- package/dist/{chunk-SYGGPS4A.mjs → chunk-4IEPYMHF.mjs} +3 -3
- package/dist/{chunk-WD5PNSOB.mjs → chunk-4V7GIE2U.mjs} +6 -4
- package/dist/{chunk-DQMTHWPI.cjs → chunk-55ZY4ZA7.cjs} +4 -4
- package/dist/{chunk-I7PUUDGY.cjs → chunk-63H6BKXG.cjs} +2 -2
- package/dist/{chunk-FG5H2VCJ.mjs → chunk-6ZCMSZ5U.mjs} +2 -2
- package/dist/{chunk-ZMN3H73H.cjs → chunk-75DYEVXI.cjs} +13 -11
- package/dist/{chunk-WJKVTJJR.cjs → chunk-A672WZEG.cjs} +2 -2
- package/dist/{chunk-NL3ZSMZB.cjs → chunk-BJPBQNIE.cjs} +12 -12
- package/dist/{chunk-Q4BHBO6V.mjs → chunk-BXFWA23T.mjs} +2 -2
- package/dist/chunk-CNOQY6Z7.mjs +156 -0
- package/dist/{chunk-DW34V5SM.cjs → chunk-CTV2TTNP.cjs} +4 -4
- package/dist/{chunk-YXM74XOW.cjs → chunk-D4JE5NNV.cjs} +12 -12
- package/dist/{chunk-4UNKCNSL.mjs → chunk-E76XC6ZG.mjs} +2 -2
- package/dist/{chunk-G3HRIVEY.cjs → chunk-ES4B2IXW.cjs} +2 -2
- package/dist/{chunk-TDWFCC2T.cjs → chunk-EWZ3XHKQ.cjs} +2 -2
- package/dist/{chunk-JQGDQO2I.cjs → chunk-EXLKRR4U.cjs} +10 -10
- package/dist/{chunk-YZBV7733.cjs → chunk-F52CDFJM.cjs} +81 -81
- package/dist/{chunk-HG237IEY.mjs → chunk-FB3H4INL.mjs} +1 -1
- package/dist/{chunk-UWTQTZFN.mjs → chunk-FVCSLZWT.mjs} +11 -11
- package/dist/{chunk-WD4YXVLV.mjs → chunk-GZYH4OER.mjs} +1 -1
- package/dist/{chunk-DX4VKYAJ.cjs → chunk-I26CZYPV.cjs} +6 -4
- package/dist/{chunk-UNSKL6BI.cjs → chunk-ID6OVSLH.cjs} +163 -129
- package/dist/{chunk-F6SJAKFJ.mjs → chunk-IV6CQY7O.mjs} +12 -154
- package/dist/{chunk-6D242YGO.mjs → chunk-JATSG2ZO.mjs} +1 -1
- package/dist/{chunk-U74A3P2P.cjs → chunk-JLRDISQL.cjs} +7 -7
- package/dist/{chunk-LAHZ7LZA.cjs → chunk-JUFRXDTK.cjs} +18 -18
- package/dist/{chunk-POXI72VV.mjs → chunk-K3YEZLSY.mjs} +53 -8
- package/dist/{chunk-Y4YWHNKU.cjs → chunk-KH7BN726.cjs} +9 -9
- package/dist/{chunk-KAERLFD3.cjs → chunk-KOQ555NR.cjs} +16 -13
- package/dist/{chunk-O2LV5XDG.mjs → chunk-KXGDXYUC.mjs} +3 -3
- package/dist/{chunk-3IL5UC5I.cjs → chunk-KZLND3D2.cjs} +2 -2
- package/dist/{chunk-NPFGGBM5.cjs → chunk-MH24QDVJ.cjs} +13 -13
- package/dist/{chunk-TKDY6AJP.mjs → chunk-MKMBQSNQ.mjs} +1 -1
- package/dist/{chunk-OCE65DDM.mjs → chunk-MNUGPHLN.mjs} +1 -1
- package/dist/{chunk-3PTVHMLD.mjs → chunk-NVBS5WSZ.mjs} +1 -1
- package/dist/chunk-NYJMY3JA.cjs +156 -0
- package/dist/{chunk-VVJCWBIE.mjs → chunk-O3DTUAX2.mjs} +2 -2
- package/dist/{chunk-C7OUJ6JI.cjs → chunk-PZNCMPJF.cjs} +3 -3
- package/dist/{chunk-WIVTGKLY.mjs → chunk-PZPDGOU5.mjs} +9 -6
- package/dist/{chunk-52SH7TKB.mjs → chunk-QG5HNS7P.mjs} +2 -2
- package/dist/{chunk-CEYUWDWA.mjs → chunk-QZCT2CQ4.mjs} +10 -5
- package/dist/{chunk-JT25KHDI.mjs → chunk-REGFZJEJ.mjs} +1 -1
- package/dist/{chunk-QMV4QELL.mjs → chunk-S5GDHOE4.mjs} +4 -2
- package/dist/{chunk-CRQPYWLK.cjs → chunk-SORB3MAR.cjs} +14 -14
- package/dist/{chunk-FPW4W3VW.mjs → chunk-T7HQ3I4C.mjs} +1 -1
- package/dist/{chunk-HF5SIACK.cjs → chunk-TII23GJC.cjs} +3 -3
- package/dist/{chunk-QQQNJS2E.mjs → chunk-UX2DD2VK.mjs} +1 -1
- package/dist/{chunk-I4J452B7.cjs → chunk-VHJGDMCG.cjs} +3 -3
- package/dist/{chunk-QI7WQSMI.cjs → chunk-VQXDC5UV.cjs} +4 -4
- package/dist/{chunk-B6ZCT36X.cjs → chunk-WNLBF77X.cjs} +4 -4
- package/dist/{chunk-6EG7U4NF.mjs → chunk-X7WVQMIB.mjs} +1 -1
- package/dist/{chunk-5SPPCN5J.mjs → chunk-XNPDONUH.mjs} +1 -1
- package/dist/{chunk-ZSO5GWGD.cjs → chunk-XSPGWQWA.cjs} +75 -30
- package/dist/{chunk-FOT7LZEO.cjs → chunk-Y7GW7J46.cjs} +1 -1
- package/dist/{chunk-UOXGA6TO.mjs → chunk-YDQZGSDS.mjs} +1 -1
- package/dist/{chunk-C3VRMB6H.cjs → chunk-ZCU4NZ3M.cjs} +6 -6
- package/dist/{chunk-OGHTEYXS.mjs → chunk-ZRIE4KMG.mjs} +62 -28
- package/dist/{client-plugins-1GS4zubE.d.mts → client-plugins-CgYNY7jF.d.mts} +35 -32
- package/dist/{client-plugins-B1Za6F5x.d.ts → client-plugins-Fl9Og3yB.d.ts} +35 -32
- package/dist/client-plugins.d.mts +2 -1
- package/dist/client-plugins.d.ts +2 -1
- package/dist/client.cjs +11 -12
- package/dist/client.d.mts +6 -5
- package/dist/client.d.ts +6 -5
- package/dist/client.mjs +10 -11
- package/dist/config.d.mts +2 -1
- package/dist/config.d.ts +2 -1
- package/dist/{devtools-6RN6KHTW.mjs → devtools-3E7ZANMZ.mjs} +4 -4
- package/dist/{devtools-CQJ3H6MX.cjs → devtools-5AREISIA.cjs} +5 -5
- package/dist/docs.cjs +7 -7
- package/dist/docs.mjs +6 -6
- package/dist/index.cjs +56 -54
- package/dist/index.d.mts +14 -13
- package/dist/index.d.ts +14 -13
- package/dist/index.mjs +64 -62
- package/dist/integrations.d.mts +2 -1
- package/dist/integrations.d.ts +2 -1
- package/dist/internal/app-markdown-runtime.cjs +4 -4
- package/dist/internal/app-markdown-runtime.d.mts +3 -2
- package/dist/internal/app-markdown-runtime.d.ts +3 -2
- package/dist/internal/app-markdown-runtime.mjs +3 -3
- package/dist/internal/build-runtime.cjs +23 -22
- package/dist/internal/build-runtime.d.mts +4 -3
- package/dist/internal/build-runtime.d.ts +4 -3
- package/dist/internal/build-runtime.mjs +22 -21
- package/dist/internal/cli-runtime.cjs +13 -12
- package/dist/internal/cli-runtime.mjs +12 -11
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +5 -1
- package/dist/internal/client-runtime.d.mts +1 -0
- package/dist/internal/client-runtime.d.ts +1 -0
- package/dist/internal/client-runtime.mjs +4 -0
- package/dist/internal/compression-runtime.d.mts +2 -1
- package/dist/internal/compression-runtime.d.ts +2 -1
- package/dist/internal/config-runtime.cjs +5 -5
- package/dist/internal/config-runtime.d.mts +3 -2
- package/dist/internal/config-runtime.d.ts +3 -2
- package/dist/internal/config-runtime.mjs +4 -4
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +17 -15
- package/dist/internal/production-runtime.d.mts +8 -7
- package/dist/internal/production-runtime.d.ts +8 -7
- package/dist/internal/production-runtime.mjs +17 -15
- package/dist/markdown.cjs +3 -3
- package/dist/markdown.d.mts +2 -1
- package/dist/markdown.d.ts +2 -1
- package/dist/markdown.mjs +2 -2
- package/dist/{metadata-B9mCxKgp.d.mts → metadata-B0X-qtcQ.d.mts} +1 -1
- package/dist/{metadata-7LKgQEWF.d.ts → metadata-BdDKgd7K.d.ts} +1 -1
- package/dist/middleware.cjs +4 -4
- package/dist/middleware.d.mts +4 -3
- package/dist/middleware.d.ts +4 -3
- package/dist/middleware.mjs +3 -3
- package/dist/navigation.cjs +5 -5
- package/dist/navigation.d.mts +5 -4
- package/dist/navigation.d.ts +5 -4
- package/dist/navigation.mjs +4 -4
- package/dist/plugin.cjs +23 -19
- package/dist/plugin.d.mts +2 -1
- package/dist/plugin.d.ts +2 -1
- package/dist/plugin.mjs +23 -19
- package/dist/{production-runtime-DramhI0c.d.mts → production-runtime-BjgFgDIg.d.mts} +1 -1
- package/dist/{production-runtime-B3xnY6fI.d.ts → production-runtime-Dx_qMA3t.d.ts} +1 -1
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan-CpW32tOL.d.ts → render-plan-B41EWmBb.d.ts} +1 -1
- package/dist/{render-plan-CtQB-zHS.d.mts → render-plan-_1TAWODt.d.mts} +1 -1
- package/dist/renderer-client.cjs +13 -14
- package/dist/renderer-client.d.mts +4 -3
- package/dist/renderer-client.d.ts +4 -3
- package/dist/renderer-client.mjs +6 -7
- package/dist/{request-DlLVBKe3.d.mts → request-BhE4luLv.d.mts} +1 -1
- package/dist/{request-BVGGeQv4.d.ts → request-Dbf3G0zM.d.ts} +1 -1
- package/dist/request.d.mts +3 -2
- package/dist/request.d.ts +3 -2
- package/dist/{route-rendering-BdEldajn.d.ts → route-rendering-Z7PveTZE.d.ts} +1 -1
- package/dist/{route-rendering-DChYLNdh.d.mts → route-rendering-zzfx_GHf.d.mts} +1 -1
- package/dist/{router-D5htHn_M.d.mts → router-BatNMsa1.d.mts} +1 -1
- package/dist/{router-D0Az-1Nu.d.ts → router-DtNRhQl3.d.ts} +1 -1
- package/dist/routes.cjs +6 -5
- package/dist/routes.d.mts +2 -1
- package/dist/routes.d.ts +2 -1
- package/dist/routes.mjs +5 -4
- package/dist/server-fn-client.d.mts +1 -0
- package/dist/server-fn-client.d.ts +1 -0
- package/dist/server-fn.cjs +6 -5
- package/dist/server-fn.d.mts +1 -0
- package/dist/server-fn.d.ts +1 -0
- package/dist/server-fn.mjs +5 -4
- package/dist/server-plugins.d.mts +3 -2
- package/dist/server-plugins.d.ts +3 -2
- package/dist/server-query-client.cjs +5 -7
- package/dist/server-query-client.d.mts +1 -0
- package/dist/server-query-client.d.ts +1 -0
- package/dist/server-query-client.mjs +4 -6
- package/dist/server-query.cjs +7 -6
- package/dist/server-query.d.mts +1 -0
- package/dist/server-query.d.ts +1 -0
- package/dist/server-query.mjs +6 -5
- package/dist/server.cjs +64 -54
- package/dist/server.d.mts +9 -8
- package/dist/server.d.ts +9 -8
- package/dist/server.mjs +48 -38
- package/dist/{spa-router-DmwP_7QL.d.ts → spa-router-BE3bwU-J.d.ts} +2 -2
- package/dist/{spa-router-DVfSJZ5o.d.mts → spa-router-DQOnHZVj.d.mts} +2 -2
- package/dist/testing.cjs +14 -13
- package/dist/testing.d.mts +2 -1
- package/dist/testing.d.ts +2 -1
- package/dist/testing.mjs +11 -10
- package/dist/{utils-B_Rmr0-n.d.mts → utils-DLK1ERNl.d.mts} +1 -1
- package/dist/{utils-Dv0OuLtF.d.ts → utils-u7ZBSWAK.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +19 -18
- package/dist/vite.d.mts +2 -1
- package/dist/vite.d.ts +2 -1
- package/dist/vite.mjs +18 -17
- package/package.json +1 -1
- package/dist/{chunk-YOYF2E4U.mjs → chunk-LNZ7JZUS.mjs} +0 -0
- package/dist/{chunk-N4RLRSWW.cjs → chunk-SUIBNSNO.cjs} +0 -0
- package/dist/{chunk-TIKNUAU7.mjs → chunk-VUMAE7NC.mjs} +3 -3
- package/dist/{chunk-WM6HL7E7.cjs → chunk-ZHVYQL3H.cjs} +2 -2
|
@@ -7,7 +7,7 @@ var _chunkMT763TDWcjs = require('./chunk-MT763TDW.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkMH24QDVJcjs = require('./chunk-MH24QDVJ.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -17,7 +17,7 @@ var _chunkNPFGGBM5cjs = require('./chunk-NPFGGBM5.cjs');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkVQXDC5UVcjs = require('./chunk-VQXDC5UV.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -34,7 +34,7 @@ var _chunkIK6LVLKCcjs = require('./chunk-IK6LVLKC.cjs');
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkKOQ555NRcjs = require('./chunk-KOQ555NR.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
var _chunkKCMTCM6Icjs = require('./chunk-KCMTCM6I.cjs');
|
|
@@ -70,17 +70,17 @@ var _chunk2SJ4RQ6Pcjs = require('./chunk-2SJ4RQ6P.cjs');
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
var
|
|
73
|
+
var _chunkID6OVSLHcjs = require('./chunk-ID6OVSLH.cjs');
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
var
|
|
79
|
+
var _chunkCTV2TTNPcjs = require('./chunk-CTV2TTNP.cjs');
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
var
|
|
83
|
+
var _chunkA672WZEGcjs = require('./chunk-A672WZEG.cjs');
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
var _chunkCXP5U3RWcjs = require('./chunk-CXP5U3RW.cjs');
|
|
@@ -112,7 +112,7 @@ var _chunkVPTDD5XFcjs = require('./chunk-VPTDD5XF.cjs');
|
|
|
112
112
|
var _chunkPSV6XKPOcjs = require('./chunk-PSV6XKPO.cjs');
|
|
113
113
|
|
|
114
114
|
|
|
115
|
-
var
|
|
115
|
+
var _chunk55ZY4ZA7cjs = require('./chunk-55ZY4ZA7.cjs');
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
|
|
@@ -124,14 +124,14 @@ var _chunk6EXBPJ24cjs = require('./chunk-6EXBPJ24.cjs');
|
|
|
124
124
|
var _chunkVEKFLAQMcjs = require('./chunk-VEKFLAQM.cjs');
|
|
125
125
|
|
|
126
126
|
|
|
127
|
-
var
|
|
127
|
+
var _chunkTII23GJCcjs = require('./chunk-TII23GJC.cjs');
|
|
128
128
|
|
|
129
129
|
|
|
130
130
|
|
|
131
131
|
var _chunkOHY2ZWUGcjs = require('./chunk-OHY2ZWUG.cjs');
|
|
132
132
|
|
|
133
133
|
|
|
134
|
-
var
|
|
134
|
+
var _chunkXSPGWQWAcjs = require('./chunk-XSPGWQWA.cjs');
|
|
135
135
|
|
|
136
136
|
|
|
137
137
|
|
|
@@ -142,10 +142,10 @@ var _chunkMPEYMSCFcjs = require('./chunk-MPEYMSCF.cjs');
|
|
|
142
142
|
var _chunkZ5HIWVDPcjs = require('./chunk-Z5HIWVDP.cjs');
|
|
143
143
|
|
|
144
144
|
|
|
145
|
-
var
|
|
145
|
+
var _chunkZHVYQL3Hcjs = require('./chunk-ZHVYQL3H.cjs');
|
|
146
146
|
|
|
147
147
|
|
|
148
|
-
var
|
|
148
|
+
var _chunkEXLKRR4Ucjs = require('./chunk-EXLKRR4U.cjs');
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
var _chunkIQXFRNY2cjs = require('./chunk-IQXFRNY2.cjs');
|
|
@@ -279,7 +279,7 @@ function getDocsTitle(docs) {
|
|
|
279
279
|
}
|
|
280
280
|
_chunkS3JO3N4Hcjs.__name.call(void 0, getDocsTitle, "getDocsTitle");
|
|
281
281
|
function loadPages(contentDir, docs) {
|
|
282
|
-
return
|
|
282
|
+
return _chunkVQXDC5UVcjs.discoverFarmDocsPages.call(void 0, contentDir, docs).map((page) => _chunkVQXDC5UVcjs.loadFarmDocsPage.call(void 0, contentDir, docs, page.slug)).filter((page) => Boolean(page)).sort((a, b) => a.href.localeCompare(b.href));
|
|
283
283
|
}
|
|
284
284
|
_chunkS3JO3N4Hcjs.__name.call(void 0, loadPages, "loadPages");
|
|
285
285
|
function findSocialImagePath(html) {
|
|
@@ -300,14 +300,14 @@ async function addHandlerRoute(routes, pathname, handler, absolutePaths) {
|
|
|
300
300
|
}
|
|
301
301
|
_chunkS3JO3N4Hcjs.__name.call(void 0, addHandlerRoute, "addHandlerRoute");
|
|
302
302
|
async function compileFarmDocsManifest(docs, options) {
|
|
303
|
-
const contentDir =
|
|
303
|
+
const contentDir = _chunkVQXDC5UVcjs.resolveFarmDocsContentDir.call(void 0, docs, options);
|
|
304
304
|
const pages = loadPages(contentDir, docs);
|
|
305
305
|
const absolutePaths = [
|
|
306
306
|
_path2.default.resolve(options.root),
|
|
307
307
|
_path2.default.resolve(contentDir),
|
|
308
308
|
docs.configPath || ""
|
|
309
309
|
];
|
|
310
|
-
const handler =
|
|
310
|
+
const handler = _chunkVQXDC5UVcjs.createFarmDocsHandler.call(void 0, docs, {
|
|
311
311
|
root: options.root,
|
|
312
312
|
srcDir: options.srcDir,
|
|
313
313
|
clientEntry: options.clientEntry,
|
|
@@ -315,7 +315,7 @@ async function compileFarmDocsManifest(docs, options) {
|
|
|
315
315
|
fontStylesheetHref: options.fontStylesheetHref,
|
|
316
316
|
globalStylesheetHref: options.globalStylesheetHref
|
|
317
317
|
});
|
|
318
|
-
const apiHandler =
|
|
318
|
+
const apiHandler = _chunkMH24QDVJcjs.createFarmDocsAPIHandler.call(void 0, {
|
|
319
319
|
rootDir: options.root,
|
|
320
320
|
srcDir: options.srcDir,
|
|
321
321
|
docs
|
|
@@ -407,7 +407,7 @@ async function compileFarmDocsManifest(docs, options) {
|
|
|
407
407
|
post: await compileResponse(postResponse, absolutePaths),
|
|
408
408
|
search: {
|
|
409
409
|
pages: pages.map((page) => ({
|
|
410
|
-
...
|
|
410
|
+
..._chunkVQXDC5UVcjs.toFarmDocsMarkdownPage.call(void 0, page),
|
|
411
411
|
sourcePath: `farm-docs:${page.slug || "index"}`
|
|
412
412
|
})),
|
|
413
413
|
search: _nullishCoalesce(searchConfig, () => ( true)),
|
|
@@ -427,7 +427,7 @@ async function createFarmRouteRuntimeManifest(options) {
|
|
|
427
427
|
const routes = [];
|
|
428
428
|
for (const [pattern, entry] of options.routeManager.getRoutes()) {
|
|
429
429
|
const routeModule = await options.routeManager.loadRouteModule(entry.modulePath);
|
|
430
|
-
const rendering = await
|
|
430
|
+
const rendering = await _chunkCTV2TTNPcjs.resolveRouteRenderingConfigFromFile.call(void 0, routeModule, entry.modulePath);
|
|
431
431
|
const runtimeConfig = await options.routeManager.resolveRouteRuntimeConfig(pattern);
|
|
432
432
|
routes.push({
|
|
433
433
|
kind: "page",
|
|
@@ -1487,7 +1487,7 @@ function hasFarmPluginRoutes(config) {
|
|
|
1487
1487
|
_chunkS3JO3N4Hcjs.__name.call(void 0, hasFarmPluginRoutes, "hasFarmPluginRoutes");
|
|
1488
1488
|
function farmServerRuntimePluginsMayHandlePath(config, pathname) {
|
|
1489
1489
|
return (config.plugins || []).some(
|
|
1490
|
-
(plugin) => _chunkZ5HIWVDPcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false &&
|
|
1490
|
+
(plugin) => _chunkZ5HIWVDPcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false && _chunkID6OVSLHcjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, pathname)
|
|
1491
1491
|
);
|
|
1492
1492
|
}
|
|
1493
1493
|
_chunkS3JO3N4Hcjs.__name.call(void 0, farmServerRuntimePluginsMayHandlePath, "farmServerRuntimePluginsMayHandlePath");
|
|
@@ -1515,7 +1515,7 @@ async function discoverMiddlewareRoutes(appDir) {
|
|
|
1515
1515
|
if (!entry.isDirectory() || entry.name.startsWith(".") || entry.name.startsWith("_")) {
|
|
1516
1516
|
continue;
|
|
1517
1517
|
}
|
|
1518
|
-
const childRoutePath =
|
|
1518
|
+
const childRoutePath = _chunkZHVYQL3Hcjs.appendMiddlewareRoutePath.call(void 0, routePath, entry.name);
|
|
1519
1519
|
await walk(_path2.default.join(dir, entry.name), childRoutePath, discovered);
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
@@ -1549,7 +1549,7 @@ async function buildUniversal(config, routeManager, apiRouteManager, serverRende
|
|
|
1549
1549
|
assertFarmDocsRuntimeSupported(config, preset);
|
|
1550
1550
|
const srcDir = config.srcDir || "src";
|
|
1551
1551
|
const distDir = config.distDir || ".farm";
|
|
1552
|
-
const deployOutputDir =
|
|
1552
|
+
const deployOutputDir = _chunkKOQ555NRcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
1553
1553
|
const lifecyclePluginManager = options.pluginManager;
|
|
1554
1554
|
const productionViteResultPromise = Promise.allSettled([
|
|
1555
1555
|
Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkA6WIQH5Zcjs.loadFarmProductionVite.call(void 0, ))))
|
|
@@ -1568,7 +1568,7 @@ async function buildUniversal(config, routeManager, apiRouteManager, serverRende
|
|
|
1568
1568
|
const routeRuntimeManifestResultPromise = Promise.allSettled([routeRuntimeManifestPromise]);
|
|
1569
1569
|
const pageRoutes = [];
|
|
1570
1570
|
for (const [pattern, entry] of routeManager.getRoutes()) {
|
|
1571
|
-
const markdownSourcePath = entry.markdownSourcePath || (
|
|
1571
|
+
const markdownSourcePath = entry.markdownSourcePath || (_chunkTII23GJCcjs.isFarmMarkdownPageFile.call(void 0, entry.modulePath) ? entry.modulePath : void 0);
|
|
1572
1572
|
pageRoutes.push({
|
|
1573
1573
|
pattern,
|
|
1574
1574
|
modulePath: entry.modulePath,
|
|
@@ -1797,7 +1797,7 @@ async function mergeBuiltFontCss(outputDir, fontCssSource) {
|
|
|
1797
1797
|
}
|
|
1798
1798
|
const normalizedFontCss = typeof fontCss === "string" ? fontCss : Buffer.from(fontCss).toString("utf8");
|
|
1799
1799
|
await fs.writeFile(fontCssPath, normalizedFontCss);
|
|
1800
|
-
await fs.writeFile(clientCssPath,
|
|
1800
|
+
await fs.writeFile(clientCssPath, _chunkID6OVSLHcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
|
|
1801
1801
|
}
|
|
1802
1802
|
_chunkS3JO3N4Hcjs.__name.call(void 0, mergeBuiltFontCss, "mergeBuiltFontCss");
|
|
1803
1803
|
var _IncompleteClientBuildOutputError = class _IncompleteClientBuildOutputError extends Error {
|
|
@@ -1847,7 +1847,7 @@ function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, optio
|
|
|
1847
1847
|
const key = `${_path2.default.resolve(root)}\0${mode}\0${options.asyncOwnerIslands === true}\0${_path2.default.resolve(modulePath)}`;
|
|
1848
1848
|
let plan = cache.get(key);
|
|
1849
1849
|
if (!plan) {
|
|
1850
|
-
plan =
|
|
1850
|
+
plan = _chunkID6OVSLHcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
|
|
1851
1851
|
cache.set(key, plan);
|
|
1852
1852
|
}
|
|
1853
1853
|
return { ...plan, isolatedBoundaries: [...plan.isolatedBoundaries] };
|
|
@@ -1876,14 +1876,14 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
1876
1876
|
`[Farm.js] isolated hydration kept route-wide because integration provider "${unsupportedIntegrationProvider.name}" does not declare supportsIsolatedHydration: true.`
|
|
1877
1877
|
);
|
|
1878
1878
|
}
|
|
1879
|
-
const isolatedMode =
|
|
1879
|
+
const isolatedMode = _chunkID6OVSLHcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
1880
1880
|
_optionalChain([config, 'access', _35 => _35.experimental, 'optionalAccess', _36 => _36.isolatedClientHydration]),
|
|
1881
1881
|
{
|
|
1882
1882
|
serverComponents: _optionalChain([config, 'access', _37 => _37.experimental, 'optionalAccess', _38 => _38.serverComponents]) === true,
|
|
1883
1883
|
hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
|
|
1884
1884
|
}
|
|
1885
1885
|
);
|
|
1886
|
-
const planOptions =
|
|
1886
|
+
const planOptions = _chunkID6OVSLHcjs.getFarmClientHydrationPlanOptions.call(void 0,
|
|
1887
1887
|
config.renderer,
|
|
1888
1888
|
Boolean(unsupportedIntegrationProvider)
|
|
1889
1889
|
);
|
|
@@ -1940,7 +1940,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
1940
1940
|
), "isAdapterDocsRoute");
|
|
1941
1941
|
const syntheticDocsEntry = _optionalChain([config, 'access', _46 => _46.docs, 'optionalAccess', _47 => _47.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
|
|
1942
1942
|
const syntheticDocsPatterns = syntheticDocsEntry ? syntheticDocsEntry === "/" ? ["/", "/[...slug]"] : [syntheticDocsEntry, `${syntheticDocsEntry}/[...slug]`] : [];
|
|
1943
|
-
const markdownPagePlan =
|
|
1943
|
+
const markdownPagePlan = _chunkID6OVSLHcjs.createMarkdownPageHydrationPlanner.call(void 0,
|
|
1944
1944
|
_chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkOHY2ZWUGcjs.resolveMdxConfig.call(void 0, config.mdx), root),
|
|
1945
1945
|
root,
|
|
1946
1946
|
isolatedMode,
|
|
@@ -1948,7 +1948,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
1948
1948
|
);
|
|
1949
1949
|
const routePlans = pageRoutes.map((route) => ({
|
|
1950
1950
|
route,
|
|
1951
|
-
metadata:
|
|
1951
|
+
metadata: _chunkTII23GJCcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath) ? markdownPagePlan() : getCachedClientModuleHydrationPlan(
|
|
1952
1952
|
route.modulePath,
|
|
1953
1953
|
root,
|
|
1954
1954
|
isolatedMode,
|
|
@@ -1956,7 +1956,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
1956
1956
|
planOptions
|
|
1957
1957
|
)
|
|
1958
1958
|
}));
|
|
1959
|
-
|
|
1959
|
+
_chunkID6OVSLHcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
|
|
1960
1960
|
clientLayouts.map((layout) => ({
|
|
1961
1961
|
pattern: layout.pattern,
|
|
1962
1962
|
depth: layout.pattern.split("/").filter(Boolean).length,
|
|
@@ -1988,7 +1988,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
1988
1988
|
for (const layout of clientLayouts) {
|
|
1989
1989
|
const matchesBuiltRoute = pageRoutes.some((route) => layoutAppliesToRoute(layout.pattern, route.pattern)) || Boolean(adapterDocsEntry && layoutAppliesToRoute(layout.pattern, adapterDocsEntry));
|
|
1990
1990
|
if (matchesBuiltRoute && layout.suppressedAsyncHydration) {
|
|
1991
|
-
_chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F ${
|
|
1991
|
+
_chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F ${_chunkID6OVSLHcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`);
|
|
1992
1992
|
}
|
|
1993
1993
|
}
|
|
1994
1994
|
if (isolatedMode === "analyze") {
|
|
@@ -2012,7 +2012,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2012
2012
|
);
|
|
2013
2013
|
if (metadata.suppressedAsyncHydration) {
|
|
2014
2014
|
_chunk5QIKR7RRcjs.logger.warn(
|
|
2015
|
-
`\u26A0\uFE0F ${
|
|
2015
|
+
`\u26A0\uFE0F ${_chunkID6OVSLHcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
|
|
2016
2016
|
);
|
|
2017
2017
|
}
|
|
2018
2018
|
if (metadata.shouldHydrate || metadata.hasIsolatedClientBoundaries || applicableClientLayouts.length > 0) {
|
|
@@ -2071,7 +2071,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2071
2071
|
}
|
|
2072
2072
|
const clientRouteSlots = routeSlots.filter((slot) => {
|
|
2073
2073
|
try {
|
|
2074
|
-
return
|
|
2074
|
+
return _chunkID6OVSLHcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root).shouldHydrate;
|
|
2075
2075
|
} catch (error) {
|
|
2076
2076
|
_chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
|
|
2077
2077
|
return false;
|
|
@@ -2101,7 +2101,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2101
2101
|
config.trailingSlash,
|
|
2102
2102
|
_chunkZ5HIWVDPcjs.getIntegrationProviders.call(void 0, config.integrations),
|
|
2103
2103
|
config.basePath,
|
|
2104
|
-
|
|
2104
|
+
_chunkID6OVSLHcjs.generateClientCachePersistenceCode.call(void 0, _chunkID6OVSLHcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
|
|
2105
2105
|
adapterOwnsDocsRuntime ? _chunk75WGQVQAcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
|
|
2106
2106
|
);
|
|
2107
2107
|
await fs.writeFile(clientEntryPath, clientHydrationCode);
|
|
@@ -2118,7 +2118,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2118
2118
|
const postcssConfigPath = _path2.default.join(clientEntryDir, "postcss.config.cjs");
|
|
2119
2119
|
await fs.writeFile(postcssConfigPath, "module.exports = { plugins: [] };\n");
|
|
2120
2120
|
postcssSearchPath = clientEntryDir;
|
|
2121
|
-
tailwindVitePlugin = await
|
|
2121
|
+
tailwindVitePlugin = await _chunkID6OVSLHcjs.loadTailwindVitePlugin.call(void 0, {
|
|
2122
2122
|
builder: productionVite.builder,
|
|
2123
2123
|
announce: true
|
|
2124
2124
|
});
|
|
@@ -2187,7 +2187,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2187
2187
|
}
|
|
2188
2188
|
},
|
|
2189
2189
|
plugins: [
|
|
2190
|
-
|
|
2190
|
+
_chunkID6OVSLHcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
2191
2191
|
...tailwindVitePlugin ? [tailwindVitePlugin] : [],
|
|
2192
2192
|
...rendererVitePlugins,
|
|
2193
2193
|
...config.vite.plugins || [],
|
|
@@ -2248,7 +2248,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2248
2248
|
} : void 0,
|
|
2249
2249
|
// Ensure React is bundled for client
|
|
2250
2250
|
resolve: {
|
|
2251
|
-
alias:
|
|
2251
|
+
alias: _chunkID6OVSLHcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
|
|
2252
2252
|
dedupe: [...config.renderer.dedupe || []]
|
|
2253
2253
|
},
|
|
2254
2254
|
// Optimize dependencies - exclude server-side code from client bundle
|
|
@@ -2261,7 +2261,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
2261
2261
|
]
|
|
2262
2262
|
}
|
|
2263
2263
|
};
|
|
2264
|
-
await viteBuild(
|
|
2264
|
+
await viteBuild(_chunkID6OVSLHcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite));
|
|
2265
2265
|
await mergeBuiltFontCss(outputDir);
|
|
2266
2266
|
await validateClientBuildOutput(root, srcDir, outputDir);
|
|
2267
2267
|
} finally {
|
|
@@ -3020,7 +3020,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
|
|
|
3020
3020
|
direction: {}
|
|
3021
3021
|
}, plugins = [], renderer = _chunkPSV6XKPOcjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule) {
|
|
3022
3022
|
const toImportPath = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (targetPath) => targetPath.replace(/\\/g, "/"), "toImportPath");
|
|
3023
|
-
const clientPluginEntry =
|
|
3023
|
+
const clientPluginEntry = _chunkID6OVSLHcjs.generateFarmClientPluginEntryCode.call(void 0,
|
|
3024
3024
|
plugins,
|
|
3025
3025
|
root,
|
|
3026
3026
|
srcDir,
|
|
@@ -3031,7 +3031,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
|
|
|
3031
3031
|
import { createRoot, hydrateRoot } from "react-dom/client";` : appSetupPath ? `import React, { createRoot, hydrateRoot, configureApp as __farmConfigureApp } from ${JSON.stringify(renderer.client)};
|
|
3032
3032
|
import __farmAppSetup from ${JSON.stringify(_chunk5QIKR7RRcjs.toPosixPath.call(void 0, appSetupPath))};
|
|
3033
3033
|
__farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};`;
|
|
3034
|
-
const providerClientCode =
|
|
3034
|
+
const providerClientCode = _chunkID6OVSLHcjs.generateFarmIntegrationProviderClientCode.call(void 0,
|
|
3035
3035
|
integrationProviders,
|
|
3036
3036
|
root,
|
|
3037
3037
|
_nullishCoalesce(renderer.componentExtensions, () => ( []))
|
|
@@ -3516,7 +3516,7 @@ function hasHydratableLayout(pathname) {
|
|
|
3516
3516
|
});
|
|
3517
3517
|
}
|
|
3518
3518
|
|
|
3519
|
-
${
|
|
3519
|
+
${_chunkID6OVSLHcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
|
|
3520
3520
|
// Wrap a page element with applicable layouts
|
|
3521
3521
|
function wrapWithLayouts(pageElement, pathname, params) {
|
|
3522
3522
|
const layouts = getApplicableLayouts(pathname);
|
|
@@ -4431,7 +4431,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
4431
4431
|
_path2.default.join(postcssConfigDir, "postcss.config.cjs"),
|
|
4432
4432
|
"module.exports = { plugins: [] };\n"
|
|
4433
4433
|
);
|
|
4434
|
-
tailwindVitePlugin = await
|
|
4434
|
+
tailwindVitePlugin = await _chunkID6OVSLHcjs.loadTailwindVitePlugin.call(void 0, {
|
|
4435
4435
|
builder: productionVite.builder,
|
|
4436
4436
|
label: "for SSR"
|
|
4437
4437
|
});
|
|
@@ -4527,7 +4527,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
4527
4527
|
}
|
|
4528
4528
|
const middlewareRoutes = await discoverMiddlewareRoutes(appDirs);
|
|
4529
4529
|
const instrumentationPath = _chunkKCMTCM6Icjs.resolveFarmInstrumentationFile.call(void 0, root, config.srcDir || "src");
|
|
4530
|
-
const notFoundPath =
|
|
4530
|
+
const notFoundPath = _chunkID6OVSLHcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
|
|
4531
4531
|
if (notFoundPath) _chunk5QIKR7RRcjs.logger.info(`\u{1F4CB} Found custom 404 page: ${notFoundPath}`);
|
|
4532
4532
|
layoutRoutes.sort((a, b) => {
|
|
4533
4533
|
const depthA = a.pattern.split("/").filter(Boolean).length;
|
|
@@ -4550,7 +4550,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
4550
4550
|
const hasObservabilityHandler = !!config.observability && typeof config.observability === "object" && "onEvent" in config.observability;
|
|
4551
4551
|
const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _56 => _56.mdx, 'optionalAccess', _57 => _57.components]));
|
|
4552
4552
|
const hasMiddlewareConfig = hasFarmMiddlewareConfig(config.middleware);
|
|
4553
|
-
const hasRouteContextConfig =
|
|
4553
|
+
const hasRouteContextConfig = _chunkKOQ555NRcjs.hasCustomFarmRouteContext.call(void 0, config);
|
|
4554
4554
|
const hasServerRuntimePlugins = hasFarmServerRuntimePlugins(config);
|
|
4555
4555
|
const hasPluginRoutes = hasFarmPluginRoutes(config);
|
|
4556
4556
|
const configModulePath = hasServerRuntimeIntegrations || hasObservabilityHandler || hasMdxComponentConfig || hasMiddlewareConfig || hasRouteContextConfig || hasServerRuntimePlugins || hasPluginRoutes || hasIntegrationProviders ? await findFarmConfigPath(root) : null;
|
|
@@ -4559,7 +4559,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
4559
4559
|
const hasConfiguredRuntimePlugins = Boolean(
|
|
4560
4560
|
hasRuntimeConfigModule && (config.plugins || []).length > 0
|
|
4561
4561
|
);
|
|
4562
|
-
const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _58 => _58.docs, 'optionalAccess', _59 => _59.enabled]) && _chunkC5GUTBZKcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? _optionalChain([config, 'access', _60 => _60.docs, 'access', _61 => _61.adapter, 'optionalAccess', _62 => _62.server]) ? await
|
|
4562
|
+
const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _58 => _58.docs, 'optionalAccess', _59 => _59.enabled]) && _chunkC5GUTBZKcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? _optionalChain([config, 'access', _60 => _60.docs, 'access', _61 => _61.adapter, 'optionalAccess', _62 => _62.server]) ? await _chunkMH24QDVJcjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
|
|
4563
4563
|
root,
|
|
4564
4564
|
srcDir: config.srcDir,
|
|
4565
4565
|
clientEntry: FARM_CLIENT_JS_SRC_PLACEHOLDER,
|
|
@@ -4709,7 +4709,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
4709
4709
|
__FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _68 => _68.env, 'optionalAccess', _69 => _69.public]) || {})
|
|
4710
4710
|
},
|
|
4711
4711
|
plugins: [
|
|
4712
|
-
|
|
4712
|
+
_chunkID6OVSLHcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
4713
4713
|
...tailwindVitePlugin ? [tailwindVitePlugin] : [],
|
|
4714
4714
|
...rendererVitePlugins,
|
|
4715
4715
|
...config.vite.plugins || [],
|
|
@@ -4769,7 +4769,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
4769
4769
|
resolve: {
|
|
4770
4770
|
alias: [
|
|
4771
4771
|
...shouldAliasReactServerToWebBuild(config.renderer, preset) ? [createFarmReactWebServerAlias(hasReactDomEdgeServerBuild(root))] : [],
|
|
4772
|
-
...Object.entries(
|
|
4772
|
+
...Object.entries(_chunkID6OVSLHcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
|
|
4773
4773
|
([find, replacement]) => ({ find, replacement })
|
|
4774
4774
|
)
|
|
4775
4775
|
],
|
|
@@ -4777,7 +4777,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
4777
4777
|
dedupe: [...config.renderer.dedupe || []]
|
|
4778
4778
|
}
|
|
4779
4779
|
};
|
|
4780
|
-
await viteBuild(
|
|
4780
|
+
await viteBuild(_chunkID6OVSLHcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
|
|
4781
4781
|
} finally {
|
|
4782
4782
|
if (postcssConfigDir) {
|
|
4783
4783
|
try {
|
|
@@ -4988,8 +4988,8 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, generateConfiguredResponseHeadersRuntimeSo
|
|
|
4988
4988
|
function parseRouteRenderingDirectiveFromDisk(modulePath) {
|
|
4989
4989
|
try {
|
|
4990
4990
|
const source = _fs.readFileSync.call(void 0, modulePath, "utf8");
|
|
4991
|
-
const directive =
|
|
4992
|
-
if (
|
|
4991
|
+
const directive = _chunkCTV2TTNPcjs.parseRouteRenderingDirective.call(void 0, source);
|
|
4992
|
+
if (_chunkCTV2TTNPcjs.findRequestBoundSourceBlockers.call(void 0, source).length === 0) return directive;
|
|
4993
4993
|
return { ..._nullishCoalesce(directive, () => ( { ssg: false, ppr: false, directive: "" })), requestBound: true };
|
|
4994
4994
|
} catch (e22) {
|
|
4995
4995
|
return void 0;
|
|
@@ -5154,7 +5154,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
|
|
|
5154
5154
|
`Integration provider components are not supported by the "${config.renderer.name}" renderer.`
|
|
5155
5155
|
);
|
|
5156
5156
|
}
|
|
5157
|
-
const providerServerModules =
|
|
5157
|
+
const providerServerModules = _chunkID6OVSLHcjs.generateFarmIntegrationProviderServerModules.call(void 0,
|
|
5158
5158
|
renderedIntegrationProviders,
|
|
5159
5159
|
config.root,
|
|
5160
5160
|
_nullishCoalesce(config.renderer.componentExtensions, () => ( []))
|
|
@@ -5174,14 +5174,14 @@ function isolateFarmRouteServerPage(element) { return element; }`;
|
|
|
5174
5174
|
const unsupportedIntegrationProvider = renderedIntegrationProviders.find(
|
|
5175
5175
|
(provider) => provider.supportsIsolatedHydration !== true
|
|
5176
5176
|
);
|
|
5177
|
-
const isolatedHydrationMode =
|
|
5177
|
+
const isolatedHydrationMode = _chunkID6OVSLHcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
5178
5178
|
_optionalChain([config, 'access', _89 => _89.experimental, 'optionalAccess', _90 => _90.isolatedClientHydration]),
|
|
5179
5179
|
{
|
|
5180
5180
|
serverComponents: _optionalChain([config, 'access', _91 => _91.experimental, 'optionalAccess', _92 => _92.serverComponents]) === true,
|
|
5181
5181
|
hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
|
|
5182
5182
|
}
|
|
5183
5183
|
);
|
|
5184
|
-
const hydrationPlanOptions =
|
|
5184
|
+
const hydrationPlanOptions = _chunkID6OVSLHcjs.getFarmClientHydrationPlanOptions.call(void 0,
|
|
5185
5185
|
config.renderer,
|
|
5186
5186
|
Boolean(unsupportedIntegrationProvider)
|
|
5187
5187
|
);
|
|
@@ -5196,7 +5196,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
|
|
|
5196
5196
|
hydrationPlanOptions
|
|
5197
5197
|
)
|
|
5198
5198
|
}));
|
|
5199
|
-
const markdownPagePlan =
|
|
5199
|
+
const markdownPagePlan = _chunkID6OVSLHcjs.createMarkdownPageHydrationPlanner.call(void 0,
|
|
5200
5200
|
_chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkOHY2ZWUGcjs.resolveMdxConfig.call(void 0, config.mdx), config.root),
|
|
5201
5201
|
config.root,
|
|
5202
5202
|
isolatedHydrationMode,
|
|
@@ -5205,7 +5205,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
|
|
|
5205
5205
|
const pageHydrationPlans = new Map(
|
|
5206
5206
|
pageRoutes.map((route) => [
|
|
5207
5207
|
route.modulePath,
|
|
5208
|
-
|
|
5208
|
+
_chunkTII23GJCcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath) ? markdownPagePlan() : getCachedClientModuleHydrationPlan(
|
|
5209
5209
|
route.modulePath,
|
|
5210
5210
|
config.root,
|
|
5211
5211
|
isolatedHydrationMode,
|
|
@@ -5214,7 +5214,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
|
|
|
5214
5214
|
)
|
|
5215
5215
|
])
|
|
5216
5216
|
);
|
|
5217
|
-
|
|
5217
|
+
_chunkID6OVSLHcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
|
|
5218
5218
|
layoutHydrationPlans.map((layout) => ({
|
|
5219
5219
|
pattern: layout.pattern,
|
|
5220
5220
|
depth: layout.pattern.split("/").filter(Boolean).length,
|
|
@@ -5255,7 +5255,7 @@ function isolateFarmRouteServerPage(element) { return element; }`;
|
|
|
5255
5255
|
}).map(({ route }) => route);
|
|
5256
5256
|
orderedPageRoutes.forEach((route, index) => {
|
|
5257
5257
|
const varName = `pageRoute${index}`;
|
|
5258
|
-
if (
|
|
5258
|
+
if (_chunkTII23GJCcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) {
|
|
5259
5259
|
pageRegistrations.push(`
|
|
5260
5260
|
{
|
|
5261
5261
|
pattern: ${JSON.stringify(route.pattern)},
|
|
@@ -5697,7 +5697,7 @@ const farmResolvedRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs);
|
|
|
5697
5697
|
|
|
5698
5698
|
function FarmDefault404Page() {
|
|
5699
5699
|
return React.createElement(React.Fragment, null,
|
|
5700
|
-
React.createElement("style", null, ${JSON.stringify(
|
|
5700
|
+
React.createElement("style", null, ${JSON.stringify(_chunkID6OVSLHcjs.DEFAULT_NOT_FOUND_STYLES)}),
|
|
5701
5701
|
React.createElement("main", {
|
|
5702
5702
|
className: "farm-default-not-found",
|
|
5703
5703
|
"aria-labelledby": "farm-default-not-found-title",
|
|
@@ -5936,7 +5936,7 @@ const apiRoutes = ${apiRoutes.length > 0 ? "mergePluginAPIRoutes(" : ""}[${apiRe
|
|
|
5936
5936
|
]${apiRoutes.length > 0 ? `, configuredPlugins, ${JSON.stringify(apiRoutes.map(({ path: path7, methods }) => ({ path: path7, methods })))}, { bodySizeLimit: ${JSON.stringify(config.server.bodySizeLimit)} })` : ""};
|
|
5937
5937
|
const farmLocalAPIBasePath = ${JSON.stringify(_chunkWPYFSQKKcjs.resolveFarmAPIServerBasePath.call(void 0, config.api))};
|
|
5938
5938
|
const farmOpenAPIReference = ${JSON.stringify(openAPIReference)};
|
|
5939
|
-
${_optionalChain([config, 'access', _122 => _122.agent, 'optionalAccess', _123 => _123.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(
|
|
5939
|
+
${_optionalChain([config, 'access', _122 => _122.agent, 'optionalAccess', _123 => _123.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkA672WZEGcjs.resolveFarmApiCatalogInput.call(void 0, config))};
|
|
5940
5940
|
` : ""}
|
|
5941
5941
|
function isFarmLocalAPIPathname(pathname) {
|
|
5942
5942
|
return farmLocalAPIBasePath !== "/" &&
|
|
@@ -6333,7 +6333,7 @@ function peelFarmDocumentPrefix(markup) {
|
|
|
6333
6333
|
let inner = markup.replace(/^\\s+/, "");
|
|
6334
6334
|
let hoisted = "";
|
|
6335
6335
|
const wrapper = /^<div\\b[^>]*style=["']display\\s*:\\s*contents["'][^>]*>/i;
|
|
6336
|
-
const hoistable = /${
|
|
6336
|
+
const hoistable = /${_chunkID6OVSLHcjs.HOISTED_HEAD_ELEMENT.source}/i;
|
|
6337
6337
|
let match;
|
|
6338
6338
|
while ((match = wrapper.exec(inner) || hoistable.exec(inner))) {
|
|
6339
6339
|
if (!/^<div/i.test(match[0])) hoisted += match[0];
|
|
@@ -7649,7 +7649,7 @@ async function handleFarmRequestInContext(
|
|
|
7649
7649
|
` : ""}
|
|
7650
7650
|
${_optionalChain([config, 'access', _138 => _138.agent, 'optionalAccess', _139 => _139.apiCatalog]) ? `
|
|
7651
7651
|
// agent.apiCatalog: list the OpenAPI and MCP surfaces at the RFC 9727 path.
|
|
7652
|
-
if (normalizeRuntimePath(routePathname) === ${JSON.stringify(
|
|
7652
|
+
if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkA672WZEGcjs.FARM_API_CATALOG_PATH)}) {
|
|
7653
7653
|
return applyProductionMiddlewareHeaders(
|
|
7654
7654
|
createFarmApiCatalogResponse(request.method, farmApiCatalogInput, request),
|
|
7655
7655
|
middlewareHeaders,
|
|
@@ -8965,7 +8965,7 @@ function getPhysicalPrerenderBypassReason(options) {
|
|
|
8965
8965
|
}
|
|
8966
8966
|
if (appMiddlewareMayHandlePath(middlewareRoutes, pathname)) return "app middleware";
|
|
8967
8967
|
if (configMiddlewareMayHandlePath(config.middleware, pathname)) return "configured middleware";
|
|
8968
|
-
if (
|
|
8968
|
+
if (_chunkKOQ555NRcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
|
|
8969
8969
|
if (farmServerRuntimePluginsMayHandlePath(config, pathname)) return "server runtime plugin";
|
|
8970
8970
|
const manifestEntry = getManifestPageEntry(routeRuntimeManifest, pathname);
|
|
8971
8971
|
if (_optionalChain([manifestEntry, 'optionalAccess', _159 => _159.rendering]) === "dynamic") return "dynamic runtime manifest";
|
|
@@ -8991,7 +8991,7 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
|
|
|
8991
8991
|
const nitroBuilder = nitroBuilderResult.value;
|
|
8992
8992
|
const isVercel = preset === "vercel" || preset === "vercel-edge";
|
|
8993
8993
|
const isCloudflareWorker = preset === "cloudflare-module";
|
|
8994
|
-
const outputDir =
|
|
8994
|
+
const outputDir = _chunkKOQ555NRcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
8995
8995
|
const runtimeServerOutputDir = isVercel ? _path2.default.join(outputDir, "functions", "__nitro.func") : _path2.default.join(outputDir, "server");
|
|
8996
8996
|
const ssrOutputDir = _path2.default.join(root, distDir, "ssr");
|
|
8997
8997
|
const imageRuntime = resolveImageRuntime(config, preset);
|
|
@@ -9354,7 +9354,7 @@ export default async function farmNitroEventHandler(event) {
|
|
|
9354
9354
|
if (_optionalChain([config, 'access', _179 => _179.md, 'optionalAccess', _180 => _180.enabled])) {
|
|
9355
9355
|
nitroInstance.hooks.hook("prerender:generate", (route) => {
|
|
9356
9356
|
if (!route.contents || !_optionalChain([route, 'access', _181 => _181.contentType, 'optionalAccess', _182 => _182.toLowerCase, 'call', _183 => _183(), 'access', _184 => _184.includes, 'call', _185 => _185("html")])) return;
|
|
9357
|
-
const alternatePath =
|
|
9357
|
+
const alternatePath = _chunkXSPGWQWAcjs.getFarmMarkdownAlternatePath.call(void 0, config.md, route.route);
|
|
9358
9358
|
if (!alternatePath) return;
|
|
9359
9359
|
const routeRule = nitroInstance.options.routeRules[route.route] || {};
|
|
9360
9360
|
const alternate = `<${alternatePath}>; rel="alternate"; type="text/markdown"`;
|
|
@@ -9375,7 +9375,7 @@ export default async function farmNitroEventHandler(event) {
|
|
|
9375
9375
|
if (config.security.csp && config.security.csp.nonce) {
|
|
9376
9376
|
nitroInstance.hooks.hook("prerender:generate", async (route) => {
|
|
9377
9377
|
if (!route.contents || !_optionalChain([route, 'access', _186 => _186.contentType, 'optionalAccess', _187 => _187.toLowerCase, 'call', _188 => _188(), 'access', _189 => _189.includes, 'call', _190 => _190("html")])) return;
|
|
9378
|
-
const staticCsp = await
|
|
9378
|
+
const staticCsp = await _chunk55ZY4ZA7cjs.applyFarmCspHashesToHtml.call(void 0, route.contents, config.security);
|
|
9379
9379
|
if (!staticCsp) return;
|
|
9380
9380
|
route.contents = staticCsp.html;
|
|
9381
9381
|
const routeRule = nitroInstance.options.routeRules[route.route] || {};
|
|
@@ -9642,7 +9642,7 @@ async function copyFarmDocsContentForVercel(config, root, nitroFuncDir, fs) {
|
|
|
9642
9642
|
const docsContentDir = resolveBuildDocsContentDir(config, root);
|
|
9643
9643
|
if (!docsContentDir) return;
|
|
9644
9644
|
const bundledContentDir = _path2.default.join(nitroFuncDir, "farm-docs-content");
|
|
9645
|
-
const lastModifiedManifest =
|
|
9645
|
+
const lastModifiedManifest = _chunkVQXDC5UVcjs.createFarmDocsLastModifiedManifest.call(void 0, docsContentDir, {
|
|
9646
9646
|
fallback: "now"
|
|
9647
9647
|
});
|
|
9648
9648
|
await fs.rm(bundledContentDir, { recursive: true, force: true });
|
|
@@ -9652,7 +9652,7 @@ async function copyFarmDocsContentForVercel(config, root, nitroFuncDir, fs) {
|
|
|
9652
9652
|
force: true
|
|
9653
9653
|
});
|
|
9654
9654
|
await fs.writeFile(
|
|
9655
|
-
_path2.default.join(bundledContentDir,
|
|
9655
|
+
_path2.default.join(bundledContentDir, _chunkVQXDC5UVcjs.FARM_DOCS_LAST_MODIFIED_MANIFEST),
|
|
9656
9656
|
`${JSON.stringify(lastModifiedManifest, null, 2)}
|
|
9657
9657
|
`
|
|
9658
9658
|
);
|
|
@@ -9729,7 +9729,7 @@ async function stageSharpRuntime(config, root, distDir, fs, preset) {
|
|
|
9729
9729
|
try {
|
|
9730
9730
|
await copyPackage("sharp", sharpRequire);
|
|
9731
9731
|
if (!copiedPackages.has("sharp")) {
|
|
9732
|
-
throw new Error(`Farm image optimization requires sharp. ${
|
|
9732
|
+
throw new Error(`Farm image optimization requires sharp. ${_chunkID6OVSLHcjs.SHARP_INSTALL_HINT}`);
|
|
9733
9733
|
}
|
|
9734
9734
|
} catch (error) {
|
|
9735
9735
|
await fs.rm(stageDir, { recursive: true, force: true });
|
|
@@ -9943,7 +9943,7 @@ function createBuildTargetBaseline(config) {
|
|
|
9943
9943
|
preset,
|
|
9944
9944
|
distDir,
|
|
9945
9945
|
outputDir,
|
|
9946
|
-
outputWasDerived: outputDir ===
|
|
9946
|
+
outputWasDerived: outputDir === _chunkKOQ555NRcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
|
|
9947
9947
|
};
|
|
9948
9948
|
}
|
|
9949
9949
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createBuildTargetBaseline, "createBuildTargetBaseline");
|
|
@@ -9953,8 +9953,8 @@ function resolveBuildTargets(config, options, baseline) {
|
|
|
9953
9953
|
const distDir = config.distDir || ".farm";
|
|
9954
9954
|
const outputWasReplaced = config.deploy.outputDir !== baseline.outputDir;
|
|
9955
9955
|
const shouldRefreshDerivedOutput = baseline.outputWasDerived && !outputWasReplaced && (preset !== baseline.preset || distDir !== baseline.distDir);
|
|
9956
|
-
const deployTarget = preset === config.deploy.preset ? config.deploy.target :
|
|
9957
|
-
const outputDir = shouldRefreshDerivedOutput ?
|
|
9956
|
+
const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkKOQ555NRcjs.getDeployTargetForPreset.call(void 0, preset);
|
|
9957
|
+
const outputDir = shouldRefreshDerivedOutput ? _chunkKOQ555NRcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
|
|
9958
9958
|
return {
|
|
9959
9959
|
root,
|
|
9960
9960
|
preset,
|
|
@@ -9962,7 +9962,7 @@ function resolveBuildTargets(config, options, baseline) {
|
|
|
9962
9962
|
distDir,
|
|
9963
9963
|
deployTarget,
|
|
9964
9964
|
outputDir,
|
|
9965
|
-
deployOutputDir:
|
|
9965
|
+
deployOutputDir: _chunkKOQ555NRcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
|
|
9966
9966
|
};
|
|
9967
9967
|
}
|
|
9968
9968
|
_chunkS3JO3N4Hcjs.__name.call(void 0, resolveBuildTargets, "resolveBuildTargets");
|
|
@@ -9971,7 +9971,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
9971
9971
|
const targetBaseline = createBuildTargetBaseline(config);
|
|
9972
9972
|
let targets;
|
|
9973
9973
|
const productionViteResultPromise = options.universal === false ? void 0 : Promise.allSettled([Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkA6WIQH5Zcjs.loadFarmProductionVite.call(void 0, ))))]);
|
|
9974
|
-
const pluginManager = new (0,
|
|
9974
|
+
const pluginManager = new (0, _chunkID6OVSLHcjs.PluginManager)({
|
|
9975
9975
|
config,
|
|
9976
9976
|
isDev: false,
|
|
9977
9977
|
isProd: true
|
|
@@ -10000,7 +10000,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
10000
10000
|
};
|
|
10001
10001
|
config = {
|
|
10002
10002
|
...config,
|
|
10003
|
-
images:
|
|
10003
|
+
images: _chunkID6OVSLHcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
|
|
10004
10004
|
root: targets.root,
|
|
10005
10005
|
preset: targets.preset
|
|
10006
10006
|
})
|
|
@@ -10028,18 +10028,18 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
10028
10028
|
root,
|
|
10029
10029
|
rendererBuild.signal
|
|
10030
10030
|
);
|
|
10031
|
-
const farmApp =
|
|
10031
|
+
const farmApp = _chunkID6OVSLHcjs.createFarmApp.call(void 0, config, projectModuleServer);
|
|
10032
10032
|
await farmApp.initialize();
|
|
10033
10033
|
const routeManager = farmApp.getRouteManager();
|
|
10034
10034
|
const serverRenderer = farmApp.getServerRenderer();
|
|
10035
|
-
const typeArtifacts =
|
|
10035
|
+
const typeArtifacts = _chunkCTV2TTNPcjs.generateFarmTypeArtifacts.call(void 0, {
|
|
10036
10036
|
root,
|
|
10037
10037
|
srcDir,
|
|
10038
10038
|
layers: config.layers,
|
|
10039
10039
|
plugins: config.plugins,
|
|
10040
10040
|
extraRoutes: [
|
|
10041
10041
|
..._optionalChain([config, 'access', _197 => _197.openapi, 'optionalAccess', _198 => _198.enabled]) && config.openapi.route ? [config.openapi.route] : [],
|
|
10042
|
-
...
|
|
10042
|
+
..._chunkVQXDC5UVcjs.getFarmDocsRouteTypeEntries.call(void 0, config.docs)
|
|
10043
10043
|
],
|
|
10044
10044
|
suppressLintOnLink: config.suppressLintOnLink,
|
|
10045
10045
|
componentExtensions: config.renderer.componentExtensions,
|
|
@@ -10048,7 +10048,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
10048
10048
|
const message = error instanceof Error ? error.message : String(error);
|
|
10049
10049
|
_chunk5QIKR7RRcjs.logger.warn(`Route type generation failed (farm.d.ts may be stale): ${message}`);
|
|
10050
10050
|
});
|
|
10051
|
-
const apiRouteManager = new (0,
|
|
10051
|
+
const apiRouteManager = new (0, _chunkEXLKRR4Ucjs.APIRouteManager)(
|
|
10052
10052
|
_chunkVPTDD5XFcjs.getFarmAppDirectories.call(void 0, config),
|
|
10053
10053
|
projectModuleServer,
|
|
10054
10054
|
{
|
|
@@ -10135,7 +10135,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
10135
10135
|
ssr: true,
|
|
10136
10136
|
buildLifetime
|
|
10137
10137
|
});
|
|
10138
|
-
const viteConfig =
|
|
10138
|
+
const viteConfig = _chunkID6OVSLHcjs.mergeFarmViteConfig.call(void 0,
|
|
10139
10139
|
{
|
|
10140
10140
|
root,
|
|
10141
10141
|
appType: "custom",
|
|
@@ -10147,7 +10147,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
10147
10147
|
},
|
|
10148
10148
|
plugins: [
|
|
10149
10149
|
...rendererVitePlugins,
|
|
10150
|
-
|
|
10150
|
+
_chunkID6OVSLHcjs.farmFontImportsPlugin.call(void 0, {
|
|
10151
10151
|
root,
|
|
10152
10152
|
basePath: config.basePath,
|
|
10153
10153
|
publicDir: config.publicDir
|
|
@@ -10159,7 +10159,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
|
|
|
10159
10159
|
hmr: false
|
|
10160
10160
|
},
|
|
10161
10161
|
resolve: {
|
|
10162
|
-
alias:
|
|
10162
|
+
alias: _chunkID6OVSLHcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
|
|
10163
10163
|
dedupe: [...config.renderer.dedupe || []]
|
|
10164
10164
|
},
|
|
10165
10165
|
optimizeDeps: {
|
|
@@ -10280,7 +10280,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
|
|
|
10280
10280
|
if (pluginManager) {
|
|
10281
10281
|
nitroConfig = await pluginManager.runHookSerial("beforeNitroBuild", nitroConfig);
|
|
10282
10282
|
}
|
|
10283
|
-
const outputDir =
|
|
10283
|
+
const outputDir = _chunkKOQ555NRcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
|
|
10284
10284
|
const serverOutputDir = _path2.default.join(outputDir, "server");
|
|
10285
10285
|
const publicOutputDir = _path2.default.join(outputDir, "public");
|
|
10286
10286
|
const { mkdir, cp } = await import("fs/promises");
|
|
@@ -10351,7 +10351,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
|
|
|
10351
10351
|
root,
|
|
10352
10352
|
preset,
|
|
10353
10353
|
distDir,
|
|
10354
|
-
outputDir:
|
|
10354
|
+
outputDir: _chunkKOQ555NRcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
|
|
10355
10355
|
});
|
|
10356
10356
|
}
|
|
10357
10357
|
}
|