Giter VIP home page Giter VIP logo

Comments (3)

ndimatteo avatar ndimatteo commented on May 23, 2024

Hey there @djclarkson thanks for this and apologies for the confusion. These errors are because the front-end assumes at least one document is published for each "setting" in Sanity.

That last one is likely because you don't have a headerSettings document published. Once you do, that error should go away.

I'll make a note here to add more checks to ensure the site still builds if documents are missing entirely! Thanks!

from hull.

djclarkson avatar djclarkson commented on May 23, 2024

Thanks for the quick reply. One other thing that would be great is when if in development mode that the .env keys are tested and echo to console. Something like:

Testing Shopify Storefront API access....... SUCCESS or FAIL

from hull.

ndimatteo avatar ndimatteo commented on May 23, 2024

@djclarkson no problem! And there is already a console warning in place if the Shopify ENV variables are not set: https://github.com/ndimatteo/HULL/blob/main/lib/shopify.js#L5-L11

Logging the actual .env variables in the console would be a security risk outside of development, so I'm not going to ever include that in HULL out of the box.

I hope that helps!

from hull.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.