We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3db314 commit 7eb4479Copy full SHA for 7eb4479
src/functions-templates/typescript/log/{{name}}.ts
@@ -1,9 +1,9 @@
1
import type { Context } from "https://edge.netlify.com";
2
3
export default async (request: Request, context: Context) => {
4
- context.log("Hello from the logging service");
+ console.log(`There was a request from ${context.geo.city} to ${request.url}`);
5
6
return new Response("The request to this URL was logged", {
7
headers: { "content-type": "text/html" },
8
});
9
-};
+};
0 commit comments