4

Does anyone knows how I am supposed to manage Nuxt & axios configuration with a multi-tenant API built with django-rest-framework and django-tenants (https://github.com/django-tenants/django-tenants)?

This API is reachable by tenant subdomain: tenant1.example.com/api, tenant2.example.com/api, ... (within my dev environment: tenant1.localhost:8000/api, tenant2.localhost:8000/api, ...)

In my Nuxt app, I want to use @nuxtjs/axios and @nuxtjs/auth-next.

→ How can I proxy axios API URL to take into account the API subdomains (tenant1.example.com/api, ...)?

→ How can I configure auth endpoints (tenant1.example.com/api/login, ...)?

Thanks for your help!

edge
  • 41
  • 1
  • Did you ever figure out how to to do this? I'm looking to do something very similar and I'm struggling to work out how! – bodger May 19 '22 at 10:06
  • https://github.com/nuxt-community/auth-module/issues/1153 – edge May 19 '22 at 13:53

0 Answers0