2021-08-03から1日間の記事一覧
現在開いているページが Dynamic Route であるページが調べるにはどうすればよいでしょうか?それは単純にパスを調べるだけでわかります。 // pages/[name]/index.tsx import { isDynamicRoute } from "next/dist/next-server/lib/router/utils"; ... const …
現在開いているページが Dynamic Route であるページが調べるにはどうすればよいでしょうか?それは単純にパスを調べるだけでわかります。 // pages/[name]/index.tsx import { isDynamicRoute } from "next/dist/next-server/lib/router/utils"; ... const …