Closed stanislav-sidorov-empeek closed 3 years ago
On server side (SSR) there is no browser having loaded your app... so the url: "/locales/{{lng}}/{{ns}}.json" is invalid... relative urls work only in browser environment.
This is why you should configure an absolute url....
https://stackoverflow.com/questions/44342226/next-js-error-only-absolute-urls-are-supported/44344023
🐛 Bug Report
Hi there, does anyone know what i'm doing wrong with backend config? seems to me this error is related to i18next-http-backend Build fails with error i18next::backendConnector: loading namespace translations for language en failed TypeError: Only absolute URLs are supported
tried different backend libs with no success, this error appears only with i18next-http-backend
To Reproduce
Expected behavior
Build project without errors
Your Environment