Netlify Edge Functions
技能 已验证 活跃Netlify Edge Functions 的编写指南。适用于构建中间件、基于地理位置的逻辑、请求/响应操作、身份验证检查、A/B 测试或任何低延迟边缘计算。涵盖 Deno 运行时、context.next() 中间件模式、地理位置以及何时选择边缘计算与无服务器计算。
指导开发人员编写高效、低延迟的 Netlify Edge Functions,用于中间件、请求操作和基于地理位置的逻辑等任务。
功能
- Netlify Edge Functions 语法和结构
- Deno 运行时和模块支持
- 使用 context.next() 的中间件模式
- 地理位置和 IP 地址访问
- 通过 Netlify.env 进行环境变量管理
使用场景
- 为 Web 应用程序构建低延迟中间件
- 实现基于地理位置的路由或内容个性化
- 在边缘处理请求和响应头/正文
- 在请求到达源服务器之前处理身份验证检查
非目标
- 编写复杂、耗时的无服务器函数
- 管理 Deno 支持范围之外的 Node.js 依赖项
- 适合无服务器函数的、涉及大量数据库的操作
Trust
- info:Issues Attention开放问题:1(过去 90 天),已关闭问题:4(过去 90 天)。关闭率良好,但维护者的响应时间可能还有改进空间,尤其是在开放问题相对于关闭问题数量方面。
安装
请先添加 Marketplace
/plugin marketplace add netlify/context-and-tools/plugin install context-and-tools@netlify-context-and-tools质量评分
已验证类似扩展
Netlify Identity
100用于身份验证、用户注册、登录、密码恢复、OAuth 提供商、基于角色的访问控制或保护路由和函数。始终使用 `@netlify/identity`。切勿使用 `netlify-identity-widget` 或 `gotrue-js` — 它们已弃用。
Deepinit
100Deep codebase initialization with hierarchical AGENTS.md documentation
Cleanup Cycles
100Detect and untangle circular dependencies. Runs madge/skott (TS), pycycle (Py), or compiler-only checks (Go/Rust). Auto-fixes leaf-extractable cycles; reports core cycles for human review. Use when the user asks to find circular imports, fix dependency cycles, or untangle module graph. Example queries — "find circular imports", "fix dependency cycles", "untangle our module graph", "why is madge complaining".
Vue Router Best Practices
100Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions.
Sentry React Router Framework Sdk
100Full Sentry SDK setup for React Router Framework mode. Use when asked to "add Sentry to React Router Framework", "install @sentry/react-router", or configure error monitoring, tracing, profiling, session replay, logs, or user feedback for a React Router v7 framework app.
Create Spatial Visualization
100Create interactive maps, elevation profiles, and spatial visualizations from GPX tracks, waypoints, or route data using R (sf, leaflet, tmap) or Observable (D3, deck.gl). Covers data import, coordinate system handling, map styling, and export to HTML or image formats. Use when visualizing a planned or completed tour route on an interactive map, creating elevation profiles for hiking or cycling routes, overlaying waypoints and POIs on a basemap, or building a web-based trip dashboard.