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

Powered by update #2516

Closed
wants to merge 4 commits into from
Closed

Powered by update #2516

wants to merge 4 commits into from

Conversation

benjaminsehl
Copy link
Member

Updates powered-by header to use current syntax

@github-actions
Copy link
Contributor

We detected some changes in packages/*/package.json or packages/*/src, and there are no updates in the .changeset.
If the changes are user-facing and should cause a version bump, run "yarn changeset add" to track your changes and include them in the next release CHANGELOG.
If you are making simple updates to examples or documentation, you do not need to add a changeset.

@@ -136,7 +136,7 @@ export const renderHydrogen = (App: any) => {

if (hydrogenConfig.poweredByHeader ?? true) {
// If undefined in the config, then always show the header
response.headers.set('powered-by', 'Shopify-Hydrogen');
response.headers.set('powered-by', 'Shopify, Hydrogen');
Copy link
Contributor

Choose a reason for hiding this comment

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

We only have hydrogen in v2, should we keep it that way here too?

Copy link
Member Author

Choose a reason for hiding this comment

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

@blittle -- we should have Shopify, Hydrogen in both -- and then up to Oxygen to simply append 'Oxygen'

Copy link
Contributor

Choose a reason for hiding this comment

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

@benjaminsehl nope, Oxygen specifically asked for it to be Hydrogen, and they append the other two.

Copy link
Member Author

@benjaminsehl benjaminsehl May 22, 2023

Choose a reason for hiding this comment

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

@blittle -- OK. But off Oxygen then it will only be Hydrogen?

This ___________, so I am just trying to follow what his original request was that JS linked to (which didn't even mention Oxygen).

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I thought I was explicit about this when they implemented it, I thought it was weird for us to only do Hydrogen, but the consensus was we just do "Hydrogen". See their implementation here: https://github.com/Shopify/oxygen-workers/pull/853/files#diff-bbe56b6f30db247b956e162af183823b1e5c916d0b9518648fd5ee73a98b3f49R131

Copy link
Contributor

Choose a reason for hiding this comment

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

So if we do both here, we need to update H2 as well, because it only sets powered-by: Hydrogen

packages/hydrogen/src/entry-server.tsx Outdated Show resolved Hide resolved
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.

None yet

3 participants