Need only 2 websites base in Next JS with same frontend. -- 2
Budget: ₹1,500 – ₹12,500 INR
There will be 2 sites in Next JS
For eg:
- abc.in
-abc.it
You have to check in Next JS Middleware that what domain name you hit and from that you have to return API data. If someone hit "abc.in" from there browser then first it will check in middleware that which hostname had been hit. And after that it will return API. After that API JSON data that we return need to store in session of website and from there data should come. So you have to make just one component to show that data of site will come from JSON data which is stored in session.
OR
You have to check in Next JS Middleware that what domain name you hit and from that you have to return API data. If someone hit "abc.in" from there browser then first it will check in middleware that which hostname had been hit. And when we get hostname then from Middleware we have to take that hostname to one shared component then from there we have to check that if we hit specific hostname then API JSON data will be return. After that API JSON data that we return need to store in session of website and from there data should come. So you have to make just one component to show that data of site will come from JSON data which is stored in session.
You can use any of one approach.
For eg:
- abc.in
-abc.it
You have to check in Next JS Middleware that what domain name you hit and from that you have to return API data. If someone hit "abc.in" from there browser then first it will check in middleware that which hostname had been hit. And after that it will return API. After that API JSON data that we return need to store in session of website and from there data should come. So you have to make just one component to show that data of site will come from JSON data which is stored in session.
OR
You have to check in Next JS Middleware that what domain name you hit and from that you have to return API data. If someone hit "abc.in" from there browser then first it will check in middleware that which hostname had been hit. And when we get hostname then from Middleware we have to take that hostname to one shared component then from there we have to check that if we hit specific hostname then API JSON data will be return. After that API JSON data that we return need to store in session of website and from there data should come. So you have to make just one component to show that data of site will come from JSON data which is stored in session.
You can use any of one approach.