動的ルーティングを実装した際に404が出たのでこの記事を書く。
ディレクトリはこんな感じ。
http://localhost:3000/pages/lesson/1にアクセスすると画面が表示されるかと思ってたら表示されなかった。
http://localhost:3000/lesson/1で表示されるようになりました。
Nuxt3の仕様でフォルダー名(pages)は必要ないようです。
More than 1 year has passed since last update.
Nuxt3 動的ルーティングのURLについて
Last updated at Posted at 2022-10-22
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
20