Hi!
So i have a setup for an app consisting out of a frontend (nuxt.js) and a backend (django). Got everything up and running but now i want to link them.
It is a multi-tenant app whereby a user has his/her own subdomain on a TLD. For example user1.example.com.
Depending on the route, different data is loaded from the backend. in Nuxt i have a setup whereby a Axios/GraphQL url is dynamically build based on the path of the url.
So when someone navigates to user1.example.com, the Nuxt app sets the Axios/GraphQL url to user1.example.com/api
user1.example.com routes to the NuxtJS app/container, while
user1.example.com/api routes to the Django container.
Any idea how i can set this up? Now i'm using a K8S cluster with traefik handling this.