I'm completely new to nuxtjs and I want my router to work with a subdomain, thinking maybe with some middleware for redirecting the user if database/subdmoain doesn't exist or if their auth is no longer valid.
I'm setting up a multi-tenant database so each tenant has there own unique subdomain, using the subdomain that will tell my api backend what database to be connecting too.
I want my default database to use app.site.com and then tenants will have their own database via company1.site.com company2.site.com