-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(GIST-40): setup nextjs seo (#11)
- Loading branch information
1 parent
a4e4120
commit d315c47
Showing
3 changed files
with
65 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type { MetadataRoute } from 'next' | ||
|
||
export default function robots(): MetadataRoute.Robots { | ||
const baseUrl = 'https://gists.app' | ||
return { | ||
rules: [ | ||
{ | ||
userAgent: '*', | ||
allow: ['/', '/login'], | ||
disallow: ['/mygist/', '/team/'], | ||
}, | ||
], | ||
sitemap: `${baseUrl}/sitemap.xml`, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export default async function sitemap() { | ||
const baseUrl = 'https://gists.app' | ||
return [ | ||
{ | ||
url: baseUrl, | ||
lastModified: new Date(), | ||
}, | ||
] | ||
} |