File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 115115 "typescript" : " 5.9.3" ,
116116 "unplugin-auto-import" : " 20.2.0" ,
117117 "unplugin-vue-components" : " 30.0.0" ,
118- "vite" : " 7.1.12 " ,
118+ "vite" : " 8.0.16 " ,
119119 "vite-plugin-checker" : " 0.11.0" ,
120120 "vite-plugin-optimize-persist" : " 0.1.2" ,
121121 "vite-plugin-package-config" : " 0.1.1" ,
Original file line number Diff line number Diff line change @@ -16,7 +16,14 @@ import { viteStdlib } from './scripts/vite'
1616import { FontaineTransform as CSSFontaine } from 'fontaine'
1717import windiCSS from 'vite-plugin-windicss'
1818import stdLibBrowser from 'node-stdlib-browser'
19- import { routes } from './src/routes'
19+ const sitemapRoutes = [
20+ '/landing' ,
21+ '/about' ,
22+ '/terms-of-use' ,
23+ '/support' ,
24+ '/questions' ,
25+ '/privacy' ,
26+ ]
2027
2128export default ( { mode } : any ) => {
2229 process . env = { ...process . env , ...loadEnv ( mode , process . cwd ( ) ) }
@@ -60,12 +67,7 @@ export default ({ mode }: any) => {
6067 viteSitemap ( {
6168 hostname : process . env . VITE_BASE_URL ,
6269 outDir : 'dist/render' ,
63- dynamicRoutes : routes
64- . filter (
65- ( m ) =>
66- ! m . redirect && m . path !== '/:pathMatch(.*)*' && m . path !== '/' ,
67- )
68- . map ( ( { path } ) => path ) ,
70+ dynamicRoutes : sitemapRoutes ,
6971 robots : [ { userAgent : '*' , allow : '/' } ] ,
7072 } ) ,
7173 vitePersist ( ) ,
You can’t perform that action at this time.
0 commit comments