Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/(service)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export default function ServiceLayout({
}>) {
return (
<html lang="en">
<head>{GTM_ID && <GoogleTagManager gtmId={GTM_ID} />}</head>
<head>{GTM_ID && <GoogleTagManager gtmId={GTM_ID} />}
<link rel="icon" href="/favicon.ico" sizes="any" />
</head>
<body className={clsx(pretendard.className, 'h-screen w-screen')}>
<MainProvider>
<div className="w-full overflow-auto">
Expand Down
32 changes: 32 additions & 0 deletions app/robots.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import type { MetadataRoute } from 'next';

export default function robots(): MetadataRoute.Robots {
return {
rules: [
{
userAgent: '*',
allow: [
'/',
'/login',
'/sign-up',
'/favicon.ico',
'/images/',
'/icons/',
'/fonts/',
],
disallow: [
'/my-page',
'/my-study',
'/my-study-review',
'/study',
'/redirection',
'/admin',
'/api/',
'/_next/',
'/_vercel/',
],
},
],
sitemap: 'https://www.zeroone.it.kr/sitemap.xml',
};
}
12 changes: 12 additions & 0 deletions app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import type { MetadataRoute } from 'next';

export default function sitemap(): MetadataRoute.Sitemap {
return [
{
url: 'https://www.zeroone.it.kr/',
lastModified: new Date(),
changeFrequency: 'monthly',
priority: 1,
},
];
}