Automate your tasks using Vercel cron jobs

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 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 Рік тому +1

    Crystal clear. Thanks Sir

  • @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!

  • @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?

  • @NaveenAnkem-p8j
    @NaveenAnkem-p8j Рік тому

    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  Рік тому

      @@NaveenAnkem-p8j 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

    • @NaveenAnkem-p8j
      @NaveenAnkem-p8j Рік тому

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

  • @raj080288
    @raj080288 Рік тому +1

    cron jobs slow down the server though

    • @hamedbahram
      @hamedbahram  Рік тому +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 Рік тому

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