From 7a3cdcc1da312786545d9e299f337e92dd70a3a9 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 19 Jun 2024 19:21:55 +0300 Subject: [PATCH] Wage a war against nuxt-simple-robots. BAD MODULE --- nuxt.config.ts | 26 ++++++++++++++++---------- public/robots.txt | 4 ---- 2 files changed, 16 insertions(+), 14 deletions(-) delete mode 100644 public/robots.txt diff --git a/nuxt.config.ts b/nuxt.config.ts index adaccd4..dc9f489 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -123,13 +123,6 @@ export default defineNuxtConfig({ Alexandria: true, }, }, - site: { - env: process.env.NODE_ENV, - url: config.url, - name: config.name, - indexable: true, - trailingSlash: false, - }, linkChecker: { failOnError: true, report: { @@ -137,6 +130,22 @@ export default defineNuxtConfig({ markdown: true, }, }, + robots: { + enabled: true, + blockNonSeoBots: false, + credits: false, + debug: false, + metaTag: true, + groups: [], + disallow: [' '], + }, + site: { + env: process.env.NODE_ENV, + url: config.url, + name: config.name, + indexable: true, + trailingSlash: false, + }, sitemap: { sources: ['/api/__sitemap__/content'], cacheMaxAgeSeconds: 360, @@ -156,9 +165,6 @@ export default defineNuxtConfig({ lastmod: config.build.date, }, }, - robots: { - enabled: false, - }, tailwindcss: { exposeConfig: true, }, diff --git a/public/robots.txt b/public/robots.txt deleted file mode 100644 index d42f263..0000000 --- a/public/robots.txt +++ /dev/null @@ -1,4 +0,0 @@ -User-agent: * -Disallow: - -Sitemap: https://enderman.ch/sitemap.xml \ No newline at end of file