-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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(assets): image service bundling for pre-rendered pages non-node runtime regression #9087
fix(assets): image service bundling for pre-rendered pages non-node runtime regression #9087
Conversation
🦋 Changeset detectedLatest commit: 6c3bd26 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 |
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
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.
Works for me! I think the experimental content collections cache flag already has a number of bugs, so I’d rather prioritize fixing the regression. If we do discover that this breaks the flag, we can find a workaround for that in a follow-up PR.
The thing is, not tests were broken after the regression. How can we prevent this from happening again? |
Please correct me if I'm wrong, but I think we would need to add a test using And additionally we would need to be testing for a special config, where the service is set and the endpoint is set to an empty file, so that image optimization only works on compile time and not runtime for SSR. cc @Princesseuh |
We do have tests for prod SSR, what we don't have are tests that test the specific bundling behaviour of the image service since it (should be) irrelevant. The tests didn't catch this because |
I will add a test in withastro/adapters#58 |
* main: feat(i18n): add `Astro.currentLocale` (withastro#9101) [ci] release (withastro#9107) Add compatibility with cloudflare node (withastro#8925) [ci] format Cancel response stream when connection closes (withastro#9071) [ci] format feat(i18n): apply specific routing logic only to pages (withastro#9091) feat(dev-overlay): Hide plugins into a separate menu when there's too many enabled (withastro#9102) [ci] format Support Svelte 5 (experimental) (withastro#9098) [ci] release (withastro#9078) [ci] format Refactor shikiji syntax highlighting code (withastro#9083) [ci] format fix: Query params trigger the trailingSlash error in preview mode (withastro#9045) fix(assets): bundling regression for specific config on non-Node runtimes (withastro#9087)
Changes
astro:assets
image service bundle regression #9059Testing
3.4.4
(known good) and3.5.0
(known bad)Docs