You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to run a scheduled function using Netlify's Scheduled Next JS API Routes. While it appears that Netlify is calling the function on schedule, the code inside of it is not being ran.
I added a typescript file in the pages/api that runs a build hook every hour:
After deploying, Netlify properly identifies it as a scheduled function and tries to run it once an hour:
The problem is that nothing happens. It looks like Netlify is calling the build function in the logs above, but it seems like the script isn't running.
When I manually trigger the API route locally, the code properly executes.
Steps to reproduce
Create a scheduled Next JS API route according to this article
Push to production
Verify that the code inside the function does not run
Describe the bug
I'm attempting to run a scheduled function using Netlify's Scheduled Next JS API Routes. While it appears that Netlify is calling the function on schedule, the code inside of it is not being ran.
I added a typescript file in the
pages/api
that runs a build hook every hour:After deploying, Netlify properly identifies it as a scheduled function and tries to run it once an hour:
The problem is that nothing happens. It looks like Netlify is calling the build function in the logs above, but it seems like the script isn't running.
When I manually trigger the API route locally, the code properly executes.
Steps to reproduce
Configuration
No response
Environment
The text was updated successfully, but these errors were encountered: