netlify

📁 g1joshi/agent-skills 📅 3 days ago
1
总安装量
1
周安装量
#48826
全站排名
安装命令
npx skills add https://github.com/g1joshi/agent-skills --skill netlify

Agent 安装分布

mcpjam 1
claude-code 1
replit 1
junie 1
zencoder 1

Skill 文档

Netlify

Netlify pioneered the Jamstack. In 2025, it focuses on “Platform Primitives” – giving frameworks low-level control over caching, image optimization, and routing.

When to Use

  • Static Sites: Gatsby, Hugo, Astro. Best-in-class CDN.
  • Framework Agnostic: Great support for Remix, Nuxt, SvelteKit, not just Next.js.
  • Netlify Create: Visual editor integration for CMS-driven sites.

Quick Start

npm i -g netlify-cli

# Run local dev environment (simulates Lambda/Edge)
netlify dev

# Deploy
netlify deploy --prod

Core Concepts

Deploy Previews

Every Pull Request gets a URL. It stays alive forever (immutable).

Netlify Drawer

Collaboration tool overlay on preview builds.

Edge Functions (Deno)

Run logic at the edge using Deno. Good for A/B testing, Geolocation, Auth middleware.

Best Practices (2025)

Do:

  • Use netlify.toml: configure redirects, headers, and build settings as code.
  • Use Netlify Image CDN: Automatic format optimization (AVIF/WebP).
  • Use Blob Storage: For large assets / user uploads.

Don’t:

  • Don’t hardcode redirects in JS: Use _headers or _redirects files for CDN-level performance.

References