Skip to content

Commit e8327c6

Browse files
committed
refactor: update route rules for markdown redirects
1 parent 4d95207 commit e8327c6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/showcase/nuxt.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ export default defineNuxtConfig({
4343
routeRules: {
4444
'/accessibility': { redirect: { to: '/guides/accessibility', statusCode: 301 } },
4545
'/installation': { redirect: { to: '/vite', statusCode: 301 } },
46-
'/button.md': { redirect: { to: '/llms/components/button.md', statusCode: 301 } }
46+
'/setup.md': { redirect: { to: '/llms/pages/setup.md', statusCode: 301 } },
47+
'/:path(.*).md': {
48+
redirect: (to) => {
49+
return `/llms/components/${to.path}`
50+
}
51+
}
4752
},
4853
primevue: {
4954
usePrimeVue: process.env.DEV_ENV !== 'hot',

0 commit comments

Comments
 (0)