I have a nextjs project with a :client param which represents a client, like this:
domain.com/:client
And I have multiple clients... so I need to do this rewrite:
:client.domain.com -> domain.com/:client
For example for clients:
- google.domain.com -> domain.com/google
- netflix.domain.com -> domain.com/netflix
...
Inside the same project.
Any way to do that?