mirror of
https://github.com/JonasunderscoreJones/aka-worker.git
synced 2025-10-24 02:19:17 +02:00
Initial commit (by create-cloudflare CLI)
This commit is contained in:
parent
8cb86120f1
commit
fff961078a
1777 changed files with 1011798 additions and 0 deletions
9
cool-dawn-3d3b/node_modules/wrangler/templates/pages-shim.ts
generated
vendored
Normal file
9
cool-dawn-3d3b/node_modules/wrangler/templates/pages-shim.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,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);
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue