Nitro tasks in tanstack start?
Did anyone investigate wether this is even possible with vinxi?
https://nitro.build/guide/tasks
https://github.com/nitrojs/nitro/issues/1974
Tasks - Nitro
Nitro tasks allow on-off operations in runtime.
GitHub
Nitro Tasks API · Issue #1974 · nitrojs/nitro
Nitro tasks allow on-off operations in runtime. Docs: https://nitro.unjs.io/guide/tasks Initial Implementation (#1929) Write documentation section (PR welcome!) Stabilize API / return values Integr...
12 Replies
national-gold•8mo ago
Yes I tried it and it doesn't work. I'm pretty sure I posted it in this channel.
flat-fuchsia•8mo ago
It is not. Likely will work after vinxi is removed.
eastern-cyan•8mo ago
Is there a date where vinxi will not be part anymore of the Start?
sensitive-blue•8mo ago
Tanner mentioned they're migrating off vinxi, as it gives more flexibility, but I'm not aware of the timeline for it
conscious-sapphire•3mo ago
Any news?
national-gold•3mo ago
Seems like Nitro is also being axed (not confirmed) so no news.
continuing-cyan•3mo ago
It's not axed just a bit more of an implementation detail I think
sensitive-blue•3mo ago
There's currently no way to define a task as the nitro import types are no longer generated. Otherwise it may be possible for them to be defined in a seperate nitro.config.ts with the path of the task handler
conscious-sapphire•3mo ago
Is it possible to define tasks/cron (in a native way) now with the migration off Vinxi?
national-gold•3mo ago
Search for Vite Cron. Maybe there are plugins
conscious-sapphire•3mo ago
I already built one, but just wanted to know if there is something native with Tanstack
national-gold•3mo ago
There isn't