Ignore .git store on Template uploads for editor and increase payload size to 10MB (fixes #12561)

Signed-off-by: Axel Hecht <axel@pike.org>
This commit is contained in:
Axel Hecht
2022-09-23 18:54:48 +02:00
parent c02fda193d
commit b681275e69
3 changed files with 12 additions and 1 deletions
@@ -148,7 +148,8 @@ export async function createRouter(
options: RouterOptions,
): Promise<express.Router> {
const router = Router();
router.use(express.json());
// Be generous in upload size to support a wide rande of templates in dry-run mode.
router.use(express.json({ limit: '10MB' }));
const {
logger: parentLogger,