1- import type { Handler , HandlerEvent , HandlerContext } from " @netlify/functions" ;
1+ import type { Handler , HandlerEvent , HandlerContext } from ' @netlify/functions'
22
33/**
44 * Netlify Background + Scheduled Function - Test scheduled function (10 seconds)
@@ -15,29 +15,29 @@ import type { Handler, HandlerEvent, HandlerContext } from "@netlify/functions";
1515 */
1616export const handler : Handler = async (
1717 event : HandlerEvent ,
18- context : HandlerContext
18+ context : HandlerContext ,
1919) => {
2020 console . log (
21- " [test-scheduled-minute] Test message - function executed at" ,
22- new Date ( ) . toISOString ( )
23- ) ;
21+ ' [test-scheduled-minute] Test message - function executed at' ,
22+ new Date ( ) . toISOString ( ) ,
23+ )
2424
2525 return {
2626 statusCode : 200 ,
2727 body : JSON . stringify ( {
2828 success : true ,
29- message : " Test scheduled function executed" ,
29+ message : ' Test scheduled function executed' ,
3030 timestamp : new Date ( ) . toISOString ( ) ,
3131 } ) ,
32- } ;
33- } ;
32+ }
33+ }
3434
3535/**
3636 * Netlify function configuration
3737 * - type: 'experimental-background' enables background execution (15 min timeout)
3838 * - schedule: Cron expression for scheduled execution (every 2 minutes)
3939 */
4040export const config = {
41- type : " experimental-background" as const ,
42- schedule : " * * * * *" , // Every 2 minutes (5-field cron)
43- } ;
41+ type : ' experimental-background' as const ,
42+ schedule : ' * * * * *' , // Every 2 minutes (5-field cron)
43+ }
0 commit comments