Closed gdjohn4s closed 1 year ago
Apivault has dynamic robots/sitemap generation now for better indexing on search engines.
The robots config is:
export default [ { UserAgent: '*' }, { Disallow: '/' }, { BlankLine: true }, { Sitemap: () => 'https://apivault.dev/sitemap.xml' } ]
We are using the simplest config for now, preparing all dynamic routes inside nuxt.config.ts:
nuxt.config.ts
sitemap: { siteUrl: 'https://apivault.dev', urls: async () => { return categoriesProperties.map(category => ({ loc: `/categories/${category.name}`, lastmod: new Date(), changefreq: 'daily', priority: 0.2, })) }, defaults: { changefreq: 'daily', priority: 0.5, lastmod: new Date() } },
We should change this using modules in the future, when apivault will become bigger.
modules
Description
Apivault has dynamic robots/sitemap generation now for better indexing on search engines.
Proposed Changes
The robots config is:
Additional Information
We are using the simplest config for now, preparing all dynamic routes inside
nuxt.config.ts
:We should change this using
modules
in the future, when apivault will become bigger.Checklist