useTenant

Gitlab
Get the current tenant based on the host header.

Usage

The useTenant composable is used to get the current tenant configuration.

Basic example

pages/[...slug].vue
<script lang="ts">
const 
tenant
=
useTenant
();
</script>

Type Definition

function 
useTenant
():
TenantConfig
["config"]

API Reference

Return Value

The current tenant configuration from site config.

Changelog