Skip to content

Commit

Permalink
i18n(ko-KR): update sst.mdx (#9477)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsparkdev authored Sep 25, 2024
1 parent dad0d33 commit 9c39f05
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions src/content/docs/ko/guides/deploy/sst.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,50 +6,46 @@ i18nReady: true
---
import { Steps } from '@astrojs/starlight/components';

SSG 및 SSR 지원을 통해 완전한 서버리스 애플리케이션을 AWS에 배포하기 위한 오픈 소스 프레임워크인 [SST](https://sst.dev)를 사용하여 Astro 사이트를 배포할 수 있습니다.
SSG 및 SSR을 지원하는 최신 풀스택 애플리케이션을 배포하기 위한 오픈 소스 프레임워크인 [SST](https://sst.dev)를 사용하여 AWS에 Astro 사이트를 배포할 수 있습니다.

타입 안전성을 유지하면서 Cron Jobs, Buckets, Queues 등과 같은 추가 SST 구성을 사용할 수도 있습니다.
타입 안전성을 유지하면서 Cron Jobs, Buckets, Queues 등과 같은 추가 SST 컴포넌트를 사용할 수도 있습니다.

## 빠른 시작

<Steps>
1. Astro 프로젝트를 생성합니다.

2. `npx create-sst`를 실행합니다.
2. `npx sst@latest init`를 실행합니다.

3. Astro를 사용하고 있음을 감지하고 확인을 요청해야 합니다.

4. 배포 준비가 완료되면 `npx sst deploy --stage=production`을 실행할 수 있습니다.
4. 배포 준비가 완료되면 `npx sst deploy --stage production`을 실행할 수 있습니다.
</Steps>

또한 단계를 안내하는 [이 프로세스를 안내하는 동영상](https://www.youtube.com/watch?v=AFP3ZHxO7Gg)시청하실 수도 있습니다.
단계별로 [SST를 사용하여 Astro를 AWS에 배포하는 튜토리얼](https://sst.dev/docs/start/aws/astro)읽어보실 수도 있습니다.

### SST 구성
### SST 컴포넌트

[추가 SST 구성](https://docs.sst.dev/) 사용하려면 `sst.config.ts` 파일에 추가하세요.
[추가 SST 컴포넌트](https://sst.dev/docs/) 사용하려면 `sst.config.ts` 파일에 추가하세요.

```ts {2} {4} title="sst.config.ts"
app.stack(function Site(ctx) {
const bucket = new Bucket(ctx.stack, "public");
const site = new AstroSite(ctx.stack, "site", {
bind: [bucket],
});

ctx.stack.addOutputs({
url: site.url,
});
const bucket = new sst.aws.Bucket("MyBucket", {
access: "public",
});
new sst.aws.Astro("MyWeb", {
link: [bucket],
});
```

그런 다음 `.astro` 파일에서 해당 항목에 액세스하세요.

```astro
---
import { Bucket } from "sst/node/bucket"
console.log(Bucket.public.bucketName)
import { Resource } from "sst"
console.log(Resource.MyBucket.name)
---
```

자세한 내용은 [리소스 바인딩에 대한 SST 문서](https://docs.sst.dev/resource-bind)를 참조하세요.
자세한 내용은 [리소스 연결에 관한 SST 문서](https://sst.dev/docs/linking)를 참조하세요.

궁금한 점이 있으시면 [SST Discord에서 질문](https://discord.gg/sst)하실 수 있습니다.

0 comments on commit 9c39f05

Please sign in to comment.