Skip to content

About

๐Ÿ˜ˆ Demon

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

DEMON TEAM

Build

pnpm install
pnpm dev
pnpm typecheck
pnpm build

๋‹ค๋ฅธ ํด๋” ๋˜๋Š” ๊ธฐ๊ธฐ์—์„œ ์‹คํ–‰ํ•˜๊ธฐ

node_modules์™€ .next๋Š” ๋ณต์‚ฌํ•˜์ง€ ๋ง๊ณ , ์†Œ์Šค์™€ pnpm-lock.yaml๋งŒ ์˜ฎ๊ธด ๋’ค ํ•ด๋‹น ํด๋”์—์„œ pnpm install --frozen-lockfile์„ ์‹คํ–‰ํ•˜์„ธ์š”. pnpm์˜ ํŒจํ‚ค์ง€ ์—ฐ๊ฒฐ ๊ตฌ์กฐ๋ฅผ ๋ณด์กดํ•˜์ง€ ์•Š๊ณ  node_modules๋ฅผ ๋ณต์‚ฌํ•˜๋ฉด TypeScript์˜ ํ”Œ๋žซํผ ํŒจํ‚ค์ง€๋ฅผ ์ฐพ์ง€ ๋ชปํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

GitHub Pages ๋ฐฐํฌ

.github/workflows/nextjs.yml์—์„œ main ๋ธŒ๋žœ์น˜์— pushํ•  ๋•Œ ์ž๋™์œผ๋กœ ๋นŒ๋“œยท๋ฐฐํฌํ•ฉ๋‹ˆ๋‹ค. Actions ํƒญ์˜ Run workflow๋กœ ์ˆ˜๋™ ์‹คํ–‰ํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.

  1. GitHub ์ €์žฅ์†Œ์˜ Settings โ†’ Pages โ†’ Build and deployment โ†’ Source๋ฅผ GitHub Actions๋กœ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.
  2. ์†Œ์Šค, pnpm-lock.yaml, ์›Œํฌํ”Œ๋กœ ํŒŒ์ผ์„ main ๋ธŒ๋žœ์น˜์— ์ปค๋ฐ‹ํ•˜๊ณ  pushํ•ฉ๋‹ˆ๋‹ค.
  3. 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' ์„ค์ •์„ ์œ ์ง€ํ•˜์„ธ์š”.

About

๐Ÿ˜ˆ Demon

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages