mirror of
https://github.com/vercel/commerce.git
synced 2025-09-07 16:30:17 +00:00
Working view of a LocalProvider
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import data from '../../data.json'
|
||||
|
||||
export type GetAllProductPathsResult = {
|
||||
products: Array<{ path: string }>
|
||||
}
|
||||
@@ -5,7 +7,7 @@ export type GetAllProductPathsResult = {
|
||||
export default function getAllProductPathsOperation() {
|
||||
function getAllProductPaths(): Promise<GetAllProductPathsResult> {
|
||||
return Promise.resolve({
|
||||
products: [].map((p) => ({ path: `/hello` })),
|
||||
products: data.products.map(({ path }) => ({ path })),
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user