oadster
oadster
TTCTheo's Typesafe Cult
Created by oadster on 7/10/2023 in #questions
How do you get query params in Next13, app router w/ route.ts file?
https://nextjs.org/docs/app/api-reference/file-conventions/route#parameters I am unsure of how you are meant to the get queryParams on the server site /api/route.ts file? I can find no mention of it? I am using the /app router and on the req: NextRequest parameter there is no req.query etc.
3 replies