79759191

Date: 2025-09-08 17:33:52
Score: 1.5
Natty:
Report link

I figured this out, it was easier than I thought and I was overthinking things. Yes technically its not the exact solution I will use in production but atleast I was able to test if my code worked successfully.

I setup my /etc/hosts code to route both domains to the localhost ip and then handled rendering the correct domain for the url in the app based on the request host and things worked perfectly.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: yungindigo