Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 354ed2e

Browse files
committed
[vite,seo]: registered sitemap plugin to vite config;
1 parent c502497 commit 354ed2e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vite.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import react from '@vitejs/plugin-react-swc';
55
import ViteVisualizer from 'rollup-plugin-visualizer';
66
import { VitePWA } from 'vite-plugin-pwa'
77
import { VitePluginRadar } from 'vite-plugin-radar';
8+
import Sitemap from 'vite-plugin-sitemap'
89

910
// const maxAgeSeconds = 365 * 24 * 60 * 60; // Cache for 1 year
1011
const maxAgeSeconds = 7 * 24 * 60 * 60; // cache for 1 week
@@ -68,6 +69,10 @@ export default defineConfig({
6869
],
6970
},
7071
}),
72+
Sitemap({
73+
hostname: 'https://maifeeulasad.github.io/LocalLLaMA',
74+
outDir: './build',
75+
}),
7176
svgrPlugin({
7277
svgrOptions: {
7378
icon: true,

0 commit comments

Comments
 (0)