Skip to content

Commit 34f392d

Browse files
committed
chore: update vite to v8
1 parent 003e717 commit 34f392d

3 files changed

Lines changed: 427 additions & 32 deletions

File tree

packages/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
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",

packages/app/vite.config.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ import { viteStdlib } from './scripts/vite'
1616
import { FontaineTransform as CSSFontaine } from 'fontaine'
1717
import windiCSS from 'vite-plugin-windicss'
1818
import 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

2128
export 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(),

0 commit comments

Comments
 (0)