mirror of
https://github.com/imjasonh/terraform-playground
synced 2026-07-18 15:08:24 +00:00
add cloudflare worker example
Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
parent
201548b75a
commit
1e82289e81
3 changed files with 62 additions and 0 deletions
6
cf-worker/script.js
Normal file
6
cf-worker/script.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
addEventListener("fetch", (event) => {
|
||||
console.log("Hello from the service worker!");
|
||||
let value = KV.get("foo");
|
||||
event.respondWith(new Response(value,
|
||||
{ headers: { "content-type": "text/plain" } }));
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue