refactor: i18n SEO

This commit is contained in:
liyasthomas
2021-08-16 22:02:18 +05:30
parent e5c8d05850
commit c04435108b
22 changed files with 185 additions and 144 deletions

View File

@@ -193,7 +193,7 @@ export default {
// Sitemap module configuration (https://github.com/nuxt-community/sitemap-module)
sitemap: {
hostname: process.env.BASE_URL || "https://hoppscotch.io",
hostname: process.env.BASE_URL,
},
// Robots module configuration (https://github.com/nuxt-community/robots-module)
@@ -222,11 +222,12 @@ export default {
fallbackLocale: "en",
},
lazy: true,
langDir: "lang/",
langDir: "locales/",
detectBrowserLanguage: {
alwaysRedirect: true,
fallbackLocale: "en",
},
baseUrl: process.env.BASE_URL,
},
// Color mode configuration (https://github.com/nuxt-community/color-mode-module)