chore: Migrate from next lint to eslint * Migrate scandic-web * Migrate partner-sas * Enable any rule in partner-sas Approved-by: Joakim Jäderberg Approved-by: Linus Flood
16 lines
443 B
TypeScript
16 lines
443 B
TypeScript
/* eslint-disable no-console */
|
|
import { performWarmup } from "./warmup-background.mjs"
|
|
|
|
import type { Config, Context } from "@netlify/functions"
|
|
|
|
async function WarmupHandler(_request: Request, context: Context) {
|
|
console.log("[WARMUP] Starting scheduled warmup")
|
|
await performWarmup(context)
|
|
console.log("[WARMUP] Scheduled warmup completed")
|
|
}
|
|
|
|
export default WarmupHandler
|
|
export const config: Config = {
|
|
schedule: "0 4 * * *",
|
|
}
|