feat: setup database-driven admin user management

This commit is contained in:
2026-06-10 04:25:54 +03:00
parent f542efb324
commit b712760825
23 changed files with 804 additions and 40 deletions
+24
View File
@@ -0,0 +1,24 @@
import type { Metadata } from "next";
const BASE_URL = "https://kitebeachakyaka.com.tr";
export function buildMeta(
lang: string,
path: string,
tr: { title: string; description: string },
en: { title: string; description: string }
): Metadata {
const isEn = lang === "en";
return {
title: isEn ? en.title : tr.title,
description: isEn ? en.description : tr.description,
alternates: {
canonical: `${BASE_URL}/${lang}${path}`,
languages: {
"x-default": `${BASE_URL}/tr${path}`,
tr: `${BASE_URL}/tr${path}`,
en: `${BASE_URL}/en${path}`,
},
},
};
}