17 lines
292 B
TypeScript
17 lines
292 B
TypeScript
import type { Config, Context } from "https://edge.netlify.com";
|
|
|
|
export default async (request: Request, context: Context) => {
|
|
|
|
|
|
|
|
return new Response(context.ip, {
|
|
headers: { "content-type": "text/plain" },
|
|
});
|
|
};
|
|
|
|
export const config: Config = {
|
|
path: "/",
|
|
};
|
|
|
|
|
|
|