I was trying to see if I can load it from a bucket
I was trying to see if I can load it from a bucket
run_worker_first = true to your configASSETS) and then call through to it: return env.ASSETS.fetch(request);


Total Upload: 31672.57 KiB / gzip: 10087.55 KiB
Worker Startup Time: 45 ms
No bindings found.
Uploaded ffmpeg-example (10.47 sec)
Deployed ffmpeg-example triggers (2.74 sec)⛅️ wrangler 4.16.1
-------------------
Total Upload: 31652.23 KiB / gzip: 10083.07 KiB
No bindings found.
▲ [WARNING] Here are the 3 largest dependencies included in your script:
- node_modules/@ffmpeg/core/dist/esm/ffmpeg-core.wasm - 31476.97 KiB
- node_modules/@ffmpeg/core/dist/esm/ffmpeg-core.js - 173.98 KiB
- src/index.ts - 1.01 KiB
If these are unnecessary, consider removing them
✘ [ERROR] A request to the Cloudflare API (/accounts/.../workers/scripts/workers-test/versions) failed.
Your Worker exceeded the size limit of 3 MiB. Please upgrade to a paid plan to
deploy Workers up to 10 MiB.
https://dash.cloudflare.com/.../workers/plans
[code: 10027]
To learn more about this error, visit:
https://developers.cloudflare.com/workers/platform/limits/#worker-size
If you think this is a bug, please open an issue at:
https://github.com/cloudflare/workers-sdk/issues/new/chooserun_worker_first = trueASSETSreturn env.ASSETS.fetch(request);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 });
}
}
};