dynamic-routing Questions
4
How do we do dynamic routing with layouts in nextjs 13?
I have a directory in the new next pages app in which im trying to do dynamic routing: app/dashboard/[id].jsx, however it does not work with ...
Nape asked 25/11, 2022 at 9:44
5
Solved
I am using nextJS SSR in my project. Now when I try to use the following code to get page parameters then it shows undefined.
function About() {
const router = useRouter();
const { plan_id } = r...
Dryly asked 1/9, 2020 at 16:0
1
Solved
I'm currently in the process of migrating one of my react apps to NextJS and am struggling to fit my previous react-router architecture into the nextjs routing.
The page I'm building would look som...
Lagomorph asked 17/4, 2022 at 12:42
2
Solved
I want to be able to add new routes at runtime without restarting the server with NodeJS & ExpressJS. I made a similiar approach like in this article: https://alexanderzeitler.com/articles/expr...
Lithea asked 31/7, 2020 at 22:38
2
How can the Dynamic Sub domain routing feature be implementing in NextJS?
Example: If a user comes with username abc in site xyz then he can access his
site on abc.xyz.com
Also, if the user have ab...
Obligato asked 26/6, 2020 at 8:22
3
Solved
I had a static folder with an older version of nextjs. I updated my nextjs to use public folder.
"next": "^9.4.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
this is my nextjs config:
const ...
Banzai asked 18/5, 2020 at 8:57
2
Solved
I am building an LMS using Next.js. So far my project structure is localhost/courses/1. Every course will have 7 pages. Dashboard, Assignment, TestAndQuizzes, Gradebook, Resources, Announcements, a...
Dinothere asked 21/10, 2021 at 2:12
1
Solved
I'm trying to retrieve the url parameter without using query strings, for example, http://localhost:3000/test/1, this is what I have so far:
Dir structure
test
- [pageNumber].jsx
index.jsx
im...
Laresa asked 14/6, 2020 at 14:41
1
Solved
Update:
Which it causing this error because of [category_slug]-index.js that getServerSideProps?
I tried to do index.js under product folder, it works, mean it okies with [category_slug] which get...
Decoy asked 1/2, 2021 at 7:29
1
I am creating a Next.js blog that uses an API created with KeystoneJS. I am extremely confused by how I can get an individual post on a dynamic route from the post's slug.
The Query
This is how I t...
Bowline asked 21/1, 2021 at 14:38
1
I used ComponentFactoryResolver to access all the entry component factories and then add routes of those components dynamically in Angular 7.
constructor(private componentFactoryResolver: Componen...
Oilskin asked 10/5, 2020 at 5:49
2
I'm reading about static vs dynamic routing in React Router, and I'm struggling to identify the advantages of the latter (and why v4 chose to go with it). I can see the advantage of listing out all...
Pierian asked 15/2, 2018 at 22:24
1
According to this official example, we have the ability to add nested/children routes in vuejs. But I cannot find any help/docs around a way to add these children routes dynamically. e.g only add c...
Malamud asked 16/2, 2018 at 17:41
1
© 2022 - 2024 — McMap. All rights reserved.