Giter Site home page Giter Site logo

Comments (8)

ginatrapani avatar ginatrapani commented on May 7, 2024

Yeah, I started playing with this in this branch: https://github.com/postlight/headless-wp-starter/tree/graphql-test

Currently there's a bug in wp-graphql that makes it incompatible with wp server (or any proxying). I'm talking to the wp-graphql folks now about it. For reference, the issue: wp-graphql/wp-graphql#355

from headless-wp-starter.

TylerBarnes avatar TylerBarnes commented on May 7, 2024

Oh, that's exciting! This starter is going to be the best

from headless-wp-starter.

ginatrapani avatar ginatrapani commented on May 7, 2024

That bug has been resolved. I'm doing more work with wp-graphql lately, and while it still has a way to go before its 1.0 release, I think it's worth including here, and updating the README -- and maybe the frontend? -- for sure.

from headless-wp-starter.

TylerBarnes avatar TylerBarnes commented on May 7, 2024

@ginatrapani that's awesome! I find this starter slow to respond sometimes and I assume it's due to the number of requests that happen before next.js sends anything to the browser. I think it's definitely worth including and adding to the frontend as having a single request to the WP install should speed things up.

from headless-wp-starter.

meishern avatar meishern commented on May 7, 2024

An issue related to this, is that when viewing source, right now will show: __NEXT_DATA__ = {"props"
Which contains all sorts of private data which should not be displayed which includes (1) the URL of the body section of the headless-wp, which should never be known to the end user, as well as; (2) the login name of the wordpress user and the corresponding id in the wordpress database, which is a security hole.

By using GraphQL, this private data should no longer be shown.

from headless-wp-starter.

TylerBarnes avatar TylerBarnes commented on May 7, 2024

Any progress or roadblocks on this?

from headless-wp-starter.

ginatrapani avatar ginatrapani commented on May 7, 2024

Any progress or roadblocks on this?

No, I've just been caught up with other work (a lot of it was directly with wp-graphql!) but I'm back to this. I may have been overthinking it, so maybe I'll just commit a version that serves GraphQL from the backend, and work on the frontend example code separately. More soon!

from headless-wp-starter.

TylerBarnes avatar TylerBarnes commented on May 7, 2024

So cool! I can't wait to find some more time to try this out!

from headless-wp-starter.

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.