I want my app to be example.com but the dashboard to be dashboard.example.com, how do I do that with one server running? I can easily spin up 2 express app and connect to the same db, and configure ngix config but I feel that is not a proper way to do things.
Any clue? I'm using express.js anyway.