API files bitrix hotfix for domain url
This commit is contained in:
parent
644ea3877b
commit
cad950fa8d
@ -20,7 +20,8 @@ export default async function handler(req, res)
|
||||
{
|
||||
try
|
||||
{
|
||||
axios.get(req.query.url, {
|
||||
const url = `${ process.env.NEXT_PUBLIC_MAIN_SITE }${ req.query.url }`;
|
||||
axios.get(url, {
|
||||
responseType: 'arraybuffer',
|
||||
})
|
||||
.then((bitrix_response) =>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user