Skip to content

Commit

Permalink
Add test edge function
Browse files Browse the repository at this point in the history
  • Loading branch information
igneosaur committed Jul 27, 2023
1 parent 6867876 commit 8fa24d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ public
src/gatsby-types.d.ts
.env.*
!.env.example
.netlify
8 changes: 8 additions & 0 deletions netlify/edge-functions/hello.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Context } from "https://edge.netlify.com";

export default (request: Request, context: Context) => {
console.log({ request, context });
return new Response("Hello world");
};

export const config = { path: "/test" };

0 comments on commit 8fa24d5

Please sign in to comment.