nitro
nitro copied to clipboard
Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
### Environment latest stackblitz ### Reproduction https://stackblitz.com/edit/github-cwdzfl-mboy5z ### Describe the bug Everything else is resolved relative to `srcDir` but we need to add this to any auto-imports directories explicitly. It's...
### Environment ``` export default defineCachedEventHandler(async () => { await new Promise(resolve => setTimeout(resolve, 1000)) return `Response generated at ${new Date().toISOString()} (took 1 second)` }) // here to pass to...
### 🔗 Linked issue * https://github.com/nuxt-modules/i18n/issues/2835 * Related https://github.com/unjs/nitro/pull/2229 * Related https://github.com/unjs/nitro/pull/2239 ### ❓ Type of change - [ ] 📖 Documentation (updates to the documentation, readme, or JSdoc annotations)...
### 🔗 Linked issue Blocks https://github.com/nuxt/image/pull/1287 ### ❓ Type of change - [ ] 📖 Documentation (updates to the documentation, readme, or JSdoc annotations) - [ ] 🐞 Bug fix...
### Environment Operating System: Linux Node Version: v18.18.0 CLI Version: 3.10.1 Nitro Version: 2.9.1 Package Manager: [email protected] ### Reproduction https://stackblitz.com/edit/github-zyt6se?file=routes%2Ffoo.ts,api%2Ffoo.ts,public%2Findex.html ### Describe the bug Check the response for `/api/foo` and...
Nitro tasks allow on-off operations in runtime. Docs: https://nitro.unjs.io/guide/tasks ```[tasklist] ### Tasks - [x] Initial Implementation (#1929) - [x] Write documentation section (PR welcome!) - [x] Stabilize API / return...
Initial PR: https://github.com/unjs/nitro/pull/2170 Relavant docs: - https://h3.unjs.io/guide/websocket - https://crossws.unjs.io # Platform support - [ ] Dev server - [x] Runtime handlers - [ ] Dev handlers - [x] `bun` -...
### Environment Node 20+ Nitro 2.7.2 ### Reproduction [StackBlitz](https://stackblitz.com/edit/github-1qa4zg?file=routes%2Findex.ts) `npm run dev` returns `Buffer` `npm run build && npm run preview` returns `string` ### Describe the bug Getting the raw...
### 🔗 Linked issue #1849 ### ❓ Type of change - [ ] 📖 Documentation (updates to the documentation, readme, or JSdoc annotations) - [ ] 🐞 Bug fix (a...
### Environment [email protected] [email protected] ### Reproduction 1. Build nitro 2. Check /dist/runtime folder ### Describe the bug In `package.json` there are exports defined for the `runtime` folder: ```json "./runtime/*": {...