T
TanStack8mo ago
inland-turquoise

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
national-gold8mo ago
Yes I tried it and it doesn't work. I'm pretty sure I posted it in this channel.
flat-fuchsia
flat-fuchsia8mo ago
It is not. Likely will work after vinxi is removed.
eastern-cyan
eastern-cyan8mo ago
Is there a date where vinxi will not be part anymore of the Start?
sensitive-blue
sensitive-blue8mo 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
conscious-sapphire3mo ago
Any news?
national-gold
national-gold3mo ago
Seems like Nitro is also being axed (not confirmed) so no news.
continuing-cyan
continuing-cyan3mo ago
It's not axed just a bit more of an implementation detail I think
sensitive-blue
sensitive-blue3mo 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
conscious-sapphire3mo ago
Is it possible to define tasks/cron (in a native way) now with the migration off Vinxi?
national-gold
national-gold3mo ago
Search for Vite Cron. Maybe there are plugins
conscious-sapphire
conscious-sapphire3mo ago
I already built one, but just wanted to know if there is something native with Tanstack
national-gold
national-gold3mo ago
There isn't

Did you find this page helpful?