Skip to content
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

fix: ensure outDir doesn't lead to bundlers bloating Lambda size #10550

Merged

Conversation

Skn0tt
Copy link
Contributor

@Skn0tt Skn0tt commented Mar 25, 2024

Changes

Fixes withastro/adapters#185, which is a bug around Lambda bundles containing unneeded dist files on Netlify. This bug presumably also exists on Vercel, as they use the same tracer under the hood (@vercel/nft).

Testing

Added a test to ensure this isn't introduced again to the Vercel integration test suite. I picked that test suite, since we know they also have their own image integration, and that it likely has the same bug as the Netlify adapter.

Docs

It's a bug fix, I don't see a need to change docs.

Copy link

changeset-bot bot commented Mar 25, 2024

🦋 Changeset detected

Latest commit: a13f575

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added pkg: integration Related to any renderer integration (scope) pkg: astro Related to the core `astro` package (scope) labels Mar 25, 2024
@Skn0tt Skn0tt marked this pull request as ready for review March 25, 2024 12:07
@Skn0tt
Copy link
Contributor Author

Skn0tt commented Mar 25, 2024

cc @Princesseuh for a review!

Copy link
Member

@Princesseuh Princesseuh left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you!

Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

Looks good!

packages/astro/src/assets/vite-plugin-assets.ts Outdated Show resolved Hide resolved
@Princesseuh Princesseuh merged commit 34fa8e1 into withastro:main Mar 26, 2024
13 checks passed
@astrobot-houston astrobot-houston mentioned this pull request Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope) pkg: integration Related to any renderer integration (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Netlify Adapter: Deploy fails pointing to Lambda file size limitations in spite of proper size
3 participants