Skip to content

Commit

Permalink
feat(web): Add sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
flemzord committed Apr 29, 2024
1 parent 6c4234f commit b832b52
Show file tree
Hide file tree
Showing 3 changed files with 604 additions and 33 deletions.
6 changes: 5 additions & 1 deletion apps/web/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default defineNuxtConfig({
'@nuxt/ui',
'@nuxtjs/tailwindcss',
'nuxt-cloudflare-analytics',
"@nuxtjs/sitemap"
],

cloudflareAnalytics: {
Expand All @@ -35,6 +36,9 @@ export default defineNuxtConfig({
'/': { prerender: true },
// Cached for 1 minute
'/api/*': { cache: { maxAge: 60 } },
// Not indexed by search engines
'/dashboard/*': { robots: false },
'/dashboard': { robots: false },
},

hub: {
Expand All @@ -50,4 +54,4 @@ export default defineNuxtConfig({
plugins: ['tailwindcss/plugin-forms'],
},
},
});
});
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@heroicons/vue": "^2.1.3",
"@nuxt/ui": "^2.15.2",
"@nuxthub/core": "^0.5.11",
"@nuxtjs/sitemap": "^5.1.4",
"@nuxtjs/tailwindcss": "^6.12.0",
"@tailwindcss/forms": "^0.5.7",
"@trpc/client": "^10.45.2",
Expand Down
Loading

0 comments on commit b832b52

Please sign in to comment.