diff --git a/src/lib/server/tenant.ts b/src/lib/server/tenant.ts index c7b7d0c..011ae29 100644 --- a/src/lib/server/tenant.ts +++ b/src/lib/server/tenant.ts @@ -45,6 +45,16 @@ export async function resolveTenant(hostname: string): Promise { // Any hostname that reaches this app was pointed here via DNS, // so it's intentional. Auto-create a tenant for it. @@ -57,6 +67,12 @@ async function autoProvisionTenant(host: string): Promise { slug, hostnames: { create: { hostname: host, isPrimary: true } + }, + tags: { + create: DEFAULT_TAGS + }, + categories: { + create: DEFAULT_CATEGORIES.map((n) => ({ name: n })) } } });