diff --git a/nuxt.config.ts b/nuxt.config.ts index 810378a..dfe6da5 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -44,6 +44,7 @@ export default defineNuxtConfig({ '@pinia/nuxt', '@nuxtjs/i18n', '@nuxtjs/sitemap', + '@nuxtjs/robots', ['@pinia/nuxt', { autoImports: [ 'defineStore', @@ -60,6 +61,15 @@ export default defineNuxtConfig({ return await getSitemapRoutes() } }, + robots: { + rules: [ + { + userAgent: '*', + allow: '/' + } + ], + sitemap: 'https://www.digimedialoop.de/sitemap.xml' + }, image: { debug: true, strapi: { diff --git a/package-lock.json b/package-lock.json index c4269e3..4dc3dd7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,7 @@ "@nuxt/scripts": "^0.11.6", "@nuxt/ui": "^3.0.2", "@nuxtjs/i18n": "^9.5.3", + "@nuxtjs/robots": "^5.2.10", "@nuxtjs/sitemap": "^7.3.0", "@pinia/nuxt": "^0.11.0", "nitropack": "^2.11.9", @@ -3428,6 +3429,26 @@ "url": "https://github.com/sponsors/bobbiegoede" } }, + "node_modules/@nuxtjs/robots": { + "version": "5.2.10", + "resolved": "https://registry.npmjs.org/@nuxtjs/robots/-/robots-5.2.10.tgz", + "integrity": "sha512-WiO+VA8UwDgVLy7JCrGTrAmSNNw397OuNseKOG051ixswEDd0QhNw4cUtgNd2RkSIL7WlkfwkizdJFCd9y9iXw==", + "license": "MIT", + "dependencies": { + "@nuxt/kit": "^3.16.2", + "consola": "^3.4.2", + "defu": "^6.1.4", + "nuxt-site-config": "^3.1.9", + "pathe": "^2.0.3", + "pkg-types": "^2.1.0", + "sirv": "^3.0.1", + "std-env": "^3.9.0", + "ufo": "^1.6.1" + }, + "funding": { + "url": "https://github.com/sponsors/harlan-zw" + } + }, "node_modules/@nuxtjs/sitemap": { "version": "7.3.0", "resolved": "https://registry.npmjs.org/@nuxtjs/sitemap/-/sitemap-7.3.0.tgz", diff --git a/package.json b/package.json index 6292229..6e18a1a 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "@nuxt/scripts": "^0.11.6", "@nuxt/ui": "^3.0.2", "@nuxtjs/i18n": "^9.5.3", + "@nuxtjs/robots": "^5.2.10", "@nuxtjs/sitemap": "^7.3.0", "@pinia/nuxt": "^0.11.0", "nitropack": "^2.11.9",