scaffolder: reduce max file size for dry-run content

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-06-21 10:00:12 +02:00
parent ba6a14226a
commit 464bb0e6c8
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder': patch
---
The max content size for dry-run files has been reduced from 256k to 64k.
@@ -29,8 +29,8 @@ import React, {
import { scaffolderApiRef } from '../../api';
import { ScaffolderDryRunResponse } from '../../types';
const MAX_CONTENT_SIZE = 256 * 1024;
const CHUNK_SIZE = 0x8000;
const MAX_CONTENT_SIZE = 64 * 1024;
const CHUNK_SIZE = 32 * 1024;
interface DryRunOptions {
templateContent: string;