netlify avatar

Netlify Config

This is your complete netlify.toml reference for when you're configuring Netlify sites. It covers the whole syntax: build settings, redirects with splats and conditions, headers, deploy contexts, environment variables, functions and edge functions config. The redirect section is especially thorough, showing you how to handle SPAs, proxying, country-based routing, and the force flag. One thing to remember: rule order matters since Netlify uses the first match, so put specific redirects before your catch-all. It also reminds you not to commit secrets in the toml file, which is easy to forget when you're moving fast.

skills.sh installs
3.6K
GitHub stars
51
last updated
Aug 21, 2026

Install

$ npx -y skills add netlify/context-and-tools --skill netlify-config --agent claude-code

Installs into .claude/skills of the current project.

Files

Netlify configuration

Config lives in three files at the repo root (or the base/package directory for monorepos):

  • netlify.toml: build, contexts, plugins, functions, redirects, headers, dev.
  • _redirects: plain-text redirect/rewrite rules, saved to the publish directory, no extension.
  • _headers: plain-text response headers, saved to the publish directory.

netlify.toml values take precedence over the Netlify UI when they conflict. Paths in netlify.toml are absolute relative to the base directory (root / by default).

Sponsors

Details

Repository
github.com/netlify/context-and-tools
Categories
Backend & APIs, DevOps & CI/CD, Release Management, Cloud & Infrastructure, CLI & Terminal
First seen
Jun 3, 2026

More from netlify/context-and-tools

All 14
1forcedotcom avatarimplementing-ui-bundle-file-uploadforcedotcom/sf-skillsMUST activate when the project contains a uiBundles/*/src/ directory and the task involves uploading, attaching, or dropping files. Use this skill when adding f3.5Kskills.sh installs
2openai avatarhatch-petopenai/skillsCreate, repair, validate, visually QA, and package Codex-compatible animated pets and pet spritesheets from character art, generated images, company or prospect3.5Kskills.sh installs
3chromedevtools avatartroubleshootingchromedevtools/chrome-devtools-mcpUses Chrome DevTools MCP and documentation to troubleshoot connection and target issues. Trigger this skill when list_pages, new_page, or navigate_page fail, or3.5Kskills.sh installs
4tradermonty avatarsignal-postmortemtradermonty/claude-trading-skillsRecord and analyze post-trade outcomes for signals generated by edge pipeline and other skills. Track false positives, missed opportunities, and regime mismatch3.5Kskills.sh installs
5agents365-ai avatarsemanticscholar-skillagents365-ai/365-skillsUse when searching academic papers, looking up citations, finding authors, or getting paper recommendations using the Semantic Scholar API. Triggers on queries 3.5Kskills.sh installs
6openai avatarchatgpt-appsopenai/skillsBuild, scaffold, refactor, and troubleshoot ChatGPT Apps SDK applications that combine an MCP server and widget UI. Use when Codex needs to design tools, regist3.5Kskills.sh installs