Это видео недоступно.
Сожалеем об этом.

Automate your tasks using Vercel cron jobs

Поделиться
HTML-код
  • Опубликовано: 15 авг 2024
  • Learn how to easily schedule tasks and automate repetitive workflows in your NextJs app using Vercel cron jobs, allowing you to set up a task to call your API endpoint on a set schedule.
    👉🏼 The Ultimate NextJs Course
    🔗 www.hamedbahra...
    👉🏼 Vercel docs
    🔗 vercel.com/doc...
    CHAPTERS
    0:00 Intro
    0:30 Vercel documentation
    2:30 Creating a task
    3:20 Cron expressions
    6:30 How cron jobs work
    8:30 Limitations
    12:40 Adding a job to my site
    15:30 Sending an email using Sendgrid
    17:30 Adding vercel.json
    20:20 Deploying to Vercel
    22:00 Vercel Dashboard
    23:10 Outro

Комментарии • 20

  • @joshtriedcoding
    @joshtriedcoding Год назад +2

    Very chill video style. Thanks for sharing

  • @SundayAdegboye-tb7ny
    @SundayAdegboye-tb7ny Год назад +1

    You have answered a lot of my questions on Vercel cron jobs. God bless you👍

  • @canklc5772
    @canklc5772 11 месяцев назад +1

    Crystal clear. Thanks Sir

  • @yunyang6267
    @yunyang6267 Год назад

    If I have a "credits" filed in user database and I want to reset it everyday, I have to use cron jobs, right?

  • @angzar
    @angzar Год назад

    Hey, interesting video as always. I have a question, I have a node app that screenscrapes a website. Would it be possible to run that with a cronjob on Vercel? It doesn't have an endpoint. It starts processing when initiated with a 'npm run' . Thanks

    • @hamedbahram
      @hamedbahram  Год назад +1

      Thanks Ang! You can write any backend code in an api endpoint and hit it on a predefined schedule.

    • @angzar
      @angzar Год назад +1

      @@hamedbahramcool, thanks for clarifying!

  • @user-ib1hq3fs4k
    @user-ib1hq3fs4k Год назад

    i want to deploy multiple projects using single domain,using rewrite rules

    • @hamedbahram
      @hamedbahram  Год назад

      That's cool! not sure how you would do it with Vercel cronjobs though!

    • @hamedbahram
      @hamedbahram  Год назад

      @@user-ib1hq3fs4k Oh I see :)) yes you can use a `vercel.json` file to config your rewrites and deploy it as a stand alone project. That's an interesting topic! I may cover it in a future video.

    • @naveenankem2211
      @naveenankem2211 Год назад

      When did you cover this topic,it is very needfull for me, please do it as ASAP

    • @user-ib1hq3fs4k
      @user-ib1hq3fs4k Год назад

      @@hamedbahram when did you release multiple apps in single domain using rewrite rules

  • @raj080288
    @raj080288 11 месяцев назад +1

    cron jobs slow down the server though

    • @hamedbahram
      @hamedbahram  11 месяцев назад +1

      I don't think so, these are serverless functions that scale based on your applications need. But if you're concerned with performance, you can have a dedicated project that only runs your cron jobs.

    • @raj080288
      @raj080288 11 месяцев назад

      @@hamedbahram either way, wouldn't that still impact the server as the cron jobs would be running numerous times