Configuration

Gitlab
Discover all the options you can use in your tenants.config.ts file.
You should use the defineNuxtMultiTenancyConfig function to configure the multi-tenancy config. The configuration options can be found in the configuration section.

multiTenancy

configFile

  • Type: string
  • Default: "tenants.config.ts"
Use the configFile option to set the filename of the config file.
Path is relative to the nuxt.rootDir.
nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@nobears-front-end/nuxt-multi-tenancy'],
  multiTenancy: {
    configFile: 'tenants.config.ts',
  },
});

Changelog