From 2b3ea929c4b0f315f058ed9885669aecbc7b22bf Mon Sep 17 00:00:00 2001 From: Geoffroy Empain Date: Wed, 23 Dec 2020 13:52:11 +0100 Subject: [PATCH] fix: cannot upload large sites --- src/commons/axios/axios.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commons/axios/axios.ts b/src/commons/axios/axios.ts index 219572b..dc1f63f 100644 --- a/src/commons/axios/axios.ts +++ b/src/commons/axios/axios.ts @@ -1,6 +1,9 @@ import axiosModule from 'axios'; import { ensureStackTrace } from './ensure-stack-trace'; -export const axios = axiosModule.create(); +export const axios = axiosModule.create({ + maxBodyLength: Infinity, + maxContentLength: Infinity, +}); ensureStackTrace(axios);