Output content to the logs from an Edge Function using console.log()
.
Edge Functions are files held in the netlify/edge-functions
directory.
import type { Context } from "@netlify/edge-functions";
export default async (request: Request, context: Context) => {
console.log("Hello from the logging service");
};
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.