랜딩은 ssr:false + prerender 인 SSG 라 정적 산출물만 서빙하면 된다. 프레임워크 자동 감지에 맡기면 React Router 를 SSR 로 잡을 수 있어 framework:null 로 명시하고, outputDirectory 를 build/client 로 고정한다. SPA 리라이트는 Dockerfile.prod 의 nginx try_files 와 동등하게 맞췄다. .vercel 은 gitignore. 프로젝트·조직 ID 가 들어가는 로컬 링크 파일이다. 배포 메모: - 저장소가 Gitea 라 Vercel Git 연동(푸시 시 자동 배포)은 안 된다. CLI 수동 배포. - 새 프로젝트의 첫 배포는 --prod 없이도 production 으로 승격되니, preview 를 원하면 --target=preview 를 명시할 것. - preview 배포는 Vercel 이 x-robots-tag: noindex 를 자동으로 붙인다. 색인 차단 목적으로 public/robots.txt 를 건드리지 말 것 — 출시 때 되돌리는 걸 잊는다. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
8 lines
219 B
JSON
8 lines
219 B
JSON
{
|
|
"$schema": "https://openapi.vercel.sh/vercel.json",
|
|
"framework": null,
|
|
"buildCommand": "npm run build",
|
|
"outputDirectory": "build/client",
|
|
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
|
|
}
|