mirror of
https://github.com/Ocelot-Social-Community/ocelot.social.git
synced 2025-12-12 23:35:59 +00:00
adapt config of redirect plugin to vuepress theme hope changes
This commit is contained in:
parent
f8c36a1272
commit
6da613d06c
@ -3,12 +3,12 @@ import { viteBundler } from '@vuepress/bundler-vite'
|
||||
|
||||
import meta from './config/meta'
|
||||
import theme from './config/theme'
|
||||
import plugins from './config/plugins'
|
||||
// import plugins from './config/plugins'
|
||||
|
||||
export default defineUserConfig({
|
||||
...meta,
|
||||
theme,
|
||||
plugins,
|
||||
// plugins,
|
||||
bundler: viteBundler(),
|
||||
base: process.env.VUEPRESS_BASE ? `/${process.env.VUEPRESS_BASE}/` : '/',
|
||||
locales: {
|
||||
|
||||
@ -1,8 +0,0 @@
|
||||
import { redirectPlugin } from '@vuepress/plugin-redirect'
|
||||
|
||||
|
||||
export default [
|
||||
redirectPlugin({
|
||||
autoLocale: true,
|
||||
})
|
||||
]
|
||||
@ -99,6 +99,9 @@ export default hopeTheme({
|
||||
sup: true,
|
||||
vPre: true,
|
||||
},
|
||||
redirect: {
|
||||
autoLocale: true,
|
||||
},
|
||||
searchPro: {
|
||||
indexContent: true,
|
||||
autoSuggestions: true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user