Files
EpicNext-Cms/src/app/robots.ts
T
Simo c4496e710b
CI / check (push) Successful in 1m6s
CI / deploy (push) Successful in 1m23s
feat(docker): prepare portable images with runtime hotel configuration
2026-09-07 22:37:53 +02:00

17 lines
435 B
TypeScript

import type { MetadataRoute } from "next";
// Installation metadata must be resolved from the running container.
export const dynamic = "force-dynamic";
export default function robots(): MetadataRoute.Robots {
const appUrl = process.env.APP_URL ?? "http://localhost:3000";
return {
rules: {
userAgent: "*",
allow: "/",
disallow: ["/admin/", "/api/", "/settings/", "/me/"],
},
sitemap: `${appUrl}/sitemap.xml`,
};
}