Skip to content

Commit e8a0ff9

Browse files
committed
🐛 fix: sitmap is not required
1 parent f384004 commit e8a0ff9

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

vite.config.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
import { defineConfig } from 'vite';
22
import react from '@vitejs/plugin-react';
3-
import sitemap from 'vite-plugin-sitemap';
43

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

0 commit comments

Comments
 (0)