blob: da09e76948f349b4a532c2fc5644b28b9197bd65 (
plain)
1
2
3
4
5
6
7
8
9
|
// This Worker is used as a default when no Pages Functions are present.
// It proxies the request directly on to the asset server binding.
export default <ExportedHandler<{ ASSETS: Fetcher }>>{
async fetch(request, env, context) {
const response = await env.ASSETS.fetch(request.url, request);
return new Response(response.body, response);
},
};
|