mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-07 05:05:18 +02:00
🐛 fix: sitmap is not required
This commit is contained in:
@@ -1,19 +1,12 @@
|
|||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import react from '@vitejs/plugin-react';
|
import react from '@vitejs/plugin-react';
|
||||||
import sitemap from 'vite-plugin-sitemap';
|
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
base: '/', // Correct base URL for GitHub Pages deployment
|
base: '/',
|
||||||
plugins: [
|
plugins: [
|
||||||
react(),
|
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
|
|
||||||
}),
|
|
||||||
],
|
],
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
exclude: ['lucide-react'], // Prevent 'lucide-react' from being pre-bundled
|
exclude: ['lucide-react'],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user