Skip to content

Commit

Permalink
Switch to another sitemap library to fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocontrini committed Jun 8, 2024
1 parent b3b7c9d commit 36e8531
Show file tree
Hide file tree
Showing 5 changed files with 1,092 additions and 376 deletions.
16 changes: 2 additions & 14 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
import { defineNuxtConfig } from 'nuxt/config';
import sitemapDynamicRoutes from './sitemapDynamicRoutes';

// Fixes TypeScript complaints about the `sitemap` key
declare module '@nuxt/schema' {
export interface NuxtConfig {
sitemap?: {
hostname: string;
routes: () => Promise<string[]>;
};
}
}

export default defineNuxtConfig({
typescript: {
Expand All @@ -18,7 +7,7 @@ export default defineNuxtConfig({
imports: {
autoImport: false,
},
modules: ['@nuxtjs/tailwindcss', '@funken-studio/sitemap-nuxt-3'],
modules: ['@nuxtjs/tailwindcss', '@nuxtjs/sitemap'],
tailwindcss: {
cssPath: '~/assets/main.css',
},
Expand All @@ -30,7 +19,6 @@ export default defineNuxtConfig({
},
ssr: false,
sitemap: {
hostname: 'https://traquantopassa.in',
routes: sitemapDynamicRoutes,
sources: ['/api/__sitemap__/urls'],
},
});
Loading

0 comments on commit 36e8531

Please sign in to comment.