USE_NODE_MODULES_CACHE environment flags were deprecated in favor of
USE_BUILD_CACHE. The new flag improves the build time by reusing cache from previous commits in newer deploy previews of the same Pull Request.
What has changed?
USE_BUILD_CACHE flag replaces the previously used
To exemplify the improvement, consider the git example below.
Previously, the build correponding to
commit-sha-3 would use
commit-sha-1 cache. Now it uses the cache generated for
commit-sha-2. In case the
commit-sha-2 does not exist, the build would use the
What needs to be done?
To use this new improvement, set the
USE_BUILD_CACHE flag to
true in the
vtex.env file of your FastStore project.