diff --git a/.env.local.example b/.env.local.example index 2429dc8..551eced 100644 --- a/.env.local.example +++ b/.env.local.example @@ -10,7 +10,7 @@ NEXT_TELEMETRY_DISABLED=1 ## default accept header is 'application/json, text/plain, */*' # AXIOS_ACCEPT= ## for forcing a certain language for data we get from imdb -# AXIOS_LANGUAGE=en-US +# AXIOS_LANGUAGE='en-US,en;q=0.5' ### REDIS ## if you want to use redis to speed up the media proxy, set this to true diff --git a/src/utils/axiosInstance.ts b/src/utils/axiosInstance.ts index 702ba2c..4ce7bfd 100644 --- a/src/utils/axiosInstance.ts +++ b/src/utils/axiosInstance.ts @@ -8,6 +8,9 @@ const axiosInstance = axios.create({ 'User-Agent': process.env.AXIOS_USERAGENT, }), ...(process.env.AXIOS_ACCEPT && { Accept: process.env.AXIOS_ACCEPT }), + ...(process.env.AXIOS_LANGUAGE && { + 'Accept-Language': process.env.AXIOS_LANGUAGE, + }), }, });