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

docs(headless-ssr-commerce-samples): add multiple listing pages #4635

Draft
wants to merge 1 commit into
base: KIT-3681-4
Choose a base branch
from

Conversation

alexprudhomme
Copy link
Contributor

Comment on lines 27 to 34
context: {
language: 'en',
country: 'US',
currency: 'USD',
view: {
url: '?',
},
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is awkward to have to define the view.url here in a search page. Ideally we would make it so when fetchStaticState is called from a searchEngineDefinition not every type is required. I am not sure how to achieve this tho. We could also just make the view type optional.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Talked with Oli and he said it is fine. We should set the url everywhere. CAPI could theoretically use the url defined in search somewhere down the line.

Comment on lines +12 to +14
images: {
domains: ['images.barca.group'],
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just necessary to use nextjs <Image/>

Copy link

github-actions bot commented Nov 5, 2024

Pull Request Report

PR Title

✅ Title follows the conventional commit spec.

Live demo links

Bundle Size

File Old (kb) New (kb) Change (%)
case-assist 236.6 236.6 0
commerce 341.5 341.5 0
search 412.3 412.3 0
insight 401.6 401.6 0
recommendation 248.8 248.8 0
ssr 406 406 0
ssr-commerce 353.8 353.8 0

SSR Progress

Use case SSR (#) CSR (#) Progress (%)
search 39 44 89
recommendation 0 4 0
case-assist 0 6 0
insight 0 27 0
commerce 0 15 0
Detailed logs search : buildInteractiveResult
search : buildInteractiveInstantResult
search : buildInteractiveRecentResult
search : buildInteractiveCitation
search : buildGeneratedAnswer
recommendation : missing SSR support
case-assist : missing SSR support
insight : missing SSR support
commerce : missing SSR support

@alexprudhomme alexprudhomme changed the title chore(headless-ssr-commerce-samples): add multiple listing pages docs(headless-ssr-commerce-samples): add multiple listing pages Nov 5, 2024
Comment on lines -34 to -41
context: {
language: 'en',
country: 'US',
currency: 'USD',
view: {
url: 'https://sports.barca.group/browse/promotions/ui-kit-testing',
},
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we remove this from the require definition since it should always be added during fetchStaticState ?

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.

1 participant