Join the waitlist

The easiest way to schedule tasks in Next.js

Create cron jobs easily in Next.js. Get started for free.

Serverless Scheduling

No server? No problem.

Most queueing solutions require deploying a separate application. Slater works with your Next.js app out of the box on Vercel.

pages/api/slater/[...slater].js

import { slater } from "@slaterjs/next";
const config = {
queues: [
{
name: "helloWorld",
schedule: "0 7 * * *", // 7AM
handler: async (event, success, failure) => {
try {
const results = await fetch(
"https://jsonplaceholder.typicode.com/posts/1"
);
const data = await results.json();
if (results.ok) {
return success(data);
} else {
return failure(data);
}
} catch (err) {
return failure(err); // sends 500
}
},
},
],
};
export default slater(config);

Ready to get started?

Create your first cron job in Next.js.