A simple to-do app focused on tasks that can be completed within a specific time span.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

added nitro scheduled tasks

+20 -1
+9 -1
nuxt.config.ts
··· 53 53 { code: "de", name: "German", file: "de.json" }, 54 54 ], 55 55 defaultLocale: "en", 56 - }, 56 + }, 57 + nitro: { 58 + experimental: { 59 + tasks: true, 60 + }, 61 + scheduledTasks: { 62 + "* * * * *": ["notify:push"], 63 + }, 64 + }, 57 65 });
+11
server/tasks/notify/push.ts
··· 1 + export default defineTask({ 2 + async run(event) { 3 + console.log("Task running"); 4 + 5 + const result = { 6 + sent: 10, 7 + }; 8 + 9 + return { result }; 10 + }, 11 + });