@tanstack/start-plugin-core 1.120.4-alpha.2 → 1.120.4-alpha.21

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.
Files changed (42) hide show
  1. package/dist/cjs/constants.cjs +10 -0
  2. package/dist/cjs/constants.cjs.map +1 -0
  3. package/dist/cjs/constants.d.cts +4 -0
  4. package/dist/cjs/nitro/dev-server-plugin.cjs +11 -3
  5. package/dist/cjs/nitro/dev-server-plugin.cjs.map +1 -1
  6. package/dist/cjs/nitro/nitro-plugin.cjs +24 -5
  7. package/dist/cjs/nitro/nitro-plugin.cjs.map +1 -1
  8. package/dist/cjs/plugin.cjs +49 -15
  9. package/dist/cjs/plugin.cjs.map +1 -1
  10. package/dist/cjs/plugin.d.cts +620 -1
  11. package/dist/cjs/prerender.cjs +19 -15
  12. package/dist/cjs/prerender.cjs.map +1 -1
  13. package/dist/cjs/schema.cjs +21 -2
  14. package/dist/cjs/schema.cjs.map +1 -1
  15. package/dist/cjs/schema.d.cts +2281 -520
  16. package/dist/cjs/start-server-routes-plugin/plugin.cjs +6 -2
  17. package/dist/cjs/start-server-routes-plugin/plugin.cjs.map +1 -1
  18. package/dist/esm/constants.d.ts +4 -0
  19. package/dist/esm/constants.js +10 -0
  20. package/dist/esm/constants.js.map +1 -0
  21. package/dist/esm/nitro/dev-server-plugin.js +11 -3
  22. package/dist/esm/nitro/dev-server-plugin.js.map +1 -1
  23. package/dist/esm/nitro/nitro-plugin.js +24 -5
  24. package/dist/esm/nitro/nitro-plugin.js.map +1 -1
  25. package/dist/esm/plugin.d.ts +620 -1
  26. package/dist/esm/plugin.js +49 -15
  27. package/dist/esm/plugin.js.map +1 -1
  28. package/dist/esm/prerender.js +19 -15
  29. package/dist/esm/prerender.js.map +1 -1
  30. package/dist/esm/schema.d.ts +2281 -520
  31. package/dist/esm/schema.js +21 -2
  32. package/dist/esm/schema.js.map +1 -1
  33. package/dist/esm/start-server-routes-plugin/plugin.js +6 -2
  34. package/dist/esm/start-server-routes-plugin/plugin.js.map +1 -1
  35. package/package.json +11 -5
  36. package/src/constants.ts +6 -0
  37. package/src/nitro/dev-server-plugin.ts +14 -4
  38. package/src/nitro/nitro-plugin.ts +28 -3
  39. package/src/plugin.ts +64 -15
  40. package/src/prerender.ts +26 -19
  41. package/src/schema.ts +26 -1
  42. package/src/start-server-routes-plugin/plugin.ts +10 -2
@@ -245,6 +245,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
245
245
  }, {
246
246
  prerender: z.ZodOptional<z.ZodObject<{
247
247
  enabled: z.ZodOptional<z.ZodBoolean>;
248
+ outputPath: z.ZodOptional<z.ZodString>;
248
249
  autoSubfolderIndex: z.ZodOptional<z.ZodBoolean>;
249
250
  crawlLinks: z.ZodOptional<z.ZodBoolean>;
250
251
  retryCount: z.ZodOptional<z.ZodNumber>;
@@ -469,6 +470,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
469
470
  }>], z.ZodUnknown>, z.ZodAny>>;
470
471
  }, "strip", z.ZodTypeAny, {
471
472
  enabled?: boolean | undefined;
473
+ outputPath?: string | undefined;
472
474
  autoSubfolderIndex?: boolean | undefined;
473
475
  crawlLinks?: boolean | undefined;
474
476
  retryCount?: number | undefined;
@@ -505,6 +507,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
505
507
  }, ...args: unknown[]) => any) | undefined;
