This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ export default function robots(): MetadataRoute.Robots {
|
|||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
userAgent: "*",
|
userAgent: "*",
|
||||||
disallow: ["/_admin"],
|
disallow: ["/admin-internal"],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
sitemap: new URL("/sitemap.xml", siteUrl).toString(),
|
sitemap: new URL("/sitemap.xml", siteUrl).toString(),
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ const DEFAULT_ADMIN_HOST = "root.mohfarawati.de";
|
|||||||
const DEFAULT_ADMIN_URL = `https://${DEFAULT_ADMIN_HOST}`;
|
const DEFAULT_ADMIN_URL = `https://${DEFAULT_ADMIN_HOST}`;
|
||||||
const DEFAULT_SITE_URL = "https://mohfarawati.de";
|
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 {
|
function normalizePathname(pathname: string): string {
|
||||||
if (!pathname || pathname === "/") {
|
if (!pathname || pathname === "/") {
|
||||||
|
|||||||
Reference in New Issue
Block a user