Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.12 KB

README.md

File metadata and controls

30 lines (18 loc) · 1.12 KB

Netlify examples

Logging with Netlify Edge Functions

Output content to the logs from an Edge Function using console.log().

Code example

Edge Functions are files held in the netlify/edge-functions directory.

import type { Context } from "https://edge.netlify.com";

export default async (request: Request, context: Context) => {
  console.log("Hello from the logging service");
};

View this example on the web

Deploy to Netlify

You can deploy this and all the other examples in this repo as a site of your own to explore and experiment with, by clicking this button.

Deploy to Netlify