tema d4b34faeb4 Enhance Portal Metadata and CSP Configuration
- Updated metadata for various pages in the portal, improving SEO and user engagement with more descriptive titles and keywords.
- Added structured data for organization in the layout component to enhance search visibility.
- Configured Content Security Policy (CSP) to allow frame sources from Google, improving security and functionality for embedded content.
2026-01-16 17:19:46 +09:00

23 lines
548 B
TypeScript

import type { MetadataRoute } from "next";
/**
* Robots.txt configuration
*
* Controls search engine crawler access.
* Allows all public pages, blocks account/authenticated areas.
*/
export default function robots(): MetadataRoute.Robots {
const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || "https://portal.asolutions.co.jp";
return {
rules: [
{
userAgent: "*",
allow: "/",
disallow: ["/account/", "/api/", "/auth/", "/_next/", "/order/"],
},
],
sitemap: `${baseUrl}/sitemap.xml`,
};
}