How can I assign 2 domains to single site?

I want deploy nuxt site with 2 domains, I have setup multiple languages. In dist folder I do have 2 separate folders for both langugages eg en/ and pl/ . I want to point my custom domain to en and pl folder respectively.

how can I do that?

thank you

Hi, @vinayak40, have you taken a look at our language based redirect rules?

If so, do you have any questions about using them?

Something like this might work:

/*  /en/:splat  302  Language=en
/*  /pl/:splat  302  Language=pl

Do you want to direct specific languages two different custom domains? If so, something like this might be better:

/*  302  Language=en
/*  302  Language=pl