Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 976 Bytes

surge.mdx

File metadata and controls

33 lines (24 loc) · 976 Bytes
title description type i18nReady
Astro 사이트를 Surge에 배포하세요
surge.sh를 사용하여 Astro 사이트를 웹에 배포하는 방법
deploy
true

import { Steps } from '@astrojs/starlight/components';

프런트엔드 개발자를 위해 설계된 단일 명령 웹 게시 플랫폼인 Surge에 Astro 프로젝트를 배포할 수 있습니다.

배포 방법

1. [Surge CLI](https://www.npmjs.com/package/surge)를 아직 설치하지 않았다면 터미널에서 전역으로 설치하세요.
```shell
npm install -g surge
```
  1. 프로젝트의 루트 디렉터리에서 Astro 사이트를 빌드하세요.

    npm run build
  2. CLI를 사용하여 Surge에 배포하세요.

    surge dist

    surge dist yourdomain.com을 실행하여 배포할 때 맞춤 도메인을 사용할 수 있습니다.