Comments (8)
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.
Oh, that's exciting! This starter is going to be the best
from headless-wp-starter.
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.
@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.
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.
Any progress or roadblocks on this?
from headless-wp-starter.
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.
So cool! I can't wait to find some more time to try this out!
from headless-wp-starter.
Related Issues (20)
- Sub navigation? HOT 1
- functions acf_register_block_type and acf_register_block do not exist
- wp-headless container: No such file or directory HOT 1
- Nonce doesn't work for draft previews HOT 1
- Errors popping up while installing since wordpress 5.3
- Errors installing Windows 10 LTSC HOT 11
- Changed current directory to /var/www/.composer error
- faild to build wp-headless : Permission denied HOT 1
- How to deploy it on server?
- CORS errors HOT 1
- Which frontend if SEO is important HOT 1
- No Schema Available HOT 2
- Multisite setup - SSR wpapi connection issue
- Is there a complete guide from A to Z how to setup this repo INCLUDING details like setting up the users node and www-data? HOT 1
- Getting a rest_post_invalid_id when i try to visit wp-admin
- [meta]: Project status? HOT 1
- wp-headless: permission denied
- How can I make a PR? HOT 2
- Error loading Requests.php file in WordPress Docker container
- Docker compose ERROR HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from headless-wp-starter.