mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Add preview where applicable
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
import type { GetStaticPropsContext } from 'next'
|
||||
import getAllPages from '@lib/bigcommerce/api/operations/get-all-pages'
|
||||
import useCustomer from '@lib/bigcommerce/use-customer'
|
||||
import { Layout } from '@components/core'
|
||||
import { Container, Text } from '@components/ui'
|
||||
import useCustomer from '@lib/bigcommerce/use-customer'
|
||||
|
||||
export async function getStaticProps({ preview }: GetStaticPropsContext) {
|
||||
const { pages } = await getAllPages({ preview })
|
||||
return {
|
||||
props: { pages },
|
||||
}
|
||||
}
|
||||
|
||||
export default function Profile() {
|
||||
const { data } = useCustomer()
|
||||
|
Reference in New Issue
Block a user