From 44aa90061e55ed32671b3d5ec3d806b9a1eb52ad Mon Sep 17 00:00:00 2001 From: barsa Date: Tue, 3 Feb 2026 17:59:44 +0900 Subject: [PATCH] refactor: remove unused metadata and sitemap configurations for cleaner code --- apps/portal/src/app/layout.tsx | 59 ++-------------------------------- apps/portal/src/app/robots.ts | 22 ------------- apps/portal/src/app/sitemap.ts | 33 ------------------- 3 files changed, 2 insertions(+), 112 deletions(-) delete mode 100644 apps/portal/src/app/robots.ts delete mode 100644 apps/portal/src/app/sitemap.ts diff --git a/apps/portal/src/app/layout.tsx b/apps/portal/src/app/layout.tsx index 68350fa2..86868ed4 100644 --- a/apps/portal/src/app/layout.tsx +++ b/apps/portal/src/app/layout.tsx @@ -11,61 +11,12 @@ export const metadata: Metadata = { }, description: "One stop IT solution for Japan's international community. Internet, mobile, VPN, and tech support with English service since 2002.", - metadataBase: new URL(process.env["NEXT_PUBLIC_SITE_URL"] || "https://portal.asolutions.co.jp"), - alternates: { - canonical: "/", - }, - openGraph: { - type: "website", - locale: "en_US", - siteName: "Assist Solutions", - }, - twitter: { - card: "summary_large_image", - }, robots: { - index: true, - follow: true, + index: false, + follow: false, }, }; -// Organization structured data for rich search results -const organizationJsonLd = { - "@context": "https://schema.org", - "@type": "Organization", - name: "Assist Solutions Corp.", - alternateName: "Assist Solutions", - url: "https://asolutions.co.jp", - logo: "https://portal.asolutions.co.jp/assets/images/logo.png", - foundingDate: "2002-03-08", - description: - "IT and telecom services for Japan's international community with bilingual English/Japanese support.", - address: { - "@type": "PostalAddress", - streetAddress: "3F Azabu Maruka Bldg., 3-8-2 Higashi Azabu", - addressLocality: "Minato-ku", - addressRegion: "Tokyo", - postalCode: "106-0044", - addressCountry: "JP", - }, - contactPoint: [ - { - "@type": "ContactPoint", - telephone: "+81-3-3560-1006", - contactType: "customer service", - availableLanguage: ["English", "Japanese"], - }, - { - "@type": "ContactPoint", - telephone: "0120-660-470", - contactType: "customer service", - areaServed: "JP", - availableLanguage: ["English", "Japanese"], - }, - ], - sameAs: ["https://www.asolutions.co.jp"], -}; - // Disable static generation for the entire app since it uses dynamic features extensively // This is the recommended approach for apps with heavy useSearchParams usage export const dynamic = "force-dynamic"; @@ -81,12 +32,6 @@ export default async function RootLayout({ return ( - -