From 7b6314f480d4f7a0932d6463e5341e21566a37c2 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Fri, 3 Oct 2025 11:52:01 +0200 Subject: Implement loading of unauthenticated radar GIS images --- src/worker.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/worker.ts (limited to 'src/worker.ts') diff --git a/src/worker.ts b/src/worker.ts new file mode 100644 index 0000000..e982634 --- /dev/null +++ b/src/worker.ts @@ -0,0 +1,18 @@ +import type { SSRManifest } from 'astro'; +import { App } from 'astro/app'; +import { handle } from '@astrojs/cloudflare/handler'; +import { handleSchedule } from './functions/scheduled'; + +export function createExports(manifest: SSRManifest) { + const app = new App(manifest); + return { + default: { + async fetch(request, env, ctx) { + return handle(manifest, app, request, env, ctx); + }, + async scheduled(controller, env, ctx) { + return await handleSchedule(controller, env, ctx); + } + } + }; +} -- cgit v1.3.1