Pooya Parsa
Pooya Parsa
Simply like this https://stackblitz.com/edit/github-lku74j?file=server%2Froutes%2Findex.ts And you can either render it directly or connect with an eventsource client. you can also use `useNitroApp().hooks` to use global hooks but i guess for...
@leogargioni do you mind making a recent repro? What is latest issue/error you get?
Hi. This is a Vite feature but we might be able to replicate it with a rollup plugin 👍🏼 --- Side-note: As for laziness, please strictly consider to avoid any...
@tschni it is likely we will support it only with nitro v3 via vite bundler. In the meantime, i think an unplugin like the one @sxzz made [unplugin-glob](https://github.com/sxzz/unplugin-glob) should make...
https://github.com/nitrojs/nitro/pull/2783 adds `maxAge` to the underlying storage backend. I think next steps to increase support (and also to the passive mode for unsupported ones) goes to the storage side.
I have created a better sandbox to show Nitro behavior: https://stackblitz.com/edit/github-mdtiap?file=server%2Froutes%2Fapi%2Ftest.post.ts (update: you need to run it locally and use `curl -v -X POST http://localhost:3000/api/test`. stackblitz won't work) Nitro actually...
@ArcherScript Preflight request is _not_ GET, it is OPTIONS. I suggest you read MDN docs about [Preflight request](https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request) and [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS) mechanism first. Adding `server/api/test.ts` adds an event handler that handles...
Surely feel free to contribute to h3 docs if you could successfully use it 🙏🏼 [jsdocs is here](https://github.com/unjs/h3/blob/main/src/utils/cors.ts#L89). Mind you, nitro route rules cors handler does _not_ use h3 utility...
@MickL please locally run my reproduction from https://github.com/unjs/nitro/issues/2340#issuecomment-2308264327. Route rules **always** apply regardless of the incoming request method or if even there is a matching router handler or not. route...