From 4e87195739f2a5d9a05451b48773c8afdc680765 Mon Sep 17 00:00:00 2001 From: akiyamn Date: Sun, 24 Sep 2023 23:22:21 +1000 Subject: Initial commit (by create-cloudflare CLI) --- node_modules/wrangler/templates/pages-shim.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 node_modules/wrangler/templates/pages-shim.ts (limited to 'node_modules/wrangler/templates/pages-shim.ts') diff --git a/node_modules/wrangler/templates/pages-shim.ts b/node_modules/wrangler/templates/pages-shim.ts new file mode 100644 index 0000000..da09e76 --- /dev/null +++ b/node_modules/wrangler/templates/pages-shim.ts @@ -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 >{ + async fetch(request, env, context) { + const response = await env.ASSETS.fetch(request.url, request); + return new Response(response.body, response); + }, +}; -- cgit v1.2.3