Getting started
A Nuxt module for simplifying the use of cron jobs in your project.
Installation
- Install
nuxt-cronto your dependencies.
bash
pnpm add nuxt-cron -Dbash
npm install nuxt-cron -Dbash
yarn add nuxt-cron -D- Add
nuxt-cronto themodulessection of yourconfigfile.
ts
// nuxt.config.ts
export default defineNuxtConfig({
modules: ['nuxt-cron']
})That's it! You can now use Cron in your Nuxt app ✨
Options
You can configure the module by adding a nuxt-cron section to your nuxt.config file. read more about cron options.
ts
// nuxt.config.ts
export default defineNuxtConfig({
cron: {
// Options
}
})