when I print out the value of req.url it only gives me http://localhost:3000, however it correctly redirects to app.localhost:3000/login. So the req.url is clearly preserving the value somehow of the domain but doesn't show that when it prints. However, in the rewrite where we add /app to the path we also use req.url but if req.url is preserving the subdomain won't this lead to issues when it reaches the server? Not sure if I'm missing something but any clarity on this is appreciated!
In the middleware at this part where it matches requests accessing the app subdomain:
when I print out the value of req.url it only gives me http://localhost:3000, however it correctly redirects to app.localhost:3000/login. So the req.url is clearly preserving the value somehow of the domain but doesn't show that when it prints. However, in the rewrite where we add /app to the path we also use req.url but if req.url is preserving the subdomain won't this lead to issues when it reaches the server? Not sure if I'm missing something but any clarity on this is appreciated!