Skip to content

About

Personal blog

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

자동 블로그 번역

한글(/content/blog/ko) 포스팅을 커밋하면 husky pre-commit 훅이 실행되어 OpenAI로 영어 번역본을 /content/blog/en에 자동 생성합니다. 같은 경로의 영문 파일이 이미 있으면 번역을 건너뛰고 기존 내용을 유지합니다.

설정

  1. .env.local (또는 .env)에 OPENAI_API_KEY 설정 (.env.example 참고)
  2. yarn install 후 yarn prepare (husky 초기화)

사용법

  • content/blog/ko/*.mdx 파일을 수정/추가 후 git commit
  • pre-commit에서 스테이징된 ko 파일 중 대응하는 영문 파일이 없는 경우에만 scripts/translate-post.ts로 en MDX 생성
  • 생성된 en 파일은 자동으로 git add 되어 해당 커밋에 포함

주의

  • 번역 품질은 GPT-4o에 의존하므로 생성 후 검토 권장
  • 코드 블록, 이미지 경로, MDX 컴포넌트는 보존됨
  • .env*는 .gitignore에 의해 무시됨
  • Node 20 환경에서는 lint-staged v13 사용

About

Personal blog

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages