0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Next.js】動的ルーティング設定してみたv15.1.2【router】

Posted at

参考にしたドキュメント

概要

/hoge/[slug]のように複数のページを動的ルーティング設定したい。

結論

Next.js(v15.1.2)のディレクトリ構造やファイル構成を理解することで解決できた。

Next.jsの構成

src
└ app
  ├ page.tsx "/"
  └ hoge
    └ [slug]
      └ page.tsx "/hoge/[slug]"

まとめ

公式ドキュメントを参考に、ディレクトリ構造を理解することで開発がスムーズに進んだ。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?