mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Merge branch 'master' of https://github.com/vercel/commerce into custom-checkout
This commit is contained in:
@@ -38,7 +38,9 @@ export default function getAllPagesOperation({
|
||||
preview?: boolean
|
||||
query?: string
|
||||
} = {}): Promise<T['data']> {
|
||||
const { fetch, locale, locales = ['en-US'] } = commerce.getConfig(config)
|
||||
const { fetch, locale, locales = ['en-US', 'es'] } = commerce.getConfig(
|
||||
config
|
||||
)
|
||||
|
||||
const { data } = await fetch<GetAllPagesQuery, GetAllPagesQueryVariables>(
|
||||
query,
|
||||
|
@@ -39,7 +39,7 @@ export default function getPageOperation({
|
||||
config?: Partial<ShopifyConfig>
|
||||
preview?: boolean
|
||||
}): Promise<T['data']> {
|
||||
const { fetch, locale = 'en-US' } = commerce.getConfig(config)
|
||||
const { fetch, locale } = commerce.getConfig(config)
|
||||
|
||||
const {
|
||||
data: { node: page },
|
||||
|
Reference in New Issue
Block a user