2 production environments > device mails

hi, i am loading up 2 different production environments under 2
different domain names (1 & 2). but when i send out devise emails, the
default_url_options aka the href links within the emails always point
to the same domain (1)

i am setting this differntly in both env files:
prod1
config.action_mailer.default_url_options { host: 'https://www.domain 1.com' }

prod2
config.action_mailer.default_url_options { host: 'https://www.domain 2.com' }

but agian, paswowrd reset link always point to domain 1. what am i missing?

why?

thx