Merged in feat/warmup-cache-function (pull request #1581)
Feat/warmup cache function * WIP * Fix warmup for all languages * Cleanup * Added env flag so we can disable warmup * Changed time to 04.00 UTC since backend updates their data at 03.00 UTC * Add return statements * Merge branch 'master' into feat/warmup-cache-function Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -17,7 +17,10 @@ export default async (request: Request, _context: Context) => {
|
||||
})
|
||||
} catch (error) {
|
||||
console.error(`Error syncing sitemap: ${error}`)
|
||||
return new Response("Failed to sync sitemap", { status: 500 })
|
||||
}
|
||||
|
||||
return new Response("Sitemap synced successfully", { status: 200 })
|
||||
}
|
||||
|
||||
export const config: Config = {
|
||||
|
||||
Reference in New Issue
Block a user