When users visit my custom domain https://whatsnxt.in, I would like to redirect them to https://www.whatsnxt.in but this is causing api routes to fail
I am making api requests at https://whatsnxt.in but due to redirection to www, api calls are failing. How do I handle this. I am not an expect on DNS configurations
Note: My custom domain is registered on AWS route 53 and backend api servers are on ec2 and frontend apps are on vercel