-
Notifications
You must be signed in to change notification settings - Fork 13
Add generateSeoTags
utility
#137
base: 2023-01
Are you sure you want to change the base?
Conversation
packages/react/src/seo.ts
Outdated
import {Maybe} from './storefront-api-types.js'; | ||
import {WithContext} from 'schema-dts'; | ||
|
||
export interface BaseSeo { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to look into having these types actually match what they should be, and remove the any
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I've made all the other changes, but won't merge until you approve 🙇 Happy to work together on this tomorrow or later this week too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A start. It's not done, but it should be a bit better already. Want to take it over from here? (note that that PR merged into this PR, not into the main branch)
8e17745
to
c47a794
Compare
Co-authored-by: Josh Larson <[email protected]>
kinda better? kinda more better? no more red fix tests
Description
This PR moves the SEO library (mainly the
generateSeoTags
function) from the hydrogen repo to this repo.Additional context
I've also added docs and examples.
Related: Shopify/hydrogen#389, Shopify/hydrogen#380, Shopify/hydrogen#370, Shopify/hydrogen#389
Before submitting the PR, please make sure you do the following:
fixes #123
)yarn changeset add
if this PR cause a version bump based on Keep a Changelog. If you have a breaking change, it will need to wait until the next major version release. Otherwise, use patch updates even for new features. Read more about Storefront Kit's versioning.