Skip to content

chore: allow overriding the check for the bundle size #1569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

chore: allow overriding the check for the bundle size #1569

wants to merge 2 commits into from

Conversation

minivan
Copy link
Contributor

@minivan minivan commented Aug 24, 2022

Summary

Skipping the checks for the bundle size are helpful when folks know what kind of bundles they are uploading to Netlify

image


🧪 Once merged, make sure to update the version if needed and that it was published correctly.

@minivan minivan requested a review from a team August 24, 2022 16:44
@netlify
Copy link

netlify bot commented Aug 24, 2022

👷 Deploy request for netlify-plugin-nextjs-demo pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 6fd2838

@netlify
Copy link

netlify bot commented Aug 24, 2022

👷 Deploy request for netlify-plugin-nextjs-export-demo pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 6fd2838

@netlify
Copy link

netlify bot commented Aug 24, 2022

‼️ Deploy request for next-plugin-canary rejected.

Name Link
🔨 Latest commit 4a27440

@netlify
Copy link

netlify bot commented Aug 24, 2022

‼️ Deploy request for next-plugin-edge-middleware rejected.

Name Link
🔨 Latest commit 4a27440

@netlify
Copy link

netlify bot commented Aug 24, 2022

‼️ Deploy request for next-plugin-rsc-demo rejected.

Name Link
🔨 Latest commit 4a27440

@netlify
Copy link

netlify bot commented Aug 24, 2022

👷 Deploy request for next-i18next-demo pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 6fd2838

@netlify
Copy link

netlify bot commented Aug 24, 2022

👷 Deploy request for netlify-plugin-nextjs-nx-monorepo-demo pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 6fd2838

@netlify
Copy link

netlify bot commented Aug 24, 2022

👷 Deploy request for netlify-plugin-nextjs-static-root-demo pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 6fd2838

@netlify
Copy link

netlify bot commented Aug 24, 2022

👷 Deploy request for netlify-plugin-nextjs-next-auth-demo pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 6fd2838

@netlify
Copy link

netlify bot commented Aug 24, 2022

Deploy Preview for next-hp-edge-demo ready!

Name Link
🔨 Latest commit 6fd2838
🔍 Latest deploy log https://app.netlify.com/sites/next-hp-edge-demo/deploys/630658aef9138f0009374f53
😎 Deploy Preview https://deploy-preview-1569--next-hp-edge-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@@ -105,6 +105,13 @@ export const checkForRootPublish = ({
}

export const checkZipSize = async (file: string, maxSize: number = LAMBDA_MAX_SIZE): Promise<void> => {
// Experimental: We can skip checking for the bundle size on the plugin side.
// Please reach out to the Netlify support team if you'd like to enable this feature
if (!process.env.NETLIFY_CHECK_BUNDLE_SIZE) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd thought this would be the other way around, where you'd set an environment variable if you want to bypass the size check. I don't see anyone going out of their way to enable this variable, so this would effectively amount to disabling the check?

@orinokai
Copy link
Contributor

thanks for the PR @minivan, much appreciated, but i think this has been superseded by #1570

@minivan minivan closed this Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants