Closed tom-takeru closed 3 months ago
機能の詳細 ↓を使ってルーティングするようにリファクタリングする。 https://nextjs.org/docs/app/building-your-application/routing/dynamic-routes
理由 実装が綺麗になるから。
実装の方法 ↓を参照する。 https://nextjs.org/docs/app/building-your-application/routing/dynamic-routes
備考 なし
実装済み
動的ルーティングする場合は、page.tsxで以下を入れないとダメらしい
export const runtime = 'edge'
ローカルでは大丈夫だけど、デプロイ時にエラーになる
機能の詳細 ↓を使ってルーティングするようにリファクタリングする。 https://nextjs.org/docs/app/building-your-application/routing/dynamic-routes
理由 実装が綺麗になるから。
実装の方法 ↓を参照する。 https://nextjs.org/docs/app/building-your-application/routing/dynamic-routes
備考 なし