How can I handle "Subdomain"
Answered
Braconid wasp posted this in #help-forum
Braconid waspOP
I have a website that I need different UI according to audiences who visit my website. For example group A and B. I want different home page, about, authentication system, middleware and... for group A and different home page, about, authentication system, middleware and... for group B but I want them to be under one domain and brand. I just want separate them by subdomains like "example.gpB.com and example.gpA.com" but how can I do that with next js 15 ? any solution ?
Answered by joulev
the word you are looking for is 'multi tenancy', you can look it up and find plenty of examples for nextjs
2 Replies
@Braconid wasp I have a website that I need different UI according to audiences who visit my website. For example group A and B. I want different home page, about, authentication system, middleware and... for group A and different home page, about, authentication system, middleware and... for group B but I want them to be under one domain and brand. I just want separate them by subdomains like "example.gpB.com and example.gpA.com" but how can I do that with next js 15 ? any solution ?
the word you are looking for is 'multi tenancy', you can look it up and find plenty of examples for nextjs
Answer
@joulev the word you are looking for is 'multi tenancy', you can look it up and find plenty of examples for nextjs
Braconid waspOP
exactly what I wanted. thanks a lot