<Back to Updates

August 2024 release: Custom environment files and quality-of-life tweaks

August 9, 2024

Welcome to Hydrogen's release for August 2024.

Custom Environment Files with the --env-file Flag

Working on multiple stores from a single codebase just got easier with the support of custom environment files. This new feature allows you to specify different .env files for each store, streamlining your development process.

With the --env-file flag in our CLI, you can effortlessly switch between these environment files. This functionality is now supported in the env:pull, dev, and preview commands, in addition to the existing support in deploy and env:push.

Updates, optimizations, and fixes

This month’s release includes other quality-of-life tweaks, bug fixes and optimizations:

  • Improved performance of currency formatting (#2372)
  • Improved handling of remix.config.js / vite.config.js files (#2379)
  • Simplified context creation with a new createHydrogenContext function (#2333)
  • Script component now takes a waitForHydration prop (#2389)
  • Google web cache fix (#2334)
  • Custom logger support for vite.config.js (#2341)
  • Subrequest profiler virtual root fix (#2344)
  • CLI: Auth flow fix (#2331)
  • Oxygen: Improved environment variables UX

To take advantage of all the latest features and improvements in Hydrogen, just run npx shopify hydrogen upgrade. That’s it for the August release — see you in September!

Get building

Spin up a new Hydrogen app in minutes.

See documentation