Skip to content

Commit

Permalink
Disable the pagination thumbnails in the demo config
Browse files Browse the repository at this point in the history
  • Loading branch information
paales committed Jan 23, 2024
1 parent b92dc0f commit d267f19
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .changeset/happy-ravens-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/next-config": patch
---

Disable the pagination thumbnails
6 changes: 0 additions & 6 deletions examples/magento-graphcms/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,13 @@ const nextConfig = {
maxInactiveAge: 1000 * 60 * 10,
pagesBufferLength: 10,
},
experimental: {
scrollRestoration: true,
},
optimizeFonts: false,
images: {
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
},
eslint: {
ignoreDuringBuilds: true,
},
experimental: {
scrollRestoration: true,
},
}

module.exports = withGraphCommerce(withPWA(nextConfig), __dirname)
6 changes: 1 addition & 5 deletions packages/framer-next-pages/example/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,4 @@

const withGraphCommerce = require('@graphcommerce/next-config').withYarn1Scopes()

module.exports = withGraphCommerce({
experimental: {
scrollRestoration: true,
},
})
module.exports = withGraphCommerce({})
2 changes: 1 addition & 1 deletion packagesDev/next-config/dist/config/demoConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ exports.demoConfig = {
demoMode: true,
limitSsg: true,
compare: true,
sidebarGallery: { paginationVariant: 'THUMBNAILS_BOTTOM' },
sidebarGallery: { paginationVariant: 'DOTS' },
configurableVariantForSimple: true,
configurableVariantValues: { url: true, content: true, gallery: true },
recentlyViewedProducts: { enabled: true, maxCount: 20 },
Expand Down
2 changes: 1 addition & 1 deletion packagesDev/next-config/src/config/demoConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const demoConfig: PartialDeep<GraphCommerceConfig, { recurseIntoArrays: t
demoMode: true,
limitSsg: true,
compare: true,
sidebarGallery: { paginationVariant: 'THUMBNAILS_BOTTOM' },
sidebarGallery: { paginationVariant: 'DOTS' },
configurableVariantForSimple: true,
configurableVariantValues: { url: true, content: true, gallery: true },
recentlyViewedProducts: { enabled: true, maxCount: 20 },
Expand Down

0 comments on commit d267f19

Please sign in to comment.