saleor / storefront

Saleor Storefront built with React 18, Next.js 14, App Router, TypeScript, GraphQL, and Tailwind CSS.
https://storefront.saleor.io
BSD 3-Clause "New" or "Revised" License
1.06k stars 598 forks source link

Improve error message for missing NEXT_PUBLIC_SALEOR_API_URL environment variable #930

Closed krzysztofwolski closed 1 year ago

krzysztofwolski commented 1 year ago

Since codegen launches just after the pnpm i, it's possible that API URL has not been configured by the developer yet (thats been my case ;) ). The error looked like this:

image

This PR adds an explanation and solution when it happens:

image
vercel[bot] commented 1 year ago

@krzysztofwolski is attempting to deploy a commit to the Saleor Commerce Team on Vercel.

A member of the Team first needs to authorize it.

zaiste commented 1 year ago

@krzysztofwolski great stuff! Could you rebase?

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
storefront ✅ Ready (Inspect) Visit Preview Oct 12, 2023 0:12am