There is a problem to find basic types during SSR request in nextjs getServerSideProps.
It appears that Node has some problems to validate basic types, FormData and Blob.
export const listFromCategory = ({ categorySlug, limit = 24, page = 1 }: { categorySlug: string, limit?: number, page?: number }): Action => ({
method: 'POST',
endpoint: `/products/list/limit/${limit}/page/${page}`,
body: {
domain: {
type: 'category',
value: categorySlug,
},
},
credentials: 'omit',
});
Thank you in advance.