-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25a76e7
commit 6ce141b
Showing
2 changed files
with
11 additions
and
12 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
functions-templates/typescript/scheduled-function/{{name}}.mts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { Config } from "@netlify/functions" | ||
|
||
export default async (req: Request) => { | ||
const { next_run } = await req.json() | ||
|
||
console.log("Received event! Next invocation at:", next_run) | ||
} | ||
|
||
export const config: Config = { | ||
schedule: "@hourly" | ||
} |
12 changes: 0 additions & 12 deletions
12
functions-templates/typescript/scheduled-function/{{name}}.ts
This file was deleted.
Oops, something went wrong.