Skip to content

Commit 30d8ffc

Browse files
committed
feat: use context.geo
1 parent adeb0b8 commit 30d8ffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions-templates/typescript/log/{{name}}.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Context } from "https://edge.netlify.com";
22

33
export default async (request: Request, context: Context) => {
4-
console.log("Hello from the logging service");
4+
console.log(`There was a request from ${context.geo.city} to ${request.url}`);
55

66
return new Response("The request to this URL was logged", {
77
headers: { "content-type": "text/html" },

0 commit comments

Comments
 (0)