Fix internal admin route for subdomain
CI / quality (push) Has been cancelled

This commit is contained in:
MOH
2026-03-12 00:24:08 +01:00
parent 87a597c872
commit f14116b56c
17 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ export default function robots(): MetadataRoute.Robots {
rules: [
{
userAgent: "*",
disallow: ["/_admin"],
disallow: ["/admin-internal"],
},
],
sitemap: new URL("/sitemap.xml", siteUrl).toString(),
+1 -1
View File
@@ -2,7 +2,7 @@ const DEFAULT_ADMIN_HOST = "root.mohfarawati.de";
const DEFAULT_ADMIN_URL = `https://${DEFAULT_ADMIN_HOST}`;
const DEFAULT_SITE_URL = "https://mohfarawati.de";
export const INTERNAL_ADMIN_PREFIX = "/_admin";
export const INTERNAL_ADMIN_PREFIX = "/admin-internal";
function normalizePathname(pathname: string): string {
if (!pathname || pathname === "/") {