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

[cli] obey asset env var in build command #2758

Merged
merged 1 commit into from
Feb 17, 2025
Merged

[cli] obey asset env var in build command #2758

merged 1 commit into from
Feb 17, 2025

Conversation

vincentezw
Copy link
Contributor

WHY are these changes introduced?

Fixes #0000

When merchants deploy to Oxygen with hydrogen deploy --build-command "npx shopify hydrogen build" (which is a pattern used to allow for extra arguments to be passed to the build command), the command does not take the HYDROGEN_ASSET_BASE_URL into account.

This means / is used as asset path.

WHAT is this pull request doing?

HOW to test your changes?

Post-merge steps

Checklist

  • I've read the Contributing Guidelines
  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've added a changeset if this PR contains user-facing or noteworthy changes
  • I've added tests to cover my changes
  • I've added or updated the documentation

Copy link
Contributor

shopify bot commented Feb 17, 2025

Oxygen deployed a preview of your vez/asset-path branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
metaobjects ✅ Successful (Logs) Preview deployment Inspect deployment February 17, 2025 4:25 PM
third-party-queries-caching ✅ Successful (Logs) Preview deployment Inspect deployment February 17, 2025 4:25 PM
classic-remix ✅ Successful (Logs) Preview deployment Inspect deployment February 17, 2025 4:25 PM
custom-cart-method ✅ Successful (Logs) Preview deployment Inspect deployment February 17, 2025 4:25 PM
Skeleton (skeleton.hydrogen.shop) ✅ Successful (Logs) Preview deployment Inspect deployment February 17, 2025 4:25 PM

Learn more about Hydrogen's GitHub integration.

@vincentezw vincentezw force-pushed the vez/asset-path branch 5 times, most recently from cb87e36 to 15362b7 Compare February 17, 2025 15:21
@vincentezw vincentezw changed the title wip [cli] obey asset env var in build command Feb 17, 2025
@vincentezw vincentezw marked this pull request as ready for review February 17, 2025 15:23

This comment has been minimized.

'@shopify/cli-hydrogen': patch
---

Use HYDROGEN_ASSET_BASE_URL in build command
Copy link
Contributor

Choose a reason for hiding this comment

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

This might trigger a bit of fear and uncertainty. Please can you update it to reflect that this is fixing a bug where HYDROGEN_ASSET_BASE_URL was incorrectly being ignored in that specific case

@rbshop rbshop merged commit 5ad3373 into main Feb 17, 2025
11 of 12 checks passed
@rbshop rbshop deleted the vez/asset-path branch February 17, 2025 16: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.

2 participants