Это видео недоступно.
Сожалеем об этом.
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
Very chill video style. Thanks for sharing
Hey Josh, thanks!
You have answered a lot of my questions on Vercel cron jobs. God bless you👍
Glad to help
Crystal clear. Thanks Sir
Glad it helped
If I have a "credits" filed in user database and I want to reset it everyday, I have to use cron jobs, right?
Absolutely
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
Thanks Ang! You can write any backend code in an api endpoint and hit it on a predefined schedule.
@@hamedbahramcool, thanks for clarifying!
i want to deploy multiple projects using single domain,using rewrite rules
That's cool! not sure how you would do it with Vercel cronjobs though!
@@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.
When did you cover this topic,it is very needfull for me, please do it as ASAP
@@hamedbahram when did you release multiple apps in single domain using rewrite rules
cron jobs slow down the server though
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.
@@hamedbahram either way, wouldn't that still impact the server as the cron jobs would be running numerous times