@murshisoft/docus 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,10 +23,14 @@ export default defineNuxtModule({
23
23
  const landingTemplate = resolve('../app/templates/landing.vue')
24
24
 
25
25
  if (isI18nEnabled) {
26
+ // Add a catch-all root redirect for i18n
26
27
  pages.push({
27
- name: 'lang-index',
28
- path: '/:lang?',
29
- file: landingTemplate,
28
+ name: 'index-redirect',
29
+ path: '/',
30
+ redirect: () => {
31
+ const defaultLocale = (nuxt.options.i18n as any)?.defaultLocale || 'en'
32
+ return `/${defaultLocale}`
33
+ },
30
34
  })
31
35
  }
32
36
  else {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@murshisoft/docus",
3
3
  "description": "Nuxt layer for Docus documentation theme",
4
- "version": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
7
7
  "repository": {