Skip to content

feat: faststore's default image loader - #3082

Merged
lariciamota merged 5 commits into
devfrom
feat/image-loader
Oct 30, 2025
Merged

lariciamota merged 5 commits into
devfrom
feat/image-loader

Conversation

@lariciamota

@lariciamota lariciamota commented Oct 24, 2025 •

Copy link
Copy Markdown
Contributor

What's the purpose of this pull request?

Build our default image loader.

How it works?

  • When the FastStore image component is used, the faststoreLoader is used.
  • When the Next image component is used directly, the customImageLoader is used.
  • Both have the same behavior when handling images from VTEX (from the file manager/cms and product images) -- they add to the URL the info regarding size, quality and aspect, since those VTEX services already handles optimizations.
  • The difference between those loaders is regarding external images -- the one used for Next images uses the Next optimizations, and the FastStore one doesn't.

It won't be necessary to use a feature flag like enableVtexAssetsLoader.

How to test it?

Starters Deploy Preview

PR: https://github.com/vtex-sites/faststoreqa.store/pull/881

References

@lariciamota lariciamota self-assigned this Oct 24, 2025
@codesandbox-ci

codesandbox-ci Bot commented Oct 24, 2025 •

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@lariciamota
lariciamota marked this pull request as ready for review October 27, 2025 14:00
@lariciamota
lariciamota requested a review from a team as a code owner October 27, 2025 14:00
@lariciamota
lariciamota requested review from gabpaladino and lucasfp13 and removed request for a team October 27, 2025 14:00
@matheusps
matheusps changed the base branch from main to dev October 27, 2025 16:04
@lariciamota
lariciamota merged commit a0b5f17 into dev Oct 30, 2025
@lariciamota
lariciamota deleted the feat/image-loader branch October 30, 2025 12:26
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.

4 participants