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

Multisite SSG should always include site prefix #1339

Merged
merged 6 commits into from
Feb 22, 2023

Conversation

art-alexeyenko
Copy link
Contributor

This PR ensures GraphQLSitemapService will return paths with site prefix applied even if one site is provided in array during class initialization. This, in combination with previous multisite changes, leads to some changes in the class' behavior:

  1. fetchExportSitemap and fetchSSGSitemap will return paths with site prefix applied by default;
  2. pass siteName into the methods to only return paths for a specific single site, without prefix.

nextjs and nextjs-multisite templates were updated to accommodate the change.

Testing Details

Manual testing with extra unit tests.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • [?] Breaking change (fix or feature that would cause existing functionality to change)

@art-alexeyenko art-alexeyenko requested a review from a team February 14, 2023 22:35
Copy link
Contributor

@ambrauer ambrauer left a comment

Choose a reason for hiding this comment

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

Looking good, just a few minor things noticed

Copy link
Contributor

@ambrauer ambrauer left a comment

Choose a reason for hiding this comment

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

Awesome! Just a few minor things noticed remaining (1 previous, 2 new).

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@ambrauer ambrauer left a comment

Choose a reason for hiding this comment

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

👍

@ambrauer ambrauer merged commit 73aa36d into dev Feb 22, 2023
@ambrauer ambrauer deleted the bug/multisite-ssg-should-always-include-prefix branch February 22, 2023 16:35
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

2 participants