diff --git a/next-seo.config.js b/next-seo.config.js index 2354515..1a19f7c 100644 --- a/next-seo.config.js +++ b/next-seo.config.js @@ -12,4 +12,13 @@ export default { site: '@naweby', cardType: 'summary_large_image', }, + robotsProps: { + nosnippet: true, + notranslate: true, + noimageindex: true, + noarchive: true, + maxSnippet: -1, + maxImagePreview: 'none', + maxVideoPreview: -1, + } }; diff --git a/next-sitemap.config.js b/next-sitemap.config.js new file mode 100644 index 0000000..deafff3 --- /dev/null +++ b/next-sitemap.config.js @@ -0,0 +1,5 @@ +module.exports = { + siteUrl: process.env.SITE_URL || 'http://www.naweby.com.br', + generateRobotsTxt: true, // (optional) + sitemapSize: 7000, +} diff --git a/package.json b/package.json index cdc3d8d..f18bff3 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "scripts": { "dev": "next dev", "build": "next build", + "postbuild": "next-sitemap --config next-sitemap.config.js", "start": "next start", "lint": "next lint" }, @@ -33,6 +34,7 @@ "devDependencies": { "eslint": "8.12.0", "eslint-config-next": "12.1.2", - "eslint-plugin-react-hooks": "^4.5.0" + "eslint-plugin-react-hooks": "^4.5.0", + "next-sitemap": "^3.0.5" } } diff --git a/public/vercel.svg b/public/vercel.svg deleted file mode 100644 index fbf0e25..0000000 --- a/public/vercel.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - \ No newline at end of file diff --git a/src/pages/_document.js b/src/pages/_document.js index 0d6d47f..71fc860 100644 --- a/src/pages/_document.js +++ b/src/pages/_document.js @@ -27,7 +27,7 @@ export default class MyDocument extends Document { } render() { - return ( + return ( diff --git a/yarn.lock b/yarn.lock index 95f5631..ac6bab5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -713,6 +713,11 @@ dependencies: "@chakra-ui/utils" "1.10.4" +"@corex/deepmerge@^4.0.14": + version "4.0.16" + resolved "https://registry.yarnpkg.com/@corex/deepmerge/-/deepmerge-4.0.16.tgz#2fca1db87ebdfd3faa2798cdbde1b02e73b11f4a" + integrity sha512-NjPTizUx0ovYv7WiC8Erq/yMGjc4OfSMywbEUkb1QpaBb4tgD9fe2DwRy3hfogrMZ30nWxwOtMg7hwuY67RYnQ== + "@ctrl/tinycolor@^3.4.0": version "3.4.0" resolved "https://registry.yarnpkg.com/@ctrl/tinycolor/-/tinycolor-3.4.0.tgz#c3c5ae543c897caa9c2a68630bed355be5f9990f" @@ -2545,6 +2550,14 @@ next-seo@^5.4.0: resolved "https://registry.yarnpkg.com/next-seo/-/next-seo-5.4.0.tgz#37a7784b30b3f70cec3fa0d77f9dde5990822d24" integrity sha512-R9DhajPwJnR/lsF2hZ8cN8uqr5CVITsRrCG1AF5+ufcaybKYOvnH8sH9MaH4/hpkps3PQ9H71S7J7SPYixAYzQ== +next-sitemap@^3.0.5: + version "3.0.5" + resolved "https://registry.yarnpkg.com/next-sitemap/-/next-sitemap-3.0.5.tgz#6c031641455356db7fac9d34b42809dd4c43d1b2" + integrity sha512-YdiW5wYNruyZCvhGGOMAdTylCQuxQkZKbSFV9Fjuf/U7aAt8lJwc3HG/WvR0n3Q1Y8c1ZiW/24UDZLQPfoKsYg== + dependencies: + "@corex/deepmerge" "^4.0.14" + minimist "^1.2.6" + next@12.1.2: version "12.1.2" resolved "https://registry.yarnpkg.com/next/-/next-12.1.2.tgz#c5376a8ae17d3e404a2b691c01f94c8943306f29"