4
0
forked from crowetic/commerce

Exclude prop

This commit is contained in:
Luis Alvarez 2021-06-10 01:52:09 -05:00
parent 3b2bf654fe
commit ddd4631ade
2 changed files with 4 additions and 3 deletions

View File

@ -15,7 +15,8 @@ export async function getStaticProps({
variables: { first: 12 },
config,
preview,
featured: true
// Saleor provider only
...({ featured: true } as any),
})
const { categories, brands } = await commerce.getSiteInfo({ config, preview })
const { pages } = await commerce.getAllPages({ config, preview })

View File

@ -22,8 +22,8 @@
"@components/*": ["components/*"],
"@commerce": ["framework/commerce"],
"@commerce/*": ["framework/commerce/*"],
"@framework": ["framework/saleor"],
"@framework/*": ["framework/saleor/*"]
"@framework": ["framework/shopify"],
"@framework/*": ["framework/shopify/*"]
}
},
"include": ["next-env.d.ts", "**/*.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"],