run_worker_first = true to your configASSETS) and then call through to it: return env.ASSETS.fetch(request);


For now, this is only available for Workers that are deployed to a “root” hostname like “example.com” and not specific paths like “example.com/path/to/something.” We plan to introduce more optimizations in the future that can preload specific paths.
A Worker can have up to three Cron Triggers configured at once

export default {
fetch: async (
request: Request,
env: { JWT_SECRET: string }
): Promise<Response> => {
const token = request.headers.get("authorization");
if (!token) {
return new Response("unauthorized", { status: 401 });
}
try {
await validateJWT(token, env.JWT_SECRET);
return new Response(null, {
status: 404 // meant as success for cloudflare to serve assets
});
} catch {
return new Response("forbidden", { status: 403 });
}
}
};