You need to enable the multiTenancy option in the module configuration to use the multi-tenancy features of the module.
export default defineNuxtConfig({
modules: ['@nobears-front-end/nuxt-statamic'],
statamic: {
multiTenancy: true,
},
});
When multi-tenancy is enabled, the module will replace the useStatamicSite composable with the useStatamicMultiTenancySite composable.
You still use it as useStatamicSite in your project, but it will now return the multi-tenancy site identifier based on the site configuration of the current tenant.