Skip to content

Commit

Permalink
config changed
Browse files Browse the repository at this point in the history
  • Loading branch information
toprogramm committed Dec 13, 2024
1 parent 1bcc54e commit 3ccdf98
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,27 @@ export default defineNuxtConfig({
]
],
routeRules: {


//static
'/': { redirect: '/ru' },
'/ru/about': { prerender: true },
'/ru/support': { prerender: true },
'/ru/donate': { prerender: true },
'/ru/cooperation': { prerender: true },
'/ru/user/**': { ssr: false },
'/ru/cooperation': { prerender: true },

'/en/about': { prerender: true },
'/en/support': { prerender: true },
'/en/donate': { prerender: true },
'/en/cooperation': { prerender: true },

//client side
'/ru/user/**': { ssr: false },
'/en/user/**': { ssr: false },
'/en/auth': { ssr: false },
'/ru/auth': { ssr: false },

'/ru': { swr: true },
'/en' : { swr: true},
//server side cached
'/**': { swr: true },

},
robots: {
Expand Down

0 comments on commit 3ccdf98

Please sign in to comment.