We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28a751d commit 4a27440Copy full SHA for 4a27440
packages/runtime/src/helpers/verification.ts
@@ -105,6 +105,11 @@ export const checkForRootPublish = ({
105
}
106
107
export const checkZipSize = async (file: string, maxSize: number = LAMBDA_MAX_SIZE): Promise<void> => {
108
+ if (!process.env.NETLIFY_CHECK_BUNDLE_SIZE) {
109
+ console.log('Skipping the bundle size check. Set env var "NETLIFY_CHECK_BUNDLE_SIZE=true" to enable checking the bundle size')
110
+ return
111
+ }
112
+
113
if (!existsSync(file)) {
114
console.warn(`Could not check zip size because ${file} does not exist`)
115
return
0 commit comments