Guides deploying web frameworks (Vite/React, Astro, TanStack Start, Next.js, Nuxt, SvelteKit, Remix) on Netlify. Covers adapter/plugin setup, SSR handling, environment variables, and troubleshooting framework-specific integration issues.
Ships in netlify. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Netlify supports any framework that produces static output. For frameworks with server-side capabilities (SSR, API routes, middleware), an adapter or plugin translates the framework's server-side code into Netlify Functions and Edge Functions automatically.
During build, the framework adapter writes files to .netlify/v1/ — functions, edge functions, redirects, and configuration. Netlify reads these to deploy the site. You do not need to write Netlify Functions manually when using a framework adapter for server-side features.
Check these files to determine the framework:
| File | Framework |
|---|---|
astro.config.* | Astro |
next.config.* | Next.js |
nuxt.config.* | Nuxt |
vite.config.* + react-router | Vite + React (SPA or Remix) |
app.config.* + @tanstack/react-start | TanStack Start |
svelte.config.* | SvelteKit |
Each framework has specific adapter/plugin requirements and local dev patterns:
For single-page apps with client-side routing, add a catch-all redirect:
# netlify.toml
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
404.html in your publish directory. Netlify serves it automatically for unmatched routes.Each framework exposes environment variables to client-side code differently:
| Framework | Client prefix | Access pattern |
|---|---|---|
| Vite / React | VITE_ | import.meta.env.VITE_VAR |
| Astro | PUBLIC_ | import.meta.env.PUBLIC_VAR |
| Next.js | NEXT_PUBLIC_ | process.env.NEXT_PUBLIC_VAR |
| Nuxt | NUXT_PUBLIC_ | useRuntimeConfig().public.var |
Server-side code in all frameworks can access variables via process.env.VAR or Netlify.env.get("VAR").
LICENSE.txt (opens in a new tab)agents/openai.yaml (opens in a new tab)assets/netlify-small.svg (opens in a new tab)assets/netlify.png (opens in a new tab)references/astro.md (opens in a new tab)references/nextjs.md (opens in a new tab)references/tanstack.md (opens in a new tab)references/vite.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/netlify:netlify-frameworksfrom netlify
npx claudepluginhub kael-odin/codex-plugins-zh --plugin netlify12 skills in this plugin
/netlify-ai-gateway使用 Netlify AI Gateway 接入 AI 模型的指南。在添加 AI 功能或选择/更换 AI 模型时使用;选型前必须先阅读本技能。涵盖支持的提供商(OpenAI、Anthropic、Google)、SDK 设置、环境变量和可用模型列表。/netlify-blobs使用 Netlify Blobs 对象存储的指南。在不需要完整数据库的情况下存储文件、图片、文档或简单键值数据时使用。涵盖 `getStore()`、CRUD 操作、元数据、列表查询、部署作用域与站点作用域存储,以及本地开发。/netlify-caching控制 Netlify CDN 缓存的指南。在配置缓存头、设置 stale-while-revalidate、实现按需缓存清除,或了解 Netlify CDN 缓存行为时使用。涵盖 `Cache-Control`、`Netlify-CDN-Cache-Control`、缓存标签、持久缓存和框架专属缓存模式。/netlify-cli-and-deploy使用 Netlify CLI 和部署站点的指南。在安装 CLI、关联站点、部署(基于 Git 或手动)、管理环境变量或运行本地开发时使用。涵盖 `netlify dev`、`netlify deploy`、Git 与非 Git 工作流,以及环境变量管理。/netlify-confignetlify.toml 配置参考。在配置构建设置、重定向、重写、响应头、部署上下文、环境变量或任何站点级配置时使用。涵盖完整的 netlify.toml 语法,包括带通配符/条件的重定向、响应头、部署上下文、Functions 配置和 Edge Functions 配置。/netlify-deploy使用 Netlify CLI 将项目部署到 Netlify。当用户需要关联仓库、验证部署设置、执行部署,或在预览和生产流程之间选择时使用。Other plugins' skills for the same job