cass-tech / react-storefront

An open-source storefront in React.js with Next.js. Built for Headless Commerce, using a modern stack with TypeScript, GraphQL, Apollo, and Tailwind CSS.
https://demo.saleor.io
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Fix page media display #3

Closed mhcassiem closed 3 months ago

mhcassiem commented 3 months ago

Image content is displayed based on fetched JSON content (set by editorJS in dashboard) Modify PageGetBySlug query to also fetch page media, and use returned url to display images

Note: Need to filter media url by size, set it to 0 to get the correct image url