๐Ÿ“ป

nextjs-notion-starter-kit

Tags
Web
NextJS
ID matched
Created
Jul 15, 2023 03:12 AM
Last Updated
Last updated July 15, 2023
ย 
ย 
ย 

1. ๋…ธ์…˜ ํ…œํ”Œ๋ฆฟ ๋ณต์ œ

  • ๋ณต์ œํ•œ ํŽ˜์ด์ง€๋ฅผ ์›น์— ๊ฒŒ์‹œํ•œ๋‹ค
    • notion image
      notion image
  • notion.site/์™€ ?v= ์‚ฌ์ด์— ์žˆ๋Š” pageId๋ฅผ ๋ณต์ œํ•ด๋‘”๋‹ค
    • https://devskim.notion.site/Next-js-Notion-Starter-Kit-Template-e45884a6714d42c990b8623c78a006b2?pvs=4
ย 
ย 

2. ์ €์žฅ์†Œ ์„ค์ •

  • ๋‹ค์Œ์˜ ๋ช…๋ น์–ด๋กœ ์ €์žฅ์†Œ๋ฅผ ๋ฐ›๋Š”๋‹ค
    • git clone https://github.com/transitive-bullshit/nextjs-notion-starter-kit.git
  • site.config.ts์—์„œ rootNotionPageId๋ฅผ ์„ค์ •ํ•œ๋‹ค
    • import { siteConfig } from './lib/site-config' export default siteConfig({ // the site's root Notion page (required) rootNotionPageId: 'e45884a6714d42c990b8623c78a006b2', ... }
  • ํ•„์š”ํ•œ ๋…ธ๋“œ ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•œ๋‹ค
    • npm install --legacy-peer-deps
  • ํŒจํ‚ค์ง€๋ฅผ ์‹คํ–‰ํ•œ๋‹ค
    • npm run dev
ย 
ย 

3. ์›นํŽ˜์ด์ง€

  • ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๋ชจ์Šต์œผ๋กœ ๋…ธ์…˜ ํŽ˜์ด์ง€๊ฐ€ ๋ Œ๋”๋ง๋œ๋‹ค
    • notion image
      notion image
ย 
ย 
ย 

์ฐธ๊ณ