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

[Nextjs] Move remaining Styleguide-Tracking artifacts from the base template #1422

Merged
merged 6 commits into from
Apr 6, 2023

Conversation

illiakovalenko
Copy link
Contributor

@illiakovalenko illiakovalenko commented Apr 6, 2023

Description / Motivation

Moved tracking related items to the styleguide-tracking add-on:

  • Rewrites
  • Extra component is removed from the base template
  • Data fetcher

Testing Details

  • Unit Test Added
  • Manual Test/Other (Please elaborate)

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)

@illiakovalenko illiakovalenko changed the title [Nextjs] (Re)move remaining Styleguide-Tracking artifacts [Nextjs] Move remaining Styleguide-Tracking artifacts Apr 6, 2023
@illiakovalenko illiakovalenko changed the title [Nextjs] Move remaining Styleguide-Tracking artifacts [Nextjs] Move remaining Styleguide-Tracking artifacts from the base template Apr 6, 2023
@illiakovalenko illiakovalenko requested a review from a team April 6, 2023 09:54
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.

Looks good!

@@ -13,8 +13,10 @@ const disconnectedPlugin = (nextConfig = {}) => {

return Object.assign({}, nextConfig, {
async rewrites() {
const existingRewrites = await (nextConfig.rewrites ? nextConfig.rewrites() : []);
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch combining with existing rewrites. It was fine to override these outright at one point, but we've got new ones (and possible a customer adds them) which should remain.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, potentially it can happen

@ambrauer ambrauer merged commit fdd5b44 into dev Apr 6, 2023
@ambrauer ambrauer deleted the feature/559759 branch April 6, 2023 20:55
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