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