mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
update swell consts, cleanup cart types
This commit is contained in:
@@ -25,7 +25,7 @@ const getAllPages = async (options?: {
|
||||
config = getConfig(config)
|
||||
const { locale, fetchSwell } = config
|
||||
const { results } = await fetchSwell('content', 'list', ['pages'])
|
||||
const pages = results.map(({ slug, ...rest }) => ({
|
||||
const pages = results.map(({ slug, ...rest }: { slug: string }) => ({
|
||||
url: `/${locale}/${slug}`,
|
||||
...rest,
|
||||
}))
|
||||
|
Reference in New Issue
Block a user