Skip to content

Conversation

@hyjoong
Copy link
Owner

@hyjoong hyjoong commented Jan 2, 2025

๐Ÿ“– ์ž‘์—… ๋ฐฐ๊ฒฝ

Next.js 15 & React 19๋กœ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜

  • fetch ์š”์ฒญ์˜ ๊ธฐ๋ณธ ์บ์‹ฑ ์ •์ฑ… ๋ณ€๊ฒฝ
  • Dynamic APIs๊ฐ€ ๋น„๋™๊ธฐ๋กœ ๋ณ€๊ฒฝ
  • ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ ๊ด€๋ จ ๋ณ€๊ฒฝ์‚ฌํ•ญ ๋Œ€์‘
  • next.js: 14.2,0 -> 15.1.3
  • react: 18 -> 19

๐Ÿ“– ๊ตฌํ˜„ ๋‚ด์šฉ

๋ฉ”์ธ ํŽ˜์ด์ง€(/)

  • fetch ์š”์ฒญ์— ๋ช…์‹œ์  ์บ์‹ฑ ์„ค์ • ์ถ”๊ฐ€ (force-cache)

๋ธŒ๋žœ๋“œ ํŽ˜์ด์ง€(/brand/[id])

  • params ํƒ€์ž… Promise ๊ธฐ๋ฐ˜์œผ๋กœ ์ˆ˜์ •
  • generateMetadata์—์„œ ๋น„๋™๊ธฐ params ์ฒ˜๋ฆฌ ๋กœ์ง ์ถ”๊ฐ€
  • getBrandData fetch์— ์บ์‹ฑ ์„ค์ • ์ถ”๊ฐ€

์•„์ดํ…œ ๋ฆฌ์ŠคํŠธ ํŽ˜์ด์ง€(/itemlist/[id])

  • generateStaticParams์— ์บ์‹ฑ ์˜ต์…˜ ์ถ”๊ฐ€
  • params์™€ metadata ์ƒ์„ฑ ๋กœ์ง ๋น„๋™๊ธฐ ์ฒ˜๋ฆฌ๋กœ ์ˆ˜์ •

์•„์ดํ…œ ์ƒ์„ธ ํŽ˜์ด์ง€(item/[id])

  • no-store ์บ์‹ฑ ์œ ์ง€
  • params ํƒ€์ž…์„ Promise ๊ธฐ๋ฐ˜์œผ๋กœ ์ˆ˜์ •

Sentry ๊ด€๋ จ ํŒŒ์ผ ๋ฐ ์ฝ”๋“œ ์ œ๊ฑฐ

๐Ÿ’ก ์ฐธ๊ณ ์‚ฌํ•ญ

  • Next.js 15์—์„œ๋Š” fetch ์š”์ฒญ์ด ๊ธฐ๋ณธ์ ์œผ๋กœ ์บ์‹ฑ๋˜์ง€ ์•Š๋„๋ก ๋ณ€๊ฒฝ๋จ
  • params์™€ searchParams๊ฐ€ Promise ํƒ€์ž…์œผ๋กœ ๋ณ€๊ฒฝ๋จ

์ฐธ๊ณ  ๋ฌธ์„œ:

๐Ÿ–ผ๏ธ ์Šคํฌ๋ฆฐ์ƒท

@hyjoong hyjoong self-assigned this Jan 2, 2025
@vercel
Copy link
Contributor

vercel bot commented Jan 2, 2025

The latest updates on your projects. Learn more about Vercel for Git โ†—๏ธŽ

Name Status Preview Comments Updated (UTC)
ncnc โœ… Ready (Inspect) Visit Preview ๐Ÿ’ฌ Add feedback Jan 2, 2025 3:53pm

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review by ChatGPT

- experimental ์ œ๊ฑฐ
- sentry ๊ด€๋ จ ์ฝ”๋“œ ์ œ๊ฑฐ
@hyjoong hyjoong marked this pull request as ready for review January 2, 2025 16:02
@hyjoong hyjoong merged commit 858b096 into master Jan 2, 2025
4 checks passed
@hyjoong hyjoong deleted the feat-upgrade-react19-next15 branch January 2, 2025 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants