Gatsby 앱 배포하기
Gatsby has been a static-site generator from the start, and gatsby build has written to the same public folder for years. Nothing unusual here — build it, deploy it.
- 01
Build the site
Run "gatsby build" (or "npm run build", which calls the same thing). Gatsby pre-renders every page and writes optimized static output to "public".
- 02
Skip develop mode
"gatsby develop" starts a live-reloading dev server on its own port — it's not what produces deployable output. You want "build", not "develop".
- 03
배포하기
프로젝트 루트에서 "npx harvis deploy public"를 실행하세요. 첫 배포에는 설정도 로그인도 필요 없습니다 — 즉시 실제 URL을 받고, 준비가 되면 언제든 사이트를 무료 계정에 연결할 수 있는 비공개 소유권 등록 링크도 함께 받습니다.
Gatsby을(를) 명령어 하나로 배포하세요
프로젝트를 빌드한 다음 출력 폴더를 harvis에 넘기세요. 첫 배포에는 계정이 필요 없습니다 — 실제 링크와, 나중에 관리할 수 있는 비공개 소유권 등록 링크를 받게 됩니다.
gatsby build npx harvis deploy public
터미널 대신 파일을 드래그하는 게 편하신가요? 프로젝트를 빌드한 다음 출력 폴더를 여기에 드롭하면 같은 방식으로 공개됩니다.
Gatsby 배포 관련 질문
My Gatsby site pulls data from a CMS. Does that still work after deploying?
Yes, as long as the data fetching happens at build time through Gatsby's GraphQL data layer, which is the normal Gatsby pattern. The page is already fully rendered with that data baked in by the time gatsby build finishes — nothing needs to run at request time.
Do Gatsby's dynamic routes and client-only paths work?
Pages generated via createPages at build time work fine — they're plain files in public. Client-only routes (Reach Router matchPath) render in the browser after the shell loads, and harvis's fallback to your entrypoint HTML handles the direct-visit case.
Gatsby 앱을 harvis에 배포하는 게 정말 무료인가요?
네, 카드 등록도 필요 없습니다. 무료 제한은 사이트당 파일 500개, 50MB로, 정적 Gatsby 빌드라면 여유 있게 충분합니다. 공개된 사이트는 만료되지 않고 삭제하기 전까지 계속 유지됩니다.
배포한 Gatsby 사이트에 내 도메인을 쓸 수 있나요?
모든 사이트에는 무료 harvis.dev 주소가 부여되며, 소유권을 등록한 뒤 대시보드에서 원하는 서브도메인을 직접 고를 수 있습니다 — 임의의 이름 대신 my-app.harvis.dev처럼요. 이미 소유한 도메인(mystore.com 같은)을 사이트에 연결하는 기능은 아직 지원하지 않습니다.
Gatsby을(를) Vercel이나 Netlify에 배포하는 것과 무엇이 다른가요?
Vercel과 Netlify는 Git 저장소를 연결하고 자체 서버에서 빌드를 실행하며 대시보드로 설정하는 방식을 중심으로 만들어졌습니다. harvis는 이 과정을 전부 생략합니다: 로컬(또는 자체 CI)에서 빌드한 다음 출력 폴더에 대고 CLI 명령어 하나를 실행하면 링크를 받습니다 — 프로젝트 설정도 필요 없고, 사이트를 계속 유지하고 싶어질 때까지 계정도 필요 없습니다.
다른 것을 배포하시나요?
방법은 어디서나 동일합니다 — 빌드한 다음 출력 폴더를 npx harvis deploy하세요.