Running Nitro Tasks?
Hi,
I am looking for a way to seed my DB locally (NuxtHub SQLite, with Drizzle). I read about (experimental) Nitro Tasks (https://nitro.build/guide/tasks), which sound like a good fit.
Unfortunately, I didn't find a way to trigger Nitro tasks. Nitro tasks are not runnable via
I created my task in
When I try to run the task I get the following output:
Am I doing something wrong? Or is there a better way to seed my DB?
I am looking for a way to seed my DB locally (NuxtHub SQLite, with Drizzle). I read about (experimental) Nitro Tasks (https://nitro.build/guide/tasks), which sound like a good fit.
Unfortunately, I didn't find a way to trigger Nitro tasks. Nitro tasks are not runnable via
nuxi cli, just via nitro cli: npx nitro task run db:seed:test.I created my task in
server/tasks/db-seed-test.ts:When I try to run the task I get the following output:
Am I doing something wrong? Or is there a better way to seed my DB?
