









You can now import the TypeScript types for the Edge Functions API from the @netlify/edge-functions specifier, which is available both in Deno and in Node.js. import { Config, Context } from "@netlify/edge-functions" export default async (req: Request, context: Context) => { if (context.cookies.get("chocolate")) { return new Response("Sorry, no more cookies for you.") } context.cookies.set("chocolate", "yummy") return new Response("Here's a chocolate cookie! 🍪") } export const c...
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。