506
508
  }, {
507
509
  enabled?: boolean | undefined;
510
+ outputPath?: string | undefined;
508
511
  autoSubfolderIndex?: boolean | undefined;
509
512
  crawlLinks?: boolean | undefined;
510
513
  retryCount?: number | undefined;
@@ -544,6 +547,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
544
547
  path: string;
545
548
  prerender?: {
546
549
  enabled?: boolean | undefined;
550
+ outputPath?: string | undefined;
547
551
  autoSubfolderIndex?: boolean | undefined;
548
552
  crawlLinks?: boolean | undefined;
549
553
  retryCount?: number | undefined;
@@ -607,6 +611,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
607
611
  path: string;
608
612
  prerender?: {
609
613
  enabled?: boolean | undefined;
614
+ outputPath?: string | undefined;
610
615
  autoSubfolderIndex?: boolean | undefined;
611
616
  crawlLinks?: boolean | undefined;
612
617
  retryCount?: number | undefined;
@@ -669,6 +674,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
669
674
  }>]>, "many">>>;
670
675
  sitemap: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
671
676
  enabled: z.ZodOptional<z.ZodBoolean>;
677
+ outputPath: z.ZodOptional<z.ZodString>;
672
678
  autoSubfolderIndex: z.ZodOptional<z.ZodBoolean>;
673
679
  crawlLinks: z.ZodOptional<z.ZodBoolean>;
674
680
  retryCount: z.ZodOptional<z.ZodNumber>;
@@ -896,6 +902,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
896
902
  }>, "strip", z.ZodTypeAny, {
897
903
  host?: string | undefined;
898
904
  enabled?: boolean | undefined;
905
+ outputPath?: string | undefined;
899
906
  autoSubfolderIndex?: boolean | undefined;
900
907
  crawlLinks?: boolean | undefined;
901
908
  retryCount?: number | undefined;
@@ -933,6 +940,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
933
940
  }, {
934
941
  host?: string | undefined;
935
942
  enabled?: boolean | undefined;
943
+ outputPath?: string | undefined;
936
944
  autoSubfolderIndex?: boolean | undefined;
937
945
  crawlLinks?: boolean | undefined;
938
946
  retryCount?: number | undefined;
@@ -1078,6 +1086,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
1078
1086
  }, {
1079
1087
  prerender: z.ZodOptional<z.ZodObject<{
1080
1088
  enabled: z.ZodOptional<z.ZodBoolean>;
1089
+ outputPath: z.ZodOptional<z.ZodString>;
1081
1090
  autoSubfolderIndex: z.ZodOptional<z.ZodBoolean>;
1082
1091
  crawlLinks: z.ZodOptional<z.ZodBoolean>;
1083
1092
  retryCount: z.ZodOptional<z.ZodNumber>;
@@ -1302,6 +1311,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
1302
1311
  }>], z.ZodUnknown>, z.ZodAny>>;
1303
1312
  }, "strip", z.ZodTypeAny, {
1304
1313
  enabled?: boolean | undefined;
1314
+ outputPath?: string | undefined;
1305
1315
  autoSubfolderIndex?: boolean | undefined;
1306
1316
  crawlLinks?: boolean | undefined;
1307
1317
  retryCount?: number | undefined;
@@ -1338,6 +1348,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
1338
1348
  }, ...args: unknown[]) => any) | undefined;
1339
1349
  }, {
1340
1350
  enabled?: boolean | undefined;
1351
+ outputPath?: string | undefined;
1341
1352
  autoSubfolderIndex?: boolean | undefined;
1342
1353
  crawlLinks?: boolean | undefined;
1343
1354
  retryCount?: number | undefined;
@@ -1377,6 +1388,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
1377
1388
  path: string;
1378
1389
  prerender?: {
1379
1390
  enabled?: boolean | undefined;
1391
+ outputPath?: string | undefined;
1380
1392
  autoSubfolderIndex?: boolean | undefined;
1381
1393
  crawlLinks?: boolean | undefined;
1382
1394
  retryCount?: number | undefined;
@@ -1440,6 +1452,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
1440
1452
  path: string;
1441
1453
  prerender?: {
1442
1454
  enabled?: boolean | undefined;
1455
+ outputPath?: string | undefined;
1443
1456
  autoSubfolderIndex?: boolean | undefined;
1444
1457
  crawlLinks?: boolean | undefined;
1445
1458
  retryCount?: number | undefined;
@@ -1506,6 +1519,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
1506
1519
  path: string;
1507
1520
  prerender?: {
1508
1521
  enabled?: boolean | undefined;
1522
+ outputPath?: string | undefined;
1509
1523
  autoSubfolderIndex?: boolean | undefined;
1510
1524
  crawlLinks?: boolean | undefined;
1511
1525
  retryCount?: number | undefined;
@@ -1574,6 +1588,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
1574
1588
  path: string;
1575
1589
  prerender?: {
1576
1590
  enabled?: boolean | undefined;
1591
+ outputPath?: string | undefined;
1577
1592
  autoSubfolderIndex?: boolean | undefined;
1578
1593
  crawlLinks?: boolean | undefined;
1579
1594
  retryCount?: number | undefined;
@@ -1639,6 +1654,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
1639
1654
  failOnError?: boolean | undefined;
1640
1655
  }>, z.ZodOptional<z.ZodObject<{
1641
1656
  enabled: z.ZodOptional<z.ZodBoolean>;
1657
+ outputPath: z.ZodOptional<z.ZodString>;
1642
1658
  autoSubfolderIndex: z.ZodOptional<z.ZodBoolean>;
1643
1659
  crawlLinks: z.ZodOptional<z.ZodBoolean>;
1644
1660
  retryCount: z.ZodOptional<z.ZodNumber>;
@@ -1863,6 +1879,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
1863
1879
  }>], z.ZodUnknown>, z.ZodAny>>;
1864
1880
  }, "strip", z.ZodTypeAny, {
1865
1881
  enabled?: boolean | undefined;
1882
+ outputPath?: string | undefined;
1866
1883
  autoSubfolderIndex?: boolean | undefined;
1867
1884
  crawlLinks?: boolean | undefined;
1868
1885
  retryCount?: number | undefined;
@@ -1899,6 +1916,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
1899
1916
  }, ...args: unknown[]) => any) | undefined;
1900
1917
  }, {
1901
1918
  enabled?: boolean | undefined;
1919
+ outputPath?: string | undefined;
1902
1920
  autoSubfolderIndex?: boolean | undefined;
1903
1921
  crawlLinks?: boolean | undefined;
1904
1922
  retryCount?: number | undefined;
@@ -1934,6 +1952,466 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
1934
1952
  html: string;
1935
1953
  }, ...args: unknown[]) => any) | undefined;
1936
1954
  }>>>>;
1955
+ spa: z.ZodOptional<z.ZodObject<{
1956
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1957
+ maskPath: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1958
+ prerender: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodObject<{
1959
+ enabled: z.ZodOptional<z.ZodBoolean>;
1960
+ outputPath: z.ZodOptional<z.ZodString>;
1961
+ autoSubfolderIndex: z.ZodOptional<z.ZodBoolean>;
1962
+ crawlLinks: z.ZodOptional<z.ZodBoolean>;
1963
+ retryCount: z.ZodOptional<z.ZodNumber>;
1964
+ retryDelay: z.ZodOptional<z.ZodNumber>;
1965
+ onSuccess: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
1966
+ page: z.ZodObject<{
1967
+ path: z.ZodString;
1968
+ sitemap: z.ZodOptional<z.ZodObject<{
1969
+ exclude: z.ZodOptional<z.ZodBoolean>;
1970
+ priority: z.ZodOptional<z.ZodNumber>;
1971
+ changefreq: z.ZodOptional<z.ZodEnum<["always", "hourly", "daily", "weekly", "monthly", "yearly", "never"]>>;
1972
+ lastmod: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
1973
+ alternateRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1974
+ href: z.ZodString;
1975
+ hreflang: z.ZodString;
1976
+ }, "strip", z.ZodTypeAny, {
1977
+ href: string;
1978
+ hreflang: string;
1979
+ }, {
1980
+ href: string;
1981
+ hreflang: string;
1982
+ }>, "many">>;
1983
+ images: z.ZodOptional<z.ZodArray<z.ZodObject<{
1984
+ loc: z.ZodString;
1985
+ caption: z.ZodOptional<z.ZodString>;
1986
+ title: z.ZodOptional<z.ZodString>;
1987
+ }, "strip", z.ZodTypeAny, {
1988
+ loc: string;
1989
+ caption?: string | undefined;
1990
+ title?: string | undefined;
1991
+ }, {
1992
+ loc: string;
1993
+ caption?: string | undefined;
1994
+ title?: string | undefined;
1995
+ }>, "many">>;
1996
+ news: z.ZodOptional<z.ZodObject<{
1997
+ publication: z.ZodObject<{
1998
+ name: z.ZodString;
1999
+ language: z.ZodString;
2000
+ }, "strip", z.ZodTypeAny, {
2001
+ name: string;
2002
+ language: string;
2003
+ }, {
2004
+ name: string;
2005
+ language: string;
2006
+ }>;
2007
+ publicationDate: z.ZodUnion<[z.ZodString, z.ZodDate]>;
2008
+ title: z.ZodString;
2009
+ }, "strip", z.ZodTypeAny, {
2010
+ title: string;
2011
+ publication: {
2012
+ name: string;
2013
+ language: string;
2014
+ };
2015
+ publicationDate: string | Date;
2016
+ }, {
2017
+ title: string;
2018
+ publication: {
2019
+ name: string;
2020
+ language: string;
2021
+ };
2022
+ publicationDate: string | Date;
2023
+ }>>;
2024
+ }, "strip", z.ZodTypeAny, {
2025
+ lastmod?: string | Date | undefined;
2026
+ exclude?: boolean | undefined;
2027
+ priority?: number | undefined;
2028
+ changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
2029
+ alternateRefs?: {
2030
+ href: string;
2031
+ hreflang: string;
2032
+ }[] | undefined;
2033
+ images?: {
2034
+ loc: string;
2035
+ caption?: string | undefined;
2036
+ title?: string | undefined;
2037
+ }[] | undefined;
2038
+ news?: {
2039
+ title: string;
2040
+ publication: {
2041
+ name: string;
2042
+ language: string;
2043
+ };
2044
+ publicationDate: string | Date;
2045
+ } | undefined;
2046
+ }, {
2047
+ lastmod?: string | Date | undefined;
2048
+ exclude?: boolean | undefined;
2049
+ priority?: number | undefined;
2050
+ changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
2051
+ alternateRefs?: {
2052
+ href: string;
2053
+ hreflang: string;
2054
+ }[] | undefined;
2055
+ images?: {
2056
+ loc: string;
2057
+ caption?: string | undefined;
2058
+ title?: string | undefined;
2059
+ }[] | undefined;
2060
+ news?: {
2061
+ title: string;
2062
+ publication: {
2063
+ name: string;
2064
+ language: string;
2065
+ };
2066
+ publicationDate: string | Date;
2067
+ } | undefined;
2068
+ }>>;
2069
+ fromCrawl: z.ZodOptional<z.ZodBoolean>;
2070
+ }, "strip", z.ZodTypeAny, {
2071
+ path: string;
2072
+ sitemap?: {
2073
+ lastmod?: string | Date | undefined;
2074
+ exclude?: boolean | undefined;
2075
+ priority?: number | undefined;
2076
+ changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
2077
+ alternateRefs?: {
2078
+ href: string;
2079
+ hreflang: string;
2080
+ }[] | undefined;
2081
+ images?: {
2082
+ loc: string;
2083
+ caption?: string | undefined;
2084
+ title?: string | undefined;
2085
+ }[] | undefined;
2086
+ news?: {
2087
+ title: string;
2088
+ publication: {
2089
+ name: string;
2090
+ language: string;
2091
+ };
2092
+ publicationDate: string | Date;
2093
+ } | undefined;
2094
+ } | undefined;
2095
+ fromCrawl?: boolean | undefined;
2096
+ }, {
2097
+ path: string;
2098
+ sitemap?: {
2099
+ lastmod?: string | Date | undefined;
2100
+ exclude?: boolean | undefined;
2101
+ priority?: number | undefined;
2102
+ changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
2103
+ alternateRefs?: {
2104
+ href: string;
2105
+ hreflang: string;
2106
+ }[] | undefined;
2107
+ images?: {
2108
+ loc: string;
2109
+ caption?: string | undefined;
2110
+ title?: string | undefined;
2111
+ }[] | undefined;
2112
+ news?: {
2113
+ title: string;
2114
+ publication: {
2115
+ name: string;
2116
+ language: string;
2117
+ };
2118
+ publicationDate: string | Date;
2119
+ } | undefined;
2120
+ } | undefined;
2121
+ fromCrawl?: boolean | undefined;
2122
+ }>;
2123
+ html: z.ZodString;
2124
+ }, "strip", z.ZodTypeAny, {
2125
+ page: {
2126
+ path: string;
2127
+ sitemap?: {
2128
+ lastmod?: string | Date | undefined;
2129
+ exclude?: boolean | undefined;
2130
+ priority?: number | undefined;
2131
+ changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
2132
+ alternateRefs?: {
2133
+ href: string;
2134
+ hreflang: string;
2135
+ }[] | undefined;
2136
+ images?: {
2137
+ loc: string;
2138
+ caption?: string | undefined;
2139
+ title?: string | undefined;
2140
+ }[] | undefined;
2141
+ news?: {
2142
+ title: string;
2143
+ publication: {
2144
+ name: string;
2145
+ language: string;
2146
+ };
2147
+ publicationDate: string | Date;
2148
+ } | undefined;
2149
+ } | undefined;
2150
+ fromCrawl?: boolean | undefined;
2151
+ };
2152
+ html: string;
2153
+ }, {
2154
+ page: {
2155
+ path: string;
2156
+ sitemap?: {
2157
+ lastmod?: string | Date | undefined;
2158
+ exclude?: boolean | undefined;
2159
+ priority?: number | undefined;
2160
+ changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
2161
+ alternateRefs?: {
2162
+ href: string;
2163
+ hreflang: string;
2164
+ }[] | undefined;
2165
+ images?: {
2166
+ loc: string;
2167
+ caption?: string | undefined;
2168
+ title?: string | undefined;
2169
+ }[] | undefined;
2170
+ news?: {
2171
+ title: string;
2172
+ publication: {
2173
+ name: string;
2174
+ language: string;
2175
+ };
2176
+ publicationDate: string | Date;
2177
+ } | undefined;
2178
+ } | undefined;
2179
+ fromCrawl?: boolean | undefined;
2180
+ };
2181
+ html: string;
2182
+ }>], z.ZodUnknown>, z.ZodAny>>;
2183
+ }, "strip", z.ZodTypeAny, {
2184
+ enabled?: boolean | undefined;
2185
+ outputPath?: string | undefined;
2186
+ autoSubfolderIndex?: boolean | undefined;
2187
+ crawlLinks?: boolean | undefined;
2188
+ retryCount?: number | undefined;
2189
+ retryDelay?: number | undefined;
2190
+ onSuccess?: ((args_0: {
2191
+ page: {
2192
+ path: string;
2193
+ sitemap?: {
2194
+ lastmod?: string | Date | undefined;
2195
+ exclude?: boolean | undefined;
2196
+ priority?: number | undefined;
2197
+ changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
2198
+ alternateRefs?: {
2199
+ href: string;
2200
+ hreflang: string;
2201
+ }[] | undefined;
2202
+ images?: {
2203
+ loc: string;
2204
+ caption?: string | undefined;
2205
+ title?: string | undefined;
2206
+ }[] | undefined;
2207
+ news?: {
2208
+ title: string;
2209
+ publication: {
2210
+ name: string;
2211
+ language: string;
2212
+ };
2213
+ publicationDate: string | Date;
2214
+ } | undefined;
2215
+ } | undefined;
2216
+ fromCrawl?: boolean | undefined;
2217
+ };
2218
+ html: string;
2219
+ }, ...args: unknown[]) => any) | undefined;
2220
+ }, {
2221
+ enabled?: boolean | undefined;
2222
+ outputPath?: string | undefined;
2223
+ autoSubfolderIndex?: boolean | undefined;
2224
+ crawlLinks?: boolean | undefined;
2225
+ retryCount?: number | undefined;
2226
+ retryDelay?: number | undefined;
2227
+ onSuccess?: ((args_0: {
2228
+ page: {
2229
+ path: string;
2230
+ sitemap?: {
2231
+ lastmod?: string | Date | undefined;
2232
+ exclude?: boolean | undefined;
2233
+ priority?: number | undefined;
2234
+ changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
2235
+ alternateRefs?: {
2236
+ href: string;
2237
+ hreflang: string;
2238
+ }[] | undefined;
2239
+ images?: {
2240
+ loc: string;
2241
+ caption?: string | undefined;
2242
+ title?: string | undefined;
2243
+ }[] | undefined;
2244
+ news?: {
2245
+ title: string;
2246
+ publication: {
2247
+ name: string;
2248
+ language: string;
2249
+ };
2250
+ publicationDate: string | Date;
2251
+ } | undefined;
2252
+ } | undefined;
2253
+ fromCrawl?: boolean | undefined;
2254
+ };
2255
+ html: string;
2256
+ }, ...args: unknown[]) => any) | undefined;
2257
+ }>>>, {
2258
+ enabled: boolean;
2259
+ outputPath: string;
2260
+ autoSubfolderIndex?: boolean | undefined;
2261
+ crawlLinks: boolean;
2262
+ retryCount: number;
2263
+ retryDelay?: number | undefined;
2264
+ onSuccess?: ((args_0: {
2265
+ page: {
2266
+ path: string;
2267
+ sitemap?: {
2268
+ lastmod?: string | Date | undefined;
2269
+ exclude?: boolean | undefined;
2270
+ priority?: number | undefined;
2271
+ changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
2272
+ alternateRefs?: {
2273
+ href: string;
2274
+ hreflang: string;
2275
+ }[] | undefined;
2276
+ images?: {
2277
+ loc: string;
2278
+ caption?: string | undefined;
2279
+ title?: string | undefined;
2280
+ }[] | undefined;
2281
+ news?: {
2282
+ title: string;
2283
+ publication: {
2284
+ name: string;
2285
+ language: string;
2286
+ };
2287
+ publicationDate: string | Date;
2288
+ } | undefined;
2289
+ } | undefined;
2290
+ fromCrawl?: boolean | undefined;
2291
+ };
2292
+ html: string;
2293
+ }, ...args: unknown[]) => any) | undefined;
2294
+ }, {
2295
+ enabled?: boolean | undefined;
2296
+ outputPath?: string | undefined;
2297
+ autoSubfolderIndex?: boolean | undefined;
2298
+ crawlLinks?: boolean | undefined;
2299
+ retryCount?: number | undefined;
2300
+ retryDelay?: number | undefined;
2301
+ onSuccess?: ((args_0: {
2302
+ page: {
2303
+ path: string;
2304
+ sitemap?: {
2305
+ lastmod?: string | Date | undefined;
2306
+ exclude?: boolean | undefined;
2307
+ priority?: number | undefined;
2308
+ changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
2309
+ alternateRefs?: {
2310
+ href: string;
2311
+ hreflang: string;
2312
+ }[] | undefined;
2313
+ images?: {
2314
+ loc: string;
2315
+ caption?: string | undefined;
2316
+ title?: string | undefined;
2317
+ }[] | undefined;
2318
+ news?: {
2319
+ title: string;
2320
+ publication: {
2321
+ name: string;
2322
+ language: string;
2323
+ };
2324
+ publicationDate: string | Date;
2325
+ } | undefined;
2326
+ } | undefined;
2327
+ fromCrawl?: boolean | undefined;
2328
+ };
2329
+ html: string;
2330
+ }, ...args: unknown[]) => any) | undefined;
2331
+ } | undefined>;
2332
+ }, "strip", z.ZodTypeAny, {
2333
+ prerender: {
2334
+ enabled: boolean;
2335
+ outputPath: string;
2336
+ autoSubfolderIndex?: boolean | undefined;
2337
+ crawlLinks: boolean;
2338
+ retryCount: number;
2339
+ retryDelay?: number | undefined;
2340
+ onSuccess?: ((args_0: {
2341
+ page: {
2342
+ path: string;
2343
+ sitemap?: {
2344
+ lastmod?: string | Date | undefined;
2345
+ exclude?: boolean | undefined;
2346
+ priority?: number | undefined;
2347
+ changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
2348
+ alternateRefs?: {
2349
+ href: string;
2350
+ hreflang: string;
2351
+ }[] | undefined;
2352
+ images?: {
2353
+ loc: string;
2354
+ caption?: string | undefined;
2355
+ title?: string | undefined;
2356
+ }[] | undefined;
2357
+ news?: {
2358
+ title: string;
2359
+ publication: {
2360
+ name: string;
2361
+ language: string;
2362
+ };
2363
+ publicationDate: string | Date;
2364
+ } | undefined;
2365
+ } | undefined;
2366
+ fromCrawl?: boolean | undefined;
2367
+ };
2368
+ html: string;
2369
+ }, ...args: unknown[]) => any) | undefined;
2370
+ };
2371
+ enabled: boolean;
2372
+ maskPath: string;
2373
+ }, {
2374
+ prerender?: {
2375
+ enabled?: boolean | undefined;
2376
+ outputPath?: string | undefined;
2377
+ autoSubfolderIndex?: boolean | undefined;
2378
+ crawlLinks?: boolean | undefined;
2379
+ retryCount?: number | undefined;
2380
+ retryDelay?: number | undefined;
2381
+ onSuccess?: ((args_0: {
2382
+ page: {
2383
+ path: string;
2384
+ sitemap?: {
2385
+ lastmod?: string | Date | undefined;
2386
+ exclude?: boolean | undefined;
2387
+ priority?: number | undefined;
2388
+ changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
2389
+ alternateRefs?: {
2390
+ href: string;
2391
+ hreflang: string;
2392
+ }[] | undefined;
2393
+ images?: {
2394
+ loc: string;
2395
+ caption?: string | undefined;
2396
+ title?: string | undefined;
2397
+ }[] | undefined;
2398
+ news?: {
2399
+ title: string;
2400
+ publication: {
2401
+ name: string;
2402
+ language: string;
2403
+ };
2404
+ publicationDate: string | Date;
2405
+ } | undefined;
2406
+ } | undefined;
2407
+ fromCrawl?: boolean | undefined;
2408
+ };
2409
+ html: string;
2410
+ }, ...args: unknown[]) => any) | undefined;
2411
+ } | undefined;
2412
+ enabled?: boolean | undefined;
2413
+ maskPath?: string | undefined;
2414
+ }>>;
1937
2415
  root: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1938
