pnpm install
pnpm devpnpm typecheck
pnpm buildnode_modules์ .next๋ ๋ณต์ฌํ์ง ๋ง๊ณ , ์์ค์ pnpm-lock.yaml๋ง ์ฎ๊ธด ๋ค ํด๋น ํด๋์์ pnpm install --frozen-lockfile์ ์คํํ์ธ์. pnpm์ ํจํค์ง ์ฐ๊ฒฐ ๊ตฌ์กฐ๋ฅผ ๋ณด์กดํ์ง ์๊ณ node_modules๋ฅผ ๋ณต์ฌํ๋ฉด TypeScript์ ํ๋ซํผ ํจํค์ง๋ฅผ ์ฐพ์ง ๋ชปํ ์ ์์ต๋๋ค.
.github/workflows/nextjs.yml์์ main ๋ธ๋์น์ pushํ ๋ ์๋์ผ๋ก ๋น๋ยท๋ฐฐํฌํฉ๋๋ค. Actions ํญ์ Run workflow๋ก ์๋ ์คํํ ์๋ ์์ต๋๋ค.
- GitHub ์ ์ฅ์์ Settings โ Pages โ Build and deployment โ Source๋ฅผ GitHub Actions๋ก ์ ํํฉ๋๋ค.
- ์์ค,
pnpm-lock.yaml, ์ํฌํ๋ก ํ์ผ์main๋ธ๋์น์ ์ปค๋ฐํ๊ณ pushํฉ๋๋ค. - Actions โ Deploy DEMON to GitHub Pages์์ ๋น๋ ๋ฐ ๋ฐฐํฌ ๊ฒฐ๊ณผ๋ฅผ ํ์ธํฉ๋๋ค.
Node.js 24์ package.json์ ์ง์ ๋ pnpm ๋ฒ์ ์ผ๋ก ์์กด์ฑ์ ์ค์นํ๊ณ , pnpm build๊ฐ ์์ฑํ out/์ GitHub Pages์ ๋ฐฐํฌํฉ๋๋ค. ๋ณ๋ PAT๋ ์ง์ ๋ฑ๋กํ๋ ๋ฐฐํฌ ์ํฌ๋ฆฟ์ ํ์ํ์ง ์์ต๋๋ค.
ํ์ฌ ์ ์ฅ์๋ Demon-KR/Demon-KR.github.io์ด๋ฏ๋ก ๊ธฐ๋ณธ ์ฃผ์๋ https://demon-kr.github.io/์
๋๋ค. next.config.ts์ output: 'export' ์ค์ ์ ์ ์งํ์ธ์.