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 background image display #2

Closed mhcassiem closed 6 months ago

mhcassiem commented 6 months ago

The background image source is hardcoded to a value set by env Need to change this to instead query gql and get generated url

Also: Either make background image conditional on successful fetching of image; or add a stock background image

Some notes: Maybe be difficult to execute gql query in layout.tsx. May need to create new BackgroundImageWrapper