2416
  target: z.ZodOptional<z.ZodType<import('nitropack/presets').PresetNameInput | undefined, z.ZodTypeDef, import('nitropack/presets').PresetNameInput | undefined>>;
1939
2417
  }, "strip", z.ZodTypeAny, {
@@ -1987,6 +2465,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
1987
2465
  path: string;
1988
2466
  prerender?: {
1989
2467
  enabled?: boolean | undefined;
2468
+ outputPath?: string | undefined;
1990
2469
  autoSubfolderIndex?: boolean | undefined;
1991
2470
  crawlLinks?: boolean | undefined;
1992
2471
  retryCount?: number | undefined;
@@ -2053,6 +2532,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
2053
2532
  path: string;
2054
2533
  prerender?: {
2055
2534
  enabled?: boolean | undefined;
2535
+ outputPath?: string | undefined;
2056
2536
  autoSubfolderIndex?: boolean | undefined;
2057
2537
  crawlLinks?: boolean | undefined;
2058
2538
  retryCount?: number | undefined;
@@ -2118,6 +2598,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
2118
2598
  failOnError?: boolean | undefined;
2119
2599
  } & {
2120
2600
  enabled?: boolean | undefined;
2601
+ outputPath?: string | undefined;
2121
2602
  autoSubfolderIndex?: boolean | undefined;
2122
2603
  crawlLinks?: boolean | undefined;
2123
2604
  retryCount?: number | undefined;
@@ -2156,6 +2637,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
2156
2637
  sitemap?: {
2157
2638
  host?: string | undefined;
2158
2639
  enabled?: boolean | undefined;
2640
+ outputPath?: string | undefined;
2159
2641
  autoSubfolderIndex?: boolean | undefined;
2160
2642
  crawlLinks?: boolean | undefined;
2161
2643
  retryCount?: number | undefined;
@@ -2191,6 +2673,48 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
2191
2673
  html: string;
2192
2674
  }, ...args: unknown[]) => any) | undefined;
2193
2675
  } | undefined;
2676
+ spa?: {
2677
+ prerender: {
2678
+ enabled: boolean;
2679
+ outputPath: string;
2680
+ autoSubfolderIndex?: boolean | undefined;
2681
+ crawlLinks: boolean;
2682
+ retryCount: number;
2683
+ retryDelay?: number | undefined;
2684
+ onSuccess?: ((args_0: {
2685
+ page: {
2686
+ path: string;
2687
+ sitemap?: {
2688
+ lastmod?: string | Date | undefined;
2689
+ exclude?: boolean | undefined;
2690
+ priority?: number | undefined;
2691
+ changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
2692
+ alternateRefs?: {
2693
+ href: string;
2694
+ hreflang: string;
2695
+ }[] | undefined;
2696
+ images?: {
2697
+ loc: string;
2698
+ caption?: string | undefined;
2699
+ title?: string | undefined;
2700
+ }[] | undefined;
2701
+ news?: {
2702
+ title: string;
2703
+ publication: {
2704
+ name: string;
2705
+ language: string;
2706
+ };
2707
+ publicationDate: string | Date;
2708
+ } | undefined;
2709
+ } | undefined;
2710
+ fromCrawl?: boolean | undefined;
2711
+ };
2712
+ html: string;
2713
+ }, ...args: unknown[]) => any) | undefined;
2714
+ };
2715
+ enabled: boolean;
2716
+ maskPath: string;
2717
+ } | undefined;
2194
2718
  }, {
2195
2719
  client?: {
2196
2720
  entry?: string | undefined;
@@ -2206,6 +2730,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
2206
2730
  path: string;
2207
2731
  prerender?: {
2208
2732
  enabled?: boolean | undefined;
2733
+ outputPath?: string | undefined;
2209
2734
  autoSubfolderIndex?: boolean | undefined;
2210
2735
  crawlLinks?: boolean | undefined;
2211
2736
  retryCount?: number | undefined;
@@ -2271,6 +2796,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
2271
2796
  failOnError?: boolean | undefined;
2272
2797
  } & {
2273
2798
  enabled?: boolean | undefined;
2799
+ outputPath?: string | undefined;
2274
2800
  autoSubfolderIndex?: boolean | undefined;
2275
2801
  crawlLinks?: boolean | undefined;
2276
2802
  retryCount?: number | undefined;
@@ -2347,6 +2873,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
2347
2873
  sitemap?: {
2348
2874
  host?: string | undefined;
2349
2875
  enabled?: boolean | undefined;
2876
+ outputPath?: string | undefined;
2350
2877
  autoSubfolderIndex?: boolean | undefined;
2351
2878
  crawlLinks?: boolean | undefined;
2352
2879
  retryCount?: number | undefined;
@@ -2386,6 +2913,7 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
2386
2913
  path: string;
2387
2914
  prerender?: {
2388
2915
  enabled?: boolean | undefined;
2916
+ outputPath?: string | undefined;
2389
2917
  autoSubfolderIndex?: boolean | undefined;
2390
2918
  crawlLinks?: boolean | undefined;
2391
2919
  retryCount?: number | undefined;
@@ -2446,6 +2974,48 @@ declare const TanStackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
2446
2974
  } | undefined;
2447
2975
  fromCrawl?: boolean | undefined;
2448
2976
  })[] | undefined;
2977
+ spa?: {
2978
+ prerender?: {
2979
+ enabled?: boolean | undefined;
2980
+ outputPath?: string | undefined;
2981
+ autoSubfolderIndex?: boolean | undefined;
2982
+ crawlLinks?: boolean | undefined;
2983
+ retryCount?: number | undefined;
2984
+ retryDelay?: number | undefined;
2985
+ onSuccess?: ((args_0: {
2986
+ page: {
2987
+ path: string;
2988
+ sitemap?: {
2989
+ lastmod?: string | Date | undefined;
2990
+ exclude?: boolean | undefined;
2991
+ priority?: number | undefined;
2992
+ changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
2993
+ alternateRefs?: {
2994
+ href: string;
2995
+ hreflang: string;
2996
+ }[] | undefined;
2997
+ images?: {
2998
+ loc: string;
2999
+ caption?: string | undefined;
3000
+ title?: string | undefined;
3001
+ }[] | undefined;
3002
+ news?: {
3003
+ title: string;
3004
+ publication: {
3005
+ name: string;
3006
+ language: string;
3007
+ };
3008
+ publicationDate: string | Date;
3009
+ } | undefined;
3010
+ } | undefined;
3011
+ fromCrawl?: boolean | undefined;
3012
+ };
3013
+ html: string;
3014
+ }, ...args: unknown[]) => any) | undefined;
3015
+ } | undefined;
3016
+ enabled?: boolean | undefined;
3017
+ maskPath?: string | undefined;
3018
+ } | undefined;
2449
3019
  }>>>;
2450
3020
  export type TanStackStartInputConfig = z.input<typeof TanStackStartOptionsSchema>;
2451
3021
  export declare function getTanStackStartOptions(opts?: TanStackStartInputConfig): {
@@ -2501,6 +3071,7 @@ export declare function getTanStackStartOptions(opts?: TanStackStartInputConfig)
2501
3071
  path: string;
2502
3072
  prerender?: {
2503
3073
  enabled?: boolean | undefined;
3074
+ outputPath?: string | undefined;
2504
3075
  autoSubfolderIndex?: boolean | undefined;
2505
3076
  crawlLinks?: boolean | undefined;
2506
3077
  retryCount?: number | undefined;
@@ -2567,6 +3138,7 @@ export declare function getTanStackStartOptions(opts?: TanStackStartInputConfig)
2567
3138
  path: string;
2568
3139
  prerender?: {
2569
3140
  enabled?: boolean | undefined;
3141
+ outputPath?: string | undefined;
2570
3142
  autoSubfolderIndex?: boolean | undefined;
2571
3143
  crawlLinks?: boolean | undefined;
2572
3144
  retryCount?: number | undefined;
@@ -2632,6 +3204,7 @@ export declare function getTanStackStartOptions(opts?: TanStackStartInputConfig)
2632
3204
  failOnError?: boolean | undefined;
2633
3205
  } & {
2634
3206
  enabled?: boolean | undefined;
3207
+ outputPath?: string | undefined;
2635
3208
  autoSubfolderIndex?: boolean | undefined;
2636
3209
  crawlLinks?: boolean | undefined;
2637
3210
  retryCount?: number | undefined;
@@ -2670,6 +3243,7 @@ export declare function getTanStackStartOptions(opts?: TanStackStartInputConfig)
2670
3243
  sitemap?: {
2671
3244
  host?: string | undefined;
2672
3245
  enabled?: boolean | undefined;
3246
+ outputPath?: string | undefined;
2673
3247
  autoSubfolderIndex?: boolean | undefined;
2674
3248
  crawlLinks?: boolean | undefined;
2675
3249
  retryCount?: number | undefined;
@@ -2705,9 +3279,54 @@ export declare function getTanStackStartOptions(opts?: TanStackStartInputConfig)
2705
3279
  html: string;
2706
3280
  }, ...args: unknown[]) => any) | undefined;
2707
3281
  } | undefined;
3282
+ spa?: {
3283
+ prerender: {
3284
+ enabled: boolean;
3285
+ outputPath: string;
3286
+ autoSubfolderIndex?: boolean | undefined;
3287
+ crawlLinks: boolean;
3288
+ retryCount: number;
3289
+ retryDelay?: number | undefined;
3290
+ onSuccess?: ((args_0: {
3291
+ page: {
3292
+ path: string;
3293
+ sitemap?: {
3294
+ lastmod?: string | Date | undefined;
3295
+ exclude?: boolean | undefined;
3296
+ priority?: number | undefined;
3297
+ changefreq?: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | undefined;
3298
+ alternateRefs?: {
3299
+ href: string;
3300
+ hreflang: string;
3301
+ }[] | undefined;
3302
+ images?: {
3303
+ loc: string;
3304
+ caption?: string | undefined;
3305
+ title?: string | undefined;
3306
+ }[] | undefined;
3307
+ news?: {
3308
+ title: string;
3309
+ publication: {
3310
+ name: string;
3311
+ language: string;
3312
+ };
3313
+ publicationDate: string | Date;
3314
+ } | undefined;
3315
+ } | undefined;
3316
+ fromCrawl?: boolean | undefined;
3317
+ };
3318
+ html: string;
3319
+ }, ...args: unknown[]) => any) | undefined;
3320
+ };
3321
+ enabled: boolean;
3322
+ maskPath: string;
3323
+ } | undefined;
2708
3324
  };
2709
3325
  export type TanStackStartOutputConfig = ReturnType<typeof getTanStackStartOptions>;
2710
3326
  export declare const clientDistDir = ".tanstack-start/build/client-dist";
2711
3327
  export declare const ssrEntryFile = "ssr.mjs";
2712
- export declare function TanStackStartVitePluginCore(framework: CompileStartFrameworkOptions, opts: TanStackStartOutputConfig): Array<PluginOption>;
3328
+ export interface TanStackStartVitePluginCoreOptions {
3329
+ framework: CompileStartFrameworkOptions;
3330
+ }
3331
+ export declare function TanStackStartVitePluginCore(opts: TanStackStartVitePluginCoreOptions, startConfig: TanStackStartOutputConfig): Array<PluginOption>;
2713
3332
  export {};