diff --git a/nuxt.config.js b/nuxt.config.js index df6f1a1c3b..a5d9b5a500 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -170,7 +170,7 @@ export default { file: 'en.json', }, ...(locales ?? []), - ], + ].filter((l) => Boolean(l.iso)), lazy: true, langDir: 'locales', defaultLocale: 'en', diff --git a/src/data/usage-data-service.js b/src/data/usage-data-service.js index 071ad556a1..c8df16ea64 100644 --- a/src/data/usage-data-service.js +++ b/src/data/usage-data-service.js @@ -14,7 +14,7 @@ const UsageDataService = { * @param {Parameters[1]} data */ post(endpoint, data) { - return ApiService.post(`analytics/${endpoint}`, data) + return ApiService.post(`analytics/${endpoint}/`, data) }, /**