Skip to content

Commit

Permalink
fix: do not include nuxt-auth links inside sitemap (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoey-kaiser authored Aug 2, 2024
1 parent b8d2f5d commit 9990a5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export default defineConfig({
lang: 'en-US',
appearance: 'dark',
lastUpdated: true,
sitemap: sitemapConfig,
sitemap: {
...sitemapConfig,
transformItems: items => items.filter(({ url }) => !url.startsWith('nuxt-auth'))
},
head: headConfig,
themeConfig: {
logo: {
Expand Down
4 changes: 1 addition & 3 deletions .vitepress/head.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import type { HeadConfig } from 'vitepress'
const HOST_NAME = 'https://sidebase.io'
const OG_IMAGE_URL = `${HOST_NAME}/sidebase-og.jpg`

export const sitemapConfig = {
hostname: HOST_NAME
}
export const sitemapConfig = { hostname: HOST_NAME }

export const headConfig: HeadConfig[] = [
['link', { rel: 'icon', href: '/favicon.ico' }],
Expand Down

0 comments on commit 9990a5d

Please sign in to comment.