colbyfayock / next-wordpress-starter

📝 Bring WordPress to the static world with Next.js
https://next-wordpress-starter.spacejelly.dev
MIT License
1.2k stars 293 forks source link

Initial Set up not working #606

Open florentalitaj opened 7 months ago

florentalitaj commented 7 months ago

I did the initial steps (including graphql endpoint adding to .evn.local.), but next.js can't somhow fetched the post from my wordpress. I am using the app local with

Screenshot or Video Recording

image

image

image

image image image image

Your environment

Additional context

colbyfayock commented 6 months ago

hey, if you go to that endpoint in your browser, does it work?

stevemarty commented 5 days ago

Not sure if OP is monitoring this at all, but it's because they are using Local for temporarily hosting a WP site locally. It uses self signed certificates and Apollo doesn't by default allow self signing.

Add this to the .env.local and it will disable the certificate checking. Potential security issues but should be ok for local development, when you deploy to Vercel or Netlify then DO NOT put that line in their environment variables.

NODE_TLS_REJECT_UNAUTHORIZED=0