Skip to content

Commit

Permalink
Add robots.txt file + update Next version. (vercel#984)
Browse files Browse the repository at this point in the history
  • Loading branch information
leerob authored Apr 24, 2023
1 parent 7cdecd3 commit c2b96d6
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 43 deletions.
15 changes: 15 additions & 0 deletions app/robots.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const baseUrl = process.env.NEXT_PUBLIC_VERCEL_URL
? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`
: 'http://localhost:3000';

export default function robots() {
return {
rules: [
{
userAgent: '*'
}
],
sitemap: `${baseUrl}/sitemap.xml`,
host: baseUrl
};
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"clsx": "^1.2.1",
"framer-motion": "^8.4.0",
"is-empty-iterable": "^3.0.0",
"next": "13.3.1-canary.18",
"next": "13.3.1",
"react": "18.2.0",
"react-cookie": "^4.1.1",
"react-dom": "18.2.0"
Expand All @@ -41,7 +41,7 @@
"@vercel/git-hooks": "^1.0.0",
"autoprefixer": "^10.4.13",
"eslint": "^8.35.0",
"eslint-config-next": "^13.3.0",
"eslint-config-next": "^13.3.1",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-unicorn": "^45.0.2",
"lint-staged": "^13.1.1",
Expand Down
82 changes: 41 additions & 41 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c2b96d6

Please sign in to comment.