Skip to content

Commit e5bae29

Browse files
committed
Redirects in nuxt config
Makes sure that any accidental root links resolve to the correct first page
1 parent ebe22e3 commit e5bae29

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nuxt.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ export default defineNuxtConfig({
1010

1111
modules: ["@nuxt/eslint", "@nuxt/content", "@nuxt/ui", "@nuxtjs/tailwindcss", "@nuxt/scripts", "@vueuse/nuxt"],
1212

13+
routeRules: {
14+
'/docs': { redirect: '/docs/getting-started/platform-overview' },
15+
'/cloud': { redirect: '/cloud/getting-started/introduction' },
16+
'/community': { redirect: '/community/overview/welcome' },
17+
},
18+
1319
nitro: {
1420
prerender: {
1521
routes: ["/"],

0 commit comments

Comments
 (0)