#Pabal Web ํ…œํ”Œ๋ฆฟ

Pabal Web ์ •์  ์‚ฌ์ดํŠธ ํ…œํ”Œ๋ฆฟ ์‚ฌ์šฉ ์•ˆ๋‚ด.

#๊ฐœ์š”

  • Next.js 16 (App Router) ์ •์  ์‚ฌ์ดํŠธ
  • Node.js LTS 18+ ๋ฐ Yarn (yarn.lock ์‚ฌ์šฉ)
  • ์‚ฌ์šฉ์ž ๋…ธ์ถœ ๋ฐ์ดํ„ฐ๋Š” public/์— ์žˆ์œผ๋ฉฐ, ์•ฑ ์ฝ”๋“œ๋Š” ๊ฑด๋“œ๋ฆด ์ผ์ด ๊ฑฐ์˜ ์—†์Šต๋‹ˆ๋‹ค

#ํ…œํ”Œ๋ฆฟ ์‚ฌ์šฉ

  1. GitHub ์ €์žฅ์†Œ ํŽ˜์ด์ง€์—์„œ Use this template ํด๋ฆญ.
  2. ์ƒˆ ์ €์žฅ์†Œ ์ด๋ฆ„์„ ์ž…๋ ฅํ•˜๊ณ  ์ƒ์„ฑ.
  3. ์ƒ์„ฑ๋œ ์ €์žฅ์†Œ๋ฅผ ๋กœ์ปฌ๋กœ ํด๋ก .

#ํ”„๋กœ์ ํŠธ ์„ค์ •

  1. ์˜์กด์„ฑ ์„ค์น˜:

    yarn install
    
  2. .env.local.example์„ .env.local๋กœ ๋ณต์‚ฌํ•˜๊ณ  ๊ฐ’ ์„ค์ •:

    NEXT_PUBLIC_SITE_URL=http://localhost:3000
    GOOGLE_INDEXING_URL=https://labs.quartz.best
    NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION=YOUR_GOOGLE_SITE_VERIFICATION_CODE_HERE
    
  3. ์˜ˆ์ œ ์—์…‹ ๋ณต์‚ฌ:

    cp -r examples/public/* public/
    
    • public/products/[slug]/์—์„œ ์ œํ’ˆ ์—์…‹(์„ค์ •, ๋กœ์ผ€์ผ, ์Šคํฌ๋ฆฐ์ƒท, ์•„์ด์ฝ˜)์„ ์—…๋ฐ์ดํŠธํ•˜์„ธ์š”.
    • public/site/์—์„œ ๊ฐœ๋ฐœ์ž/์กฐ์ง ์ •๋ณด๋ฅผ ์—…๋ฐ์ดํŠธํ•˜์„ธ์š”.
    • web:og-generate ์Šคํฌ๋ฆฝํŠธ๊ฐ€ OG ์ด๋ฏธ์ง€๋ฅผ ์ž๋™ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.
  4. MCP ์„ค์ •(์„ ํƒ ์‚ฌํ•ญ์ด์ง€๋งŒ ๊ถŒ์žฅ):

    • Pabal MCP: Configure Credentials ๊ฐ€์ด๋“œ๋ฅผ ๋”ฐ๋ผ ์ธ์ฆ์„ ์„ค์ •ํ•˜๊ณ , ๊ธฐ์กด ์Šคํ† ์–ด ๋ฐ์ดํ„ฐ๊ฐ€ ์žˆ์œผ๋ฉด apps-init๋ฅผ ์‹คํ–‰ํ•˜์„ธ์š”.
    • Pabal Web MCP: init-project๋ฅผ ์‹คํ–‰ํ•ด ๊ณต๊ฐœ ๋ฐ์ดํ„ฐ๋ฅผ ์ž๋™ ์ƒ์„ฑํ•˜์„ธ์š”.

#๋นŒ๋“œ ๋ฐ ๋ฐฐํฌ

  • ์ •์  ๋นŒ๋“œ(out/):
    yarn build
    
  • ๋นŒ๋“œ ๊ฒฐ๊ณผ ๋กœ์ปฌ ๋ฏธ๋ฆฌ๋ณด๊ธฐ:
    yarn start
    
  • Vercel ๋ฐฐํฌ: yarn build ๊ฒฐ๊ณผ๊ฐ€ out/์ธ์ง€ ํ™•์ธํ•˜๊ณ  NEXT_PUBLIC_SITE_URL์„ ์„ค์ •ํ•˜์„ธ์š”. ์ธ๋ฑ์‹ฑ์ด ํ•„์š”ํ•˜๋ฉด GOOGLE_INDEXING_URL์„ ์ถ”๊ฐ€ํ•˜์„ธ์š”.
  • ๊ธฐํƒ€ ์ •์  ํ˜ธ์ŠคํŠธ(S3/CloudFront, Netlify ๋“ฑ): out/ ๋””๋ ‰ํ„ฐ๋ฆฌ๋ฅผ ์—…๋กœ๋“œํ•˜์„ธ์š”.
  • ๋ฐฐํฌ ํ›„ ๋ผ์šฐํŠธ ํ™•์ธ:
    • /{product}
    • /{product}/privacy-policy
    • /{product}/terms-of-use

#Google ์‚ฌ์ดํŠธ ์ธ์ฆ

  1. Google Search Console์—์„œ ์ธ์ฆ ์ฝ”๋“œ๋ฅผ ๋ฐœ๊ธ‰๋ฐ›์Šต๋‹ˆ๋‹ค.
  2. .env.local์— ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค:
    NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION=your_verification_code_here
    
  3. seo:index-google ์Šคํฌ๋ฆฝํŠธ๊ฐ€ ์ด ๊ฐ’์„ ์‚ฌ์šฉํ•ด URL์„ ์ œ์ถœํ•ฉ๋‹ˆ๋‹ค.

#ํ…œํ”Œ๋ฆฟ๊ณผ ๋™๊ธฐํ™”

  1. ํ…œํ”Œ๋ฆฟ ์ €์žฅ์†Œ๋ฅผ upstream์œผ๋กœ ์ถ”๊ฐ€(1ํšŒ):
    git remote add upstream https://github.com/quartz-labs-dev/pabal-web.git
    
  2. ์—…๋ฐ์ดํŠธ ๊ฐ€์ ธ์˜ค๊ธฐ:
    git fetch upstream
    
  3. ๋ณ‘ํ•ฉ ๋˜๋Š” ๋ฆฌ๋ฒ ์ด์Šค:
    git merge upstream/main --allow-unrelated-histories
    # ๋˜๋Š”
    git rebase upstream/main --allow-unrelated-histories
    
  4. origin์— ํ‘ธ์‹œ:
    git push origin main