netlify: Get IP from runtime

This commit is contained in:
LittleChest 2025-08-13 08:34:33 +08:00
parent 51e35cc622
commit f16c3164fe

View File

@ -1,4 +1,4 @@
import handler from "../../common.js"; import handler from "../../common.js";
export default (request) => export default async (request) =>
handler(request, Netlify.env.get("DNS"), Netlify.env.get("API")); handler(request, Netlify.env.get("DNS"), Netlify.env.get("API"), Netlify.context.ip);
export const config = { path: "*" }; export const config = { path: "*" };