netlifylisted
Install: claude install-skill majiayu000/claude-skill-registry-data
# Netlify
The modern web development platform for deploying and hosting websites.
## Quick Start
**Install CLI:**
```bash
npm install -g netlify-cli
```
**Login:**
```bash
netlify login
```
**Deploy:**
```bash
netlify deploy
```
**Deploy to production:**
```bash
netlify deploy --prod
```
## Project Setup
### Connect Git Repository
1. Go to app.netlify.com
2. Add new site > Import from Git
3. Select repository
4. Configure build settings
5. Deploy
### Drag and Drop
Visit `https://app.netlify.com/drop` and drag your build folder.
### netlify.toml Configuration
```toml
[build]
command = "npm run build"
publish = "dist"
functions = "netlify/functions"
[build.environment]
NODE_VERSION = "18"
# Production context
[context.production]
command = "npm run build:prod"
# Preview context (branch deploys)
[context.deploy-preview]
command = "npm run build:preview"
# Branch-specific
[context.staging]
command = "npm run build:staging"
# Dev settings
[dev]
command = "npm run dev"
port = 3000
targetPort = 5173
# Headers
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
# Redirects
[[redirects]]
from = "/api/*"
to = "/.netlify/functions/:splat"
status = 200
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
```
## Environment Variables
### Setting Variables
**Via Dashboard:**
Site settings > Environment variables > Add variable
**Via CLI:**
```bash
netlify env:set MY_VAR