Netlify
A platform for automating web project deployment
A platform for automating web project deployment
Netlify is an all-in-one hosting platform for JAMstack (JavaScript, APIs, Markup)-based websites and applications. It integrates with Git repositories so that automatic builds and deployments occur with just a push, and it provides fast content delivery through a global CDN.
Founded in 2015, Netlify led the popularization of the JAMstack architecture. It offers one-click integration with GitHub, GitLab, and Bitbucket, and instantly supports major frameworks such as React, Vue, Next.js, and Gatsby. Its free tier of 100GB of bandwidth and 300 build minutes per month makes it popular for personal projects and startups.
Netlify's core features include Netlify Functions (serverless functions), Edge Functions (edge computing), Forms (serverless form handling), Identity (authentication), and Split Testing (A/B testing). In particular, the Deploy Preview feature generates a unique URL for each PR, enabling a preview before code review.
In practice, Netlify is optimized for deploying marketing sites, documentation sites, portfolios, and SPAs (Single Page Applications). When used together with Netlify CMS, you can build a static site whose content can be edited even by non-developers.
# netlify.toml - Netlify 설정 파일
[build]
# 빌드 명령어
command = "npm run build"
# 배포할 디렉토리
publish = "dist"
# 함수 디렉토리
functions = "netlify/functions"
[build.environment]
NODE_VERSION = "18"
NPM_FLAGS = "--legacy-peer-deps"
# 프로덕션 환경 설정
[context.production]
command = "npm run build:prod"
# 브랜치별 설정
[context.staging]
command = "npm run build:staging"
# 리다이렉트 규칙
[[redirects]]
from = "/api/*"
to = "/.netlify/functions/:splat"
status = 200
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
# 헤더 설정
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
Content-Security-Policy = "default-src 'self'"
# 플러그인
[[plugins]]
package = "@netlify/plugin-lighthouse"
"I think we should deploy the landing page to Netlify. Just pushing to Git triggers automatic deployment, and each PR gets a Deploy Preview URL, so even the designers can check it right away. Even on the free tier, 100GB of bandwidth per month is enough."
"I used Netlify Functions to implement Contact Form handling and an external API proxy. We can call third-party APIs without CORS issues, and we managed API keys securely with environment variables. Cold Start was about 200ms, which was faster than AWS Lambda."
"Netlify specializes in static sites and JAMstack, while Vercel excels at integration with Next.js. Netlify is strong in built-in features like form handling and Identity, while Vercel is ahead in ISR and server components."
Take a mock interview on this topic → WIA SOOM AI Interview · Start for free
When using React Router or Vue Router, refreshing the page causes a 404. You need to add "/* /index.html 200" to the _redirects file or configure a redirect in netlify.toml.
If you exceed the free tier build limit (300 minutes per month), deployments are halted. Use the build cache and remove unnecessary dependencies. For large projects, consider Incremental Static Regeneration.
Version-control your build settings with netlify.toml, and set up a staging environment with Branch Deploy. Use Deploy Preview to improve the quality of PR reviews, and if a rollback is needed, switch immediately to a previous deployment from the dashboard.