@depup/nitro 3.0.260311-beta-depup.0

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 (370) hide show
  1. package/LICENSE +27 -0
  2. package/README.md +32 -0
  3. package/changes.json +14 -0
  4. package/dist/THIRD-PARTY-LICENSES.md +1646 -0
  5. package/dist/_build/common.mjs +29361 -0
  6. package/dist/_build/rolldown.mjs +173 -0
  7. package/dist/_build/rollup.mjs +194 -0
  8. package/dist/_build/vite.build.mjs +18 -0
  9. package/dist/_chunks/nitro.mjs +1159 -0
  10. package/dist/_chunks/nitro2.mjs +102 -0
  11. package/dist/_chunks/nitro3.mjs +129 -0
  12. package/dist/_chunks/utils.mjs +272 -0
  13. package/dist/_common.mjs +35 -0
  14. package/dist/_dev.d.mts +12 -0
  15. package/dist/_dev.mjs +519 -0
  16. package/dist/_libs/_.mjs +3 -0
  17. package/dist/_libs/_2.mjs +2 -0
  18. package/dist/_libs/_3.mjs +3 -0
  19. package/dist/_libs/_4.mjs +2 -0
  20. package/dist/_libs/_5.mjs +3 -0
  21. package/dist/_libs/_6.mjs +4 -0
  22. package/dist/_libs/_7.mjs +5 -0
  23. package/dist/_libs/c12+rc9.mjs +812 -0
  24. package/dist/_libs/c12+readdirp+chokidar.d.mts +230 -0
  25. package/dist/_libs/citty.mjs +361 -0
  26. package/dist/_libs/commondir+is-reference.mjs +1311 -0
  27. package/dist/_libs/compatx.d.mts +47 -0
  28. package/dist/_libs/compatx.mjs +45 -0
  29. package/dist/_libs/esbuild.d.mts +20 -0
  30. package/dist/_libs/escape-string-regexp.mjs +7 -0
  31. package/dist/_libs/estree+pluginutils.d.mts +241 -0
  32. package/dist/_libs/estree-walker.mjs +184 -0
  33. package/dist/_libs/exsolve.d.mts +1 -0
  34. package/dist/_libs/hasown+resolve+deepmerge.mjs +1949 -0
  35. package/dist/_libs/httpxy.d.mts +82 -0
  36. package/dist/_libs/httpxy.mjs +671 -0
  37. package/dist/_libs/js-tokens.d.mts +1 -0
  38. package/dist/_libs/klona.mjs +37 -0
  39. package/dist/_libs/magic-string.d.mts +220 -0
  40. package/dist/_libs/mlly.d.mts +57 -0
  41. package/dist/_libs/nypm+tinyexec.mjs +845 -0
  42. package/dist/_libs/perfect-debounce.mjs +88 -0
  43. package/dist/_libs/pkg-types.d.mts +23 -0
  44. package/dist/_libs/plugin-alias.mjs +64 -0
  45. package/dist/_libs/plugin-inject.mjs +131 -0
  46. package/dist/_libs/plugin-json.mjs +34 -0
  47. package/dist/_libs/pluginutils.mjs +646 -0
  48. package/dist/_libs/readdirp+chokidar.mjs +1606 -0
  49. package/dist/_libs/remapping.mjs +115 -0
  50. package/dist/_libs/resolve-uri+gen-mapping.mjs +442 -0
  51. package/dist/_libs/rou3.d.mts +44 -0
  52. package/dist/_libs/rou3.mjs +496 -0
  53. package/dist/_libs/std-env.d.mts +12 -0
  54. package/dist/_libs/strip-literal.d.mts +1 -0
  55. package/dist/_libs/tsconfck.mjs +813 -0
  56. package/dist/_libs/ultrahtml.mjs +127 -0
  57. package/dist/_libs/unimport+unplugin.mjs +1684 -0
  58. package/dist/_libs/unplugin+unimport.d.mts +423 -0
  59. package/dist/_libs/unwasm.d.mts +29 -0
  60. package/dist/_presets.mjs +1759 -0
  61. package/dist/builder.d.mts +64 -0
  62. package/dist/builder.mjs +15 -0
  63. package/dist/cli/_chunks/build.mjs +47 -0
  64. package/dist/cli/_chunks/common.mjs +14 -0
  65. package/dist/cli/_chunks/deploy.mjs +40 -0
  66. package/dist/cli/_chunks/dev.mjs +62 -0
  67. package/dist/cli/_chunks/docs.mjs +30 -0
  68. package/dist/cli/_chunks/list.mjs +25 -0
  69. package/dist/cli/_chunks/prepare.mjs +17 -0
  70. package/dist/cli/_chunks/preview.mjs +51 -0
  71. package/dist/cli/_chunks/run.mjs +53 -0
  72. package/dist/cli/_chunks/task.mjs +14 -0
  73. package/dist/cli/index.d.mts +1 -0
  74. package/dist/cli/index.mjs +22 -0
  75. package/dist/node_modules/@poppinss/colors/build/index.js +139 -0
  76. package/dist/node_modules/@poppinss/colors/package.json +118 -0
  77. package/dist/node_modules/@poppinss/dumper/build/chunk-26HALFTP.js +602 -0
  78. package/dist/node_modules/@poppinss/dumper/build/formatters/console/main.js +441 -0
  79. package/dist/node_modules/@poppinss/dumper/build/formatters/html/main.js +725 -0
  80. package/dist/node_modules/@poppinss/dumper/package.json +122 -0
  81. package/dist/node_modules/@poppinss/exception/build/index.js +44 -0
  82. package/dist/node_modules/@poppinss/exception/package.json +109 -0
  83. package/dist/node_modules/@sindresorhus/is/distribution/index.js +1354 -0
  84. package/dist/node_modules/@sindresorhus/is/distribution/utilities.js +3 -0
  85. package/dist/node_modules/@sindresorhus/is/package.json +81 -0
  86. package/dist/node_modules/@speed-highlight/core/dist/index.js +4 -0
  87. package/dist/node_modules/@speed-highlight/core/dist/terminal.js +2 -0
  88. package/dist/node_modules/@speed-highlight/core/package.json +94 -0
  89. package/dist/node_modules/cookie-es/dist/index.mjs +262 -0
  90. package/dist/node_modules/cookie-es/package.json +37 -0
  91. package/dist/node_modules/croner/dist/croner.js +1 -0
  92. package/dist/node_modules/croner/package.json +73 -0
  93. package/dist/node_modules/defu/dist/defu.mjs +69 -0
  94. package/dist/node_modules/defu/package.json +43 -0
  95. package/dist/node_modules/destr/dist/index.mjs +72 -0
  96. package/dist/node_modules/destr/package.json +47 -0
  97. package/dist/node_modules/error-stack-parser-es/dist/index.mjs +38 -0
  98. package/dist/node_modules/error-stack-parser-es/dist/lite.mjs +167 -0
  99. package/dist/node_modules/error-stack-parser-es/package.json +83 -0
  100. package/dist/node_modules/get-port-please/dist/index.mjs +430 -0
  101. package/dist/node_modules/get-port-please/package.json +39 -0
  102. package/dist/node_modules/kleur/index.mjs +110 -0
  103. package/dist/node_modules/kleur/package.json +51 -0
  104. package/dist/node_modules/rendu/dist/index.mjs +380 -0
  105. package/dist/node_modules/rendu/package.json +47 -0
  106. package/dist/node_modules/scule/dist/index.mjs +80 -0
  107. package/dist/node_modules/scule/package.json +43 -0
  108. package/dist/node_modules/source-map/lib/array-set.js +100 -0
  109. package/dist/node_modules/source-map/lib/base64-vlq.js +94 -0
  110. package/dist/node_modules/source-map/lib/base64.js +19 -0
  111. package/dist/node_modules/source-map/lib/binary-search.js +113 -0
  112. package/dist/node_modules/source-map/lib/mapping-list.js +83 -0
  113. package/dist/node_modules/source-map/lib/mappings.wasm +0 -0
  114. package/dist/node_modules/source-map/lib/read-wasm.js +27 -0
  115. package/dist/node_modules/source-map/lib/source-map-consumer.js +1081 -0
  116. package/dist/node_modules/source-map/lib/source-map-generator.js +439 -0
  117. package/dist/node_modules/source-map/lib/source-node.js +430 -0
  118. package/dist/node_modules/source-map/lib/url.js +13 -0
  119. package/dist/node_modules/source-map/lib/util.js +444 -0
  120. package/dist/node_modules/source-map/lib/wasm.js +138 -0
  121. package/dist/node_modules/source-map/package.json +79 -0
  122. package/dist/node_modules/source-map/source-map.js +10 -0
  123. package/dist/node_modules/supports-color/index.js +202 -0
  124. package/dist/node_modules/supports-color/package.json +64 -0
  125. package/dist/node_modules/ufo/dist/index.mjs +645 -0
  126. package/dist/node_modules/ufo/package.json +48 -0
  127. package/dist/node_modules/unctx/dist/index.mjs +131 -0
  128. package/dist/node_modules/unctx/package.json +67 -0
  129. package/dist/node_modules/youch/build/helpers-B9BQYaS6.js +23 -0
  130. package/dist/node_modules/youch/build/index.js +212 -0
  131. package/dist/node_modules/youch/build/public/error_cause/style.css +5 -0
  132. package/dist/node_modules/youch/build/public/error_info/script.js +13 -0
  133. package/dist/node_modules/youch/build/public/error_info/style.css +145 -0
  134. package/dist/node_modules/youch/build/public/error_metadata/style.css +3 -0
  135. package/dist/node_modules/youch/build/public/error_stack/script.js +72 -0
  136. package/dist/node_modules/youch/build/public/error_stack/style.css +219 -0
  137. package/dist/node_modules/youch/build/public/error_stack_source/style.css +123 -0
  138. package/dist/node_modules/youch/build/public/header/script.js +14 -0
  139. package/dist/node_modules/youch/build/public/header/style.css +56 -0
  140. package/dist/node_modules/youch/build/public/layout/script.js +12 -0
  141. package/dist/node_modules/youch/build/public/layout/style.css +435 -0
  142. package/dist/node_modules/youch/build/public_dir-C5bujZKB.js +25 -0
  143. package/dist/node_modules/youch/build/src/templates/error_cause/main.js +44 -0
  144. package/dist/node_modules/youch/build/src/templates/error_info/main.js +72 -0
  145. package/dist/node_modules/youch/build/src/templates/error_metadata/main.js +65 -0
  146. package/dist/node_modules/youch/build/src/templates/error_stack/main.js +152 -0
  147. package/dist/node_modules/youch/build/src/templates/error_stack_source/main.js +46 -0
  148. package/dist/node_modules/youch/build/src/templates/header/main.js +24 -0
  149. package/dist/node_modules/youch/build/src/templates/layout/main.js +27 -0
  150. package/dist/node_modules/youch/package.json +135 -0
  151. package/dist/node_modules/youch-core/build/index.js +316 -0
  152. package/dist/node_modules/youch-core/package.json +124 -0
  153. package/dist/presets/_nitro/runtime/nitro-dev.mjs +20 -0
  154. package/dist/presets/_nitro/runtime/nitro-prerenderer.mjs +15 -0
  155. package/dist/presets/_nitro/runtime/service-worker.mjs +23 -0
  156. package/dist/presets/aws-amplify/runtime/aws-amplify.mjs +14 -0
  157. package/dist/presets/aws-lambda/runtime/_utils.mjs +116 -0
  158. package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.mjs +31 -0
  159. package/dist/presets/aws-lambda/runtime/aws-lambda.mjs +13 -0
  160. package/dist/presets/azure/runtime/_utils.mjs +50 -0
  161. package/dist/presets/azure/runtime/azure-swa.mjs +30 -0
  162. package/dist/presets/bun/runtime/bun.mjs +40 -0
  163. package/dist/presets/cloudflare/runtime/_module-handler.mjs +87 -0
  164. package/dist/presets/cloudflare/runtime/cloudflare-durable.mjs +72 -0
  165. package/dist/presets/cloudflare/runtime/cloudflare-module.mjs +17 -0
  166. package/dist/presets/cloudflare/runtime/cloudflare-pages.mjs +39 -0
  167. package/dist/presets/cloudflare/runtime/plugin.dev.mjs +96 -0
  168. package/dist/presets/cloudflare/runtime/shims/workers.dev.mjs +27 -0
  169. package/dist/presets/deno/runtime/deno-deploy.mjs +19 -0
  170. package/dist/presets/deno/runtime/deno-server.mjs +39 -0
  171. package/dist/presets/netlify/runtime/netlify-edge.mjs +20 -0
  172. package/dist/presets/netlify/runtime/netlify.mjs +20 -0
  173. package/dist/presets/node/runtime/node-cluster.mjs +54 -0
  174. package/dist/presets/node/runtime/node-middleware.mjs +14 -0
  175. package/dist/presets/node/runtime/node-server.mjs +47 -0
  176. package/dist/presets/standard/runtime/server.mjs +4 -0
  177. package/dist/presets/stormkit/runtime/stormkit.mjs +27 -0
  178. package/dist/presets/vercel/runtime/cron-handler.mjs +25 -0
  179. package/dist/presets/vercel/runtime/isr.mjs +19 -0
  180. package/dist/presets/vercel/runtime/vercel.node.mjs +24 -0
  181. package/dist/presets/vercel/runtime/vercel.web.mjs +23 -0
  182. package/dist/presets/winterjs/runtime/winterjs.mjs +91 -0
  183. package/dist/presets/zeabur/runtime/zeabur.mjs +4 -0
  184. package/dist/presets/zephyr/runtime/server.mjs +3 -0
  185. package/dist/runtime/app.d.mts +1 -0
  186. package/dist/runtime/app.mjs +1 -0
  187. package/dist/runtime/cache.d.mts +1 -0
  188. package/dist/runtime/cache.mjs +1 -0
  189. package/dist/runtime/config.d.mts +3 -0
  190. package/dist/runtime/config.mjs +4 -0
  191. package/dist/runtime/context.d.mts +1 -0
  192. package/dist/runtime/context.mjs +1 -0
  193. package/dist/runtime/database.d.mts +1 -0
  194. package/dist/runtime/database.mjs +1 -0
  195. package/dist/runtime/internal/app.d.mts +16 -0
  196. package/dist/runtime/internal/app.mjs +208 -0
  197. package/dist/runtime/internal/cache.d.mts +7 -0
  198. package/dist/runtime/internal/cache.mjs +41 -0
  199. package/dist/runtime/internal/context.d.mts +14 -0
  200. package/dist/runtime/internal/context.mjs +24 -0
  201. package/dist/runtime/internal/database.d.mts +2 -0
  202. package/dist/runtime/internal/database.mjs +12 -0
  203. package/dist/runtime/internal/empty.mjs +0 -0
  204. package/dist/runtime/internal/error/dev.d.mts +10 -0
  205. package/dist/runtime/internal/error/dev.mjs +121 -0
  206. package/dist/runtime/internal/error/hooks.d.mts +1 -0
  207. package/dist/runtime/internal/error/hooks.mjs +9 -0
  208. package/dist/runtime/internal/error/prod.d.mts +6 -0
  209. package/dist/runtime/internal/error/prod.mjs +40 -0
  210. package/dist/runtime/internal/error/utils.d.mts +8 -0
  211. package/dist/runtime/internal/error/utils.mjs +3 -0
  212. package/dist/runtime/internal/meta.d.mts +2 -0
  213. package/dist/runtime/internal/meta.mjs +3 -0
  214. package/dist/runtime/internal/plugin.d.mts +3 -0
  215. package/dist/runtime/internal/plugin.mjs +4 -0
  216. package/dist/runtime/internal/route-rules.d.mts +9 -0
  217. package/dist/runtime/internal/route-rules.mjs +72 -0
  218. package/dist/runtime/internal/routes/dev-tasks.d.mts +3 -0
  219. package/dist/runtime/internal/routes/dev-tasks.mjs +25 -0
  220. package/dist/runtime/internal/routes/openapi.d.mts +3 -0
  221. package/dist/runtime/internal/routes/openapi.mjs +94 -0
  222. package/dist/runtime/internal/routes/renderer-template.d.mts +2 -0
  223. package/dist/runtime/internal/routes/renderer-template.dev.d.mts +3 -0
  224. package/dist/runtime/internal/routes/renderer-template.dev.mjs +19 -0
  225. package/dist/runtime/internal/routes/renderer-template.mjs +4 -0
  226. package/dist/runtime/internal/routes/scalar.d.mts +3 -0
  227. package/dist/runtime/internal/routes/scalar.mjs +193 -0
  228. package/dist/runtime/internal/routes/swagger.d.mts +3 -0
  229. package/dist/runtime/internal/routes/swagger.mjs +42 -0
  230. package/dist/runtime/internal/runtime-config.d.mts +9 -0
  231. package/dist/runtime/internal/runtime-config.mjs +54 -0
  232. package/dist/runtime/internal/static.d.mts +3 -0
  233. package/dist/runtime/internal/static.mjs +67 -0
  234. package/dist/runtime/internal/storage.d.mts +2 -0
  235. package/dist/runtime/internal/storage.mjs +6 -0
  236. package/dist/runtime/internal/task.d.mts +19 -0
  237. package/dist/runtime/internal/task.mjs +69 -0
  238. package/dist/runtime/internal/vite/dev-entry.mjs +18 -0
  239. package/dist/runtime/internal/vite/dev-worker.mjs +264 -0
  240. package/dist/runtime/internal/vite/ssr-renderer.mjs +6 -0
  241. package/dist/runtime/meta.d.mts +5 -0
  242. package/dist/runtime/meta.mjs +27 -0
  243. package/dist/runtime/nitro.d.mts +11 -0
  244. package/dist/runtime/nitro.mjs +34 -0
  245. package/dist/runtime/runtime-config.d.mts +1 -0
  246. package/dist/runtime/runtime-config.mjs +1 -0
  247. package/dist/runtime/storage.d.mts +1 -0
  248. package/dist/runtime/storage.mjs +1 -0
  249. package/dist/runtime/task.d.mts +1 -0
  250. package/dist/runtime/task.mjs +1 -0
  251. package/dist/runtime/virtual/_runtime_warn.d.mts +1 -0
  252. package/dist/runtime/virtual/_runtime_warn.mjs +5 -0
  253. package/dist/runtime/virtual/database.d.mts +8 -0
  254. package/dist/runtime/virtual/database.mjs +2 -0
  255. package/dist/runtime/virtual/error-handler.d.mts +6 -0
  256. package/dist/runtime/virtual/error-handler.mjs +9 -0
  257. package/dist/runtime/virtual/feature-flags.d.mts +7 -0
  258. package/dist/runtime/virtual/feature-flags.mjs +7 -0
  259. package/dist/runtime/virtual/plugins.d.mts +3 -0
  260. package/dist/runtime/virtual/plugins.mjs +2 -0
  261. package/dist/runtime/virtual/polyfills.d.mts +3 -0
  262. package/dist/runtime/virtual/polyfills.mjs +2 -0
  263. package/dist/runtime/virtual/public-assets.d.mts +9 -0
  264. package/dist/runtime/virtual/public-assets.mjs +8 -0
  265. package/dist/runtime/virtual/renderer-template.d.mts +4 -0
  266. package/dist/runtime/virtual/renderer-template.mjs +7 -0
  267. package/dist/runtime/virtual/routing-meta.d.mts +7 -0
  268. package/dist/runtime/virtual/routing-meta.mjs +2 -0
  269. package/dist/runtime/virtual/routing.d.mts +8 -0
  270. package/dist/runtime/virtual/routing.mjs +11 -0
  271. package/dist/runtime/virtual/runtime-config.d.mts +3 -0
  272. package/dist/runtime/virtual/runtime-config.mjs +5 -0
  273. package/dist/runtime/virtual/server-assets.d.mts +7 -0
  274. package/dist/runtime/virtual/server-assets.mjs +12 -0
  275. package/dist/runtime/virtual/storage.d.mts +3 -0
  276. package/dist/runtime/virtual/storage.mjs +5 -0
  277. package/dist/runtime/virtual/tasks.d.mts +10 -0
  278. package/dist/runtime/virtual/tasks.mjs +3 -0
  279. package/dist/runtime/vite.d.mts +8 -0
  280. package/dist/runtime/vite.mjs +9 -0
  281. package/dist/types/index.d.mts +3010 -0
  282. package/dist/types/index.mjs +1 -0
  283. package/dist/vite.d.mts +52 -0
  284. package/dist/vite.mjs +740 -0
  285. package/lib/h3.d.mts +1 -0
  286. package/lib/h3.mjs +1 -0
  287. package/lib/tsconfig.json +27 -0
  288. package/lib/vite.types.d.mts +26 -0
  289. package/lib/vite.types.mjs +2 -0
  290. package/package.json +256 -0
  291. package/skills/nitro/SKILL.md +10 -0
  292. package/skills/nitro/docs/TOC.md +83 -0
  293. package/skills/nitro/docs/_navigation.json +679 -0
  294. package/skills/nitro/docs/config/index.md +1147 -0
  295. package/skills/nitro/docs/deploy/index.md +64 -0
  296. package/skills/nitro/docs/deploy/providers/alwaysdata.md +50 -0
  297. package/skills/nitro/docs/deploy/providers/aws-amplify.md +81 -0
  298. package/skills/nitro/docs/deploy/providers/aws.md +47 -0
  299. package/skills/nitro/docs/deploy/providers/azure.md +72 -0
  300. package/skills/nitro/docs/deploy/providers/cleavr.md +33 -0
  301. package/skills/nitro/docs/deploy/providers/cloudflare.md +375 -0
  302. package/skills/nitro/docs/deploy/providers/deno-deploy.md +66 -0
  303. package/skills/nitro/docs/deploy/providers/digitalocean.md +46 -0
  304. package/skills/nitro/docs/deploy/providers/firebase.md +32 -0
  305. package/skills/nitro/docs/deploy/providers/flightcontrol.md +67 -0
  306. package/skills/nitro/docs/deploy/providers/genezio.md +67 -0
  307. package/skills/nitro/docs/deploy/providers/github-pages.md +68 -0
  308. package/skills/nitro/docs/deploy/providers/gitlab-pages.md +37 -0
  309. package/skills/nitro/docs/deploy/providers/heroku.md +84 -0
  310. package/skills/nitro/docs/deploy/providers/iis.md +38 -0
  311. package/skills/nitro/docs/deploy/providers/koyeb.md +109 -0
  312. package/skills/nitro/docs/deploy/providers/netlify.md +47 -0
  313. package/skills/nitro/docs/deploy/providers/platform-sh.md +37 -0
  314. package/skills/nitro/docs/deploy/providers/render.md +37 -0
  315. package/skills/nitro/docs/deploy/providers/stormkit.md +24 -0
  316. package/skills/nitro/docs/deploy/providers/vercel.md +179 -0
  317. package/skills/nitro/docs/deploy/providers/zeabur.md +19 -0
  318. package/skills/nitro/docs/deploy/providers/zephyr.md +99 -0
  319. package/skills/nitro/docs/deploy/providers/zerops.md +102 -0
  320. package/skills/nitro/docs/deploy/runtimes/bun.md +15 -0
  321. package/skills/nitro/docs/deploy/runtimes/deno.md +19 -0
  322. package/skills/nitro/docs/deploy/runtimes/node.md +63 -0
  323. package/skills/nitro/docs/docs/assets.md +166 -0
  324. package/skills/nitro/docs/docs/cache.md +408 -0
  325. package/skills/nitro/docs/docs/configuration.md +256 -0
  326. package/skills/nitro/docs/docs/database.md +185 -0
  327. package/skills/nitro/docs/docs/index.md +56 -0
  328. package/skills/nitro/docs/docs/lifecycle.md +204 -0
  329. package/skills/nitro/docs/docs/migration.md +215 -0
  330. package/skills/nitro/docs/docs/nightly.md +31 -0
  331. package/skills/nitro/docs/docs/plugins.md +164 -0
  332. package/skills/nitro/docs/docs/quick-start.md +110 -0
  333. package/skills/nitro/docs/docs/renderer.md +322 -0
  334. package/skills/nitro/docs/docs/routing.md +711 -0
  335. package/skills/nitro/docs/docs/server-entry.md +239 -0
  336. package/skills/nitro/docs/docs/storage.md +261 -0
  337. package/skills/nitro/docs/docs/tasks.md +277 -0
  338. package/skills/nitro/docs/examples/api-routes.md +145 -0
  339. package/skills/nitro/docs/examples/auto-imports.md +93 -0
  340. package/skills/nitro/docs/examples/cached-handler.md +81 -0
  341. package/skills/nitro/docs/examples/custom-error-handler.md +98 -0
  342. package/skills/nitro/docs/examples/database.md +157 -0
  343. package/skills/nitro/docs/examples/elysia.md +70 -0
  344. package/skills/nitro/docs/examples/express.md +78 -0
  345. package/skills/nitro/docs/examples/fastify.md +79 -0
  346. package/skills/nitro/docs/examples/hello-world.md +68 -0
  347. package/skills/nitro/docs/examples/hono.md +74 -0
  348. package/skills/nitro/docs/examples/import-alias.md +100 -0
  349. package/skills/nitro/docs/examples/index.md +3 -0
  350. package/skills/nitro/docs/examples/middleware.md +91 -0
  351. package/skills/nitro/docs/examples/mono-jsx.md +68 -0
  352. package/skills/nitro/docs/examples/nano-jsx.md +70 -0
  353. package/skills/nitro/docs/examples/plugins.md +91 -0
  354. package/skills/nitro/docs/examples/renderer.md +113 -0
  355. package/skills/nitro/docs/examples/runtime-config.md +97 -0
  356. package/skills/nitro/docs/examples/server-fetch.md +87 -0
  357. package/skills/nitro/docs/examples/shiki.md +198 -0
  358. package/skills/nitro/docs/examples/virtual-routes.md +74 -0
  359. package/skills/nitro/docs/examples/vite-nitro-plugin.md +79 -0
  360. package/skills/nitro/docs/examples/vite-rsc.md +1041 -0
  361. package/skills/nitro/docs/examples/vite-ssr-html.md +217 -0
  362. package/skills/nitro/docs/examples/vite-ssr-preact.md +247 -0
  363. package/skills/nitro/docs/examples/vite-ssr-react.md +226 -0
  364. package/skills/nitro/docs/examples/vite-ssr-solid.md +256 -0
  365. package/skills/nitro/docs/examples/vite-ssr-tsr-react.md +442 -0
  366. package/skills/nitro/docs/examples/vite-ssr-tss-react.md +444 -0
  367. package/skills/nitro/docs/examples/vite-ssr-vue-router.md +616 -0
  368. package/skills/nitro/docs/examples/vite-trpc.md +335 -0
  369. package/skills/nitro/docs/examples/websocket.md +282 -0
  370. package/skills/nitro/docs/index.md +121 -0
