I just upgraded from 12 to 13, and I'm having problems loading pages.
My structure is in the pages directory, and it's set up like this: (Image attached)
pages> edition > [edition_id] > round > [round_id] > question > [question_id].js
So http://localhost:3000/edition/4/round/1/question/3 would grab [edition_id] (4 in this case), [round_id] (1 in this case), etc., using this code:
import { useRouter } from "next/router";
const router = useRouter();
const { round_id } = router.query;
I had to change { useRouter } to come from "next/navigation" since it lives there now? but now my router.query doesn't work. help!