Skip to content

Commit

Permalink
🐛 fix: sitmap is not required
Browse files Browse the repository at this point in the history
  • Loading branch information
d3v1l0n committed Dec 23, 2024
1 parent f384004 commit e8a0ff9
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import sitemap from 'vite-plugin-sitemap';

// https://vitejs.dev/config/
export default defineConfig({
base: '/', // Correct base URL for GitHub Pages deployment
base: '/',
plugins: [
react(),
sitemap({
hostname: 'https://snigdha-os.github.io', // Ensure this is your site URL
outDir: 'dist', // Correct build output directory
// Optional: specify other options like exclude routes or change frequency if needed
}),
react(),
],
optimizeDeps: {
exclude: ['lucide-react'], // Prevent 'lucide-react' from being pre-bundled
exclude: ['lucide-react'],
},
});

0 comments on commit e8a0ff9

Please sign in to comment.