@@ -0,0 +1,679 @@
1
+ [
2
+ {
3
+ "slug": "docs",
4
+ "path": "/docs",
5
+ "title": "Docs",
6
+ "order": 1,
7
+ "icon": "i-lucide-book-open",
8
+ "children": [
9
+ {
10
+ "slug": "",
11
+ "path": "/docs",
12
+ "title": "Introduction",
13
+ "order": 1,
14
+ "icon": "i-lucide-compass"
15
+ },
16
+ {
17
+ "slug": "quick-start",
18
+ "path": "/docs/quick-start",
19
+ "title": "Quick Start",
20
+ "order": 2,
21
+ "icon": "i-lucide-zap"
22
+ },
23
+ {
24
+ "slug": "renderer",
25
+ "path": "/docs/renderer",
26
+ "title": "Renderer",
27
+ "order": 4,
28
+ "icon": "ri:layout-masonry-line"
29
+ },
30
+ {
31
+ "slug": "routing",
32
+ "path": "/docs/routing",
33
+ "title": "Routing",
34
+ "order": 5,
35
+ "icon": "ri:direction-line"
36
+ },
37
+ {
38
+ "slug": "server-entry",
39
+ "path": "/docs/server-entry",
40
+ "title": "Server Entry",
41
+ "order": 6,
42
+ "icon": "ri:server-line"
43
+ },
44
+ {
45
+ "slug": "cache",
46
+ "path": "/docs/cache",
47
+ "title": "Cache",
48
+ "order": 7,
49
+ "icon": "ri:speed-line"
50
+ },
51
+ {
52
+ "slug": "storage",
53
+ "path": "/docs/storage",
54
+ "title": "KV Storage",
55
+ "order": 8,
56
+ "icon": "carbon:datastore"
57
+ },
58
+ {
59
+ "slug": "assets",
60
+ "path": "/docs/assets",
61
+ "title": "Assets",
62
+ "order": 50,
63
+ "icon": "ri:image-2-line"
64
+ },
65
+ {
66
+ "slug": "configuration",
67
+ "path": "/docs/configuration",
68
+ "title": "Configuration",
69
+ "order": 50,
70
+ "icon": "ri:settings-3-line"
71
+ },
72
+ {
73
+ "slug": "database",
74
+ "path": "/docs/database",
75
+ "title": "Database",
76
+ "order": 50,
77
+ "icon": "ri:database-2-line"
78
+ },
79
+ {
80
+ "slug": "lifecycle",
81
+ "path": "/docs/lifecycle",
82
+ "title": "Lifecycle",
83
+ "order": 50,
84
+ "icon": "i-lucide-layers"
85
+ },
86
+ {
87
+ "slug": "plugins",
88
+ "path": "/docs/plugins",
89
+ "title": "Plugins",
90
+ "order": 50,
91
+ "icon": "ri:plug-line"
92
+ },
93
+ {
94
+ "slug": "tasks",
95
+ "path": "/docs/tasks",
96
+ "title": "Tasks",
97
+ "order": 50,
98
+ "icon": "codicon:run-all"
99
+ },
100
+ {
101
+ "slug": "migration",
102
+ "path": "/docs/migration",
103
+ "title": "Migration Guide",
104
+ "order": 99,
105
+ "icon": "ri:arrow-right-up-line"
106
+ },
107
+ {
108
+ "slug": "nightly",
109
+ "path": "/docs/nightly",
110
+ "title": "Nightly Channel",
111
+ "order": 99,
112
+ "icon": "ri:moon-fill"
113
+ }
114
+ ]
115
+ },
116
+ {
117
+ "slug": "deploy",
118
+ "path": "/deploy",
119
+ "title": "Deploy",
120
+ "order": 2,
121
+ "children": [
122
+ {
123
+ "slug": "",
124
+ "path": "/deploy",
125
+ "title": "Deploy",
126
+ "order": 0,
127
+ "icon": "ri:upload-cloud-2-line"
128
+ },
129
+ {
130
+ "slug": "runtimes",
131
+ "path": "/deploy/runtimes",
132
+ "title": "Runtimes",
133
+ "order": 10,
134
+ "page": false,
135
+ "children": [
136
+ {
137
+ "slug": "node",
138
+ "path": "/deploy/runtimes/node",
139
+ "title": "Node.js",
140
+ "order": 1,
141
+ "icon": "akar-icons:node-fill"
142
+ },
143
+ {
144
+ "slug": "bun",
145
+ "path": "/deploy/runtimes/bun",
146
+ "title": "Bun",
147
+ "order": null,
148
+ "icon": "simple-icons:bun"
149
+ },
150
+ {
151
+ "slug": "deno",
152
+ "path": "/deploy/runtimes/deno",
153
+ "title": "Deno",
154
+ "order": null,
155
+ "icon": "simple-icons:deno"
156
+ }
157
+ ]
158
+ },
159
+ {
160
+ "slug": "providers",
161
+ "path": "/deploy/providers",
162
+ "title": "Providers",
163
+ "order": 20,
164
+ "page": false,
165
+ "children": [
166
+ {
167
+ "slug": "alwaysdata",
168
+ "path": "/deploy/providers/alwaysdata",
169
+ "title": "Alwaysdata",
170
+ "order": null
171
+ },
172
+ {
173
+ "slug": "aws",
174
+ "path": "/deploy/providers/aws",
175
+ "title": "AWS Lambda",
176
+ "order": null
177
+ },
178
+ {
179
+ "slug": "aws-amplify",
180
+ "path": "/deploy/providers/aws-amplify",
181
+ "title": "AWS Amplify",
182
+ "order": null
183
+ },
184
+ {
185
+ "slug": "azure",
186
+ "path": "/deploy/providers/azure",
187
+ "title": "Azure",
188
+ "order": null
189
+ },
190
+ {
191
+ "slug": "cleavr",
192
+ "path": "/deploy/providers/cleavr",
193
+ "title": "Cleavr",
194
+ "order": null
195
+ },
196
+ {
197
+ "slug": "cloudflare",
198
+ "path": "/deploy/providers/cloudflare",
199
+ "title": "Cloudflare",
200
+ "order": null
201
+ },
202
+ {
203
+ "slug": "deno-deploy",
204
+ "path": "/deploy/providers/deno-deploy",
205
+ "title": "Deno Deploy",
206
+ "order": null
207
+ },
208
+ {
209
+ "slug": "digitalocean",
210
+ "path": "/deploy/providers/digitalocean",
211
+ "title": "DigitalOcean",
212
+ "order": null
213
+ },
214
+ {
215
+ "slug": "firebase",
216
+ "path": "/deploy/providers/firebase",
217
+ "title": "Firebase",
218
+ "order": null
219
+ },
220
+ {
221
+ "slug": "flightcontrol",
222
+ "path": "/deploy/providers/flightcontrol",
223
+ "title": "Flightcontrol",
224
+ "order": null
225
+ },
226
+ {
227
+ "slug": "genezio",
228
+ "path": "/deploy/providers/genezio",
229
+ "title": "Genezio",
230
+ "order": null
231
+ },
232
+ {
233
+ "slug": "github-pages",
234
+ "path": "/deploy/providers/github-pages",
235
+ "title": "GitHub Pages",
236
+ "order": null
237
+ },
238
+ {
239
+ "slug": "gitlab-pages",
240
+ "path": "/deploy/providers/gitlab-pages",
241
+ "title": "GitLab Pages",
242
+ "order": null
243
+ },
244
+ {
245
+ "slug": "heroku",
246
+ "path": "/deploy/providers/heroku",
247
+ "title": "Heroku",
248
+ "order": null
249
+ },
250
+ {
251
+ "slug": "iis",
252
+ "path": "/deploy/providers/iis",
253
+ "title": "IIS",
254
+ "order": null
255
+ },
256
+ {
257
+ "slug": "koyeb",
258
+ "path": "/deploy/providers/koyeb",
259
+ "title": "Koyeb",
260
+ "order": null
261
+ },
262
+ {
263
+ "slug": "netlify",
264
+ "path": "/deploy/providers/netlify",
265
+ "title": "Netlify",
266
+ "order": null
267
+ },
268
+ {
269
+ "slug": "platform-sh",
270
+ "path": "/deploy/providers/platform-sh",
271
+ "title": "Platform.sh",
272
+ "order": null
273
+ },
274
+ {
275
+ "slug": "render",
276
+ "path": "/deploy/providers/render",
277
+ "title": "Render.com",
278
+ "order": null
279
+ },
280
+ {
281
+ "slug": "stormkit",
282
+ "path": "/deploy/providers/stormkit",
283
+ "title": "StormKit",
284
+ "order": null
285
+ },
286
+ {
287
+ "slug": "vercel",
288
+ "path": "/deploy/providers/vercel",
289
+ "title": "Vercel",
290
+ "order": null
291
+ },
292
+ {
293
+ "slug": "zeabur",
294
+ "path": "/deploy/providers/zeabur",
295
+ "title": "Zeabur",
296
+ "order": null
297
+ },
298
+ {
299
+ "slug": "zephyr",
300
+ "path": "/deploy/providers/zephyr",
301
+ "title": "Zephyr Cloud",
302
+ "order": null
303
+ },
304
+ {
305
+ "slug": "zerops",
306
+ "path": "/deploy/providers/zerops",
307
+ "title": "Zerops",
308
+ "order": null
309
+ }
310
+ ]
311
+ }
312
+ ]
313
+ },
314
+ {
315
+ "slug": "config",
316
+ "path": "/config",
317
+ "title": "Config",
318
+ "order": 3,
319
+ "children": [
320
+ {
321
+ "slug": "",
322
+ "path": "/config",
323
+ "title": "Config",
324
+ "order": 0,
325
+ "icon": "ri:settings-3-line"
326
+ }
327
+ ]
328
+ },
329
+ {
330
+ "slug": "examples",
331
+ "path": "/examples",
332
+ "title": "Examples",
333
+ "order": 4,
334
+ "children": [
335
+ {
336
+ "slug": "",
337
+ "path": "/examples",
338
+ "title": "Examples",
339
+ "order": 0,
340
+ "icon": "i-lucide-folder-code"
341
+ },
342
+ {
343
+ "slug": "api-routes",
344
+ "path": "/examples/api-routes",
345
+ "title": "API Routes",
346
+ "order": null,
347
+ "icon": "i-lucide-route",
348
+ "category": "features"
349
+ },
350
+ {
351
+ "slug": "auto-imports",
352
+ "path": "/examples/auto-imports",
353
+ "title": "Auto Imports",
354
+ "order": null,
355
+ "icon": "i-lucide-import",
356
+ "category": "config"
357
+ },
358
+ {
359
+ "slug": "cached-handler",
360
+ "path": "/examples/cached-handler",
361
+ "title": "Cached Handler",
362
+ "order": null,
363
+ "icon": "i-lucide-clock",
364
+ "category": "features"
365
+ },
366
+ {
367
+ "slug": "custom-error-handler",
368
+ "path": "/examples/custom-error-handler",
369
+ "title": "Custom Error Handler",
370
+ "order": null,
371
+ "icon": "i-lucide-alert-circle",
372
+ "category": "features"
373
+ },
374
+ {
375
+ "slug": "database",
376
+ "path": "/examples/database",
377
+ "title": "Database",
378
+ "order": null,
379
+ "icon": "i-lucide-database",
380
+ "category": "features"
381
+ },
382
+ {
383
+ "slug": "elysia",
384
+ "path": "/examples/elysia",
385
+ "title": "Elysia",
386
+ "order": null,
387
+ "icon": "i-skill-icons-elysia-dark",
388
+ "category": "backend frameworks"
389
+ },
390
+ {
391
+ "slug": "express",
392
+ "path": "/examples/express",
393
+ "title": "Express",
394
+ "order": null,
395
+ "icon": "i-simple-icons-express",
396
+ "category": "backend frameworks"
397
+ },
398
+ {
399
+ "slug": "fastify",
400
+ "path": "/examples/fastify",
401
+ "title": "Fastify",
402
+ "order": null,
403
+ "icon": "i-simple-icons-fastify",
404
+ "category": "backend frameworks"
405
+ },
406
+ {
407
+ "slug": "hello-world",
408
+ "path": "/examples/hello-world",
409
+ "title": "Hello World",
410
+ "order": null,
411
+ "icon": "i-lucide-sparkles",
412
+ "category": "features"
413
+ },
414
+ {
415
+ "slug": "hono",
416
+ "path": "/examples/hono",
417
+ "title": "Hono",
418
+ "order": null,
419
+ "icon": "i-logos-hono",
420
+ "category": "backend frameworks"
421
+ },
422
+ {
423
+ "slug": "import-alias",
424
+ "path": "/examples/import-alias",
425
+ "title": "Import Alias",
426
+ "order": null,
427
+ "icon": "i-lucide-at-sign",
428
+ "category": "config"
429
+ },
430
+ {
431
+ "slug": "middleware",
432
+ "path": "/examples/middleware",
433
+ "title": "Middleware",
434
+ "order": null,
435
+ "icon": "i-lucide-layers",
436
+ "category": "features"
437
+ },
438
+ {
439
+ "slug": "mono-jsx",
440
+ "path": "/examples/mono-jsx",
441
+ "title": "Mono JSX",
442
+ "order": null,
443
+ "icon": "i-lucide-brackets",
444
+ "category": "server side rendering"
445
+ },
446
+ {
447
+ "slug": "nano-jsx",
448
+ "path": "/examples/nano-jsx",
449
+ "title": "Nano JSX",
450
+ "order": null,
451
+ "icon": "i-lucide-brackets",
452
+ "category": "server side rendering"
453
+ },
454
+ {
455
+ "slug": "plugins",
456
+ "path": "/examples/plugins",
457
+ "title": "Plugins",
458
+ "order": null,
459
+ "icon": "i-lucide-plug",
460
+ "category": "features"
461
+ },
462
+ {
463
+ "slug": "renderer",
464
+ "path": "/examples/renderer",
465
+ "title": "Custom Renderer",
466
+ "order": null,
467
+ "icon": "i-lucide-code",
468
+ "category": "server side rendering"
469
+ },
470
+ {
471
+ "slug": "runtime-config",
472
+ "path": "/examples/runtime-config",
473
+ "title": "Runtime Config",
474
+ "order": null,
475
+ "icon": "i-lucide-settings",
476
+ "category": "config"
477
+ },
478
+ {
479
+ "slug": "server-fetch",
480
+ "path": "/examples/server-fetch",
481
+ "title": "Server Fetch",
482
+ "order": null,
483
+ "icon": "i-lucide-arrow-right-left",
484
+ "category": "features"
485
+ },
486
+ {
487
+ "slug": "shiki",
488
+ "path": "/examples/shiki",
489
+ "title": "Shiki",
490
+ "order": null,
491
+ "icon": "i-lucide-highlighter",
492
+ "category": "integrations"
493
+ },
494
+ {
495
+ "slug": "virtual-routes",
496
+ "path": "/examples/virtual-routes",
497
+ "title": "Virtual Routes",
498
+ "order": null,
499
+ "icon": "i-lucide-box",
500
+ "category": "features"
501
+ },
502
+ {
503
+ "slug": "vite-nitro-plugin",
504
+ "path": "/examples/vite-nitro-plugin",
505
+ "title": "Vite Nitro Plugin",
506
+ "order": null,
507
+ "icon": "i-logos-vitejs",
508
+ "category": "vite"
509
+ },
510
+ {
511
+ "slug": "vite-rsc",
512
+ "path": "/examples/vite-rsc",
513
+ "title": "Vite RSC",
514
+ "order": null,
515
+ "icon": "i-logos-react",
516
+ "category": "vite"
517
+ },
518
+ {
519
+ "slug": "vite-ssr-html",
520
+ "path": "/examples/vite-ssr-html",
521
+ "title": "Vite SSR HTML",
522
+ "order": null,
523
+ "icon": "i-logos-html-5",
524
+ "category": "server side rendering"
525
+ },
526
+ {
527
+ "slug": "vite-ssr-preact",
528
+ "path": "/examples/vite-ssr-preact",
529
+ "title": "SSR with Preact",
530
+ "order": null,
531
+ "icon": "i-logos-preact",
532
+ "category": "server side rendering"
533
+ },
534
+ {
535
+ "slug": "vite-ssr-react",
536
+ "path": "/examples/vite-ssr-react",
537
+ "title": "SSR with React",
538
+ "order": null,
539
+ "icon": "i-logos-react",
540
+ "category": "server side rendering"
541
+ },
542
+ {
543
+ "slug": "vite-ssr-solid",
544
+ "path": "/examples/vite-ssr-solid",
545
+ "title": "SSR with SolidJS",
546
+ "order": null,
547
+ "icon": "i-logos-solidjs-icon",
548
+ "category": "server side rendering"
549
+ },
550
+ {
551
+ "slug": "vite-ssr-tsr-react",
552
+ "path": "/examples/vite-ssr-tsr-react",
553
+ "title": "SSR with TanStack Router",
554
+ "order": null,
555
+ "icon": "i-simple-icons-tanstack",
556
+ "category": "server side rendering"
557
+ },
558
+ {
559
+ "slug": "vite-ssr-tss-react",
560
+ "path": "/examples/vite-ssr-tss-react",
561
+ "title": "SSR with TanStack Start",
562
+ "order": null,
563
+ "icon": "i-simple-icons-tanstack",
564
+ "category": "server side rendering"
565
+ },
566
+ {
567
+ "slug": "vite-ssr-vue-router",
568
+ "path": "/examples/vite-ssr-vue-router",
569
+ "title": "SSR with Vue Router",
570
+ "order": null,
571
+ "icon": "i-logos-vue",
572
+ "category": "server side rendering"
573
+ },
574
+ {
575
+ "slug": "vite-trpc",
576
+ "path": "/examples/vite-trpc",
577
+ "title": "Vite + tRPC",
578
+ "order": null,
579
+ "icon": "i-simple-icons-trpc",
580
+ "category": "vite"
581
+ },
582
+ {
583
+ "slug": "websocket",
584
+ "path": "/examples/websocket",
585
+ "title": "WebSocket",
586
+ "order": null,
587
+ "icon": "i-lucide-radio",
588
+ "category": "features"
589
+ }
590
+ ]
591
+ },
592
+ {
593
+ "slug": "",
594
+ "path": "/",
595
+ "title": "Index",
596
+ "order": null,
597
+ "seo": {
598
+ "title": "Build Full-Stack Servers",
599
+ "description": "Nitro extends your Vite application with a production-ready server, compatible with any runtime. Add server routes to your application and deploy many hosting platform with a zero-config experience."
600
+ },
601
+ "orientation": "horizontal",
602
+ "filename": "nitro.config.ts",
603
+ "features": [
604
+ {
605
+ "title": "Fast",
606
+ "description": "Enjoy the fast Vite 8 (rolldown powered) development experience with HMR on the server and optimized for production.",
607
+ "icon": "i-lucide-zap",
608
+ "color": "text-amber-500",
609
+ "bgColor": "bg-amber-500/10",
610
+ "borderColor": "group-hover:border-amber-500/30"
611
+ },
612
+ {
613
+ "title": "Agnostic",
614
+ "description": "Deploy the same codebase to any deployment provider with zero config and locked-in.",
615
+ "icon": "i-lucide-globe",
616
+ "color": "text-sky-500",
617
+ "bgColor": "bg-sky-500/10",
618
+ "borderColor": "group-hover:border-sky-500/30"
619
+ },
620
+ {
621
+ "title": "Minimal",
622
+ "description": "Nitro adds no overhead to runtime. Build your servers with any modern tool you like.",
623
+ "icon": "i-lucide-feather",
624
+ "color": "text-emerald-500",
625
+ "bgColor": "bg-emerald-500/10",
626
+ "borderColor": "group-hover:border-emerald-500/30"
627
+ }
628
+ ],
629
+ "metrics": [
630
+ {
631
+ "label": "Bare metal perf",
632
+ "value": "~Native",
633
+ "unit": "RPS",
634
+ "description": "Using compile router, and fast paths for request handling.",
635
+ "icon": "i-lucide-gauge",
636
+ "color": "text-emerald-500",
637
+ "bgColor": "bg-emerald-500/10",
638
+ "barWidth": "95%",
639
+ "barColor": "bg-emerald-500"
640
+ },
641
+ {
642
+ "label": "Minimum install Size",
643
+ "value": "Tiny",
644
+ "unit": "deps",
645
+ "description": "Minimal dependencies. No bloated node_modules.",
646
+ "icon": "i-lucide-package",
647
+ "color": "text-sky-500",
648
+ "bgColor": "bg-sky-500/10",
649
+ "barWidth": "15%",
650
+ "barColor": "bg-sky-500"
651
+ },
652
+ {
653
+ "label": "Small and portable output",
654
+ "value": "‹ 10",
655
+ "unit": "kB",
656
+ "description": "Standard server builds produce ultra-small output bundles.",
657
+ "icon": "i-lucide-file-output",
658
+ "color": "text-violet-500",
659
+ "bgColor": "bg-violet-500/10",
660
+ "barWidth": "10%",
661
+ "barColor": "bg-violet-500"
662
+ },
663
+ {
664
+ "label": "FAST builds",
665
+ "value": "‹ 1",
666
+ "unit": "sec",
667
+ "description": "Cold production builds complete in seconds, not minutes.",
668
+ "icon": "i-lucide-timer",
669
+ "color": "text-amber-500",
670
+ "bgColor": "bg-amber-500/10",
671
+ "barWidth": "12%",
672
+ "barColor": "bg-amber-500"
673
+ }
674
+ ],
675
+ "headline": "Assets",
676
+ "link": "/docs/assets",
677
+ "link-label": "Assets docs"
678
+ }
679
+ ]