Turborepo navigating between different apps
Answered
Rhinelander posted this in #help-forum
RhinelanderOP
Let's say I have app on example.com and I redirect to auth.example.com or blog.example.com - This are all standalone Next.js applications within turborepo. In development they are located on different localhost ports, in staging they are on own domains and in production on different domains. What are my options to handle that without polluting my code with bunch of process.env.NODE_ENV checks... Should I have config where I define everything like NODE_ENV === "production" -> example.com or is there a better way? Rewrites or some other stuff.
1 Reply
Asian black bear
You use environment variables for their URLs.
Answer