Skip to content

Commit 9c892ae

Browse files
committed
Add a sample icloudflare pages function
1 parent 2058b7a commit 9c892ae

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ pids
1313
*.seed
1414
*.pid.lock
1515

16+
# Wrangler
17+
.wrangler
18+
1619
# Astro build time artifacts
1720
.astro
1821

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// functions/api/hello-world.js
2+
3+
export async function onRequest(context) {
4+
return new Response("Hello, world!");
5+
}

0 commit comments

Comments
 (0)