shamefully-hoist=true
strict-peer-dependencies=false
auto-install-peers=true
@nobears-front-end:registry=https://git.nobears.nl/api/v4/packages/npm/
//git.nobears.nl/:_authToken=${GIT_NOBEARS_TOKEN}
You can install the module with your favorite package manager:
pnpm add @nobears-front-end/nuxt-multi-tenancy
yarn add @nobears-front-end/nuxt-multi-tenancy
npm install @nobears-front-end/nuxt-multi-tenancy
bun add @nobears-front-end/nuxt-multi-tenancy
Create a configuration file for the tenants. You can use the tenants.config.ts file to configure the tenants.
export default defineNuxtMultiTenancyConfig([
{
hosts: ["localhost:3000"],
config: {
url: "localhost:3000",
name: "Localhost",
tenant: {
id: "localhost",
site: {
"nl-NL": "localhost-nl-NL",
},
},
},
},
]);
In order to use the nuxt-multi-tenancy module, you need to add the module to your Nuxt config.
export default defineNuxtConfig({
modules: ['@nobears-front-end/nuxt-multi-tenancy'],
});