-
Notifications
You must be signed in to change notification settings - Fork 86
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
Conversation
👷 Deploy request for netlify-plugin-nextjs-demo pending review.Visit the deploys page to approve it
|
👷 Deploy request for netlify-plugin-nextjs-export-demo pending review.Visit the deploys page to approve it
|
|
Name | Link |
---|---|
🔨 Latest commit | 4a27440 |
|
Name | Link |
---|---|
🔨 Latest commit | 4a27440 |
|
Name | Link |
---|---|
🔨 Latest commit | 4a27440 |
👷 Deploy request for next-i18next-demo pending review.Visit the deploys page to approve it
|
👷 Deploy request for netlify-plugin-nextjs-nx-monorepo-demo pending review.Visit the deploys page to approve it
|
👷 Deploy request for netlify-plugin-nextjs-static-root-demo pending review.Visit the deploys page to approve it
|
👷 Deploy request for netlify-plugin-nextjs-next-auth-demo pending review.Visit the deploys page to approve it
|
✅ Deploy Preview for next-hp-edge-demo ready!
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) { |
There was a problem hiding this comment.
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?
Summary
Skipping the checks for the bundle size are helpful when folks know what kind of bundles they are uploading to Netlify
🧪 Once merged, make sure to update the version if needed and that it was published correctly.