Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Set up not working #606

Open
florentalitaj opened this issue Apr 19, 2024 · 2 comments
Open

Initial Set up not working #606

florentalitaj opened this issue Apr 19, 2024 · 2 comments

Comments

@florentalitaj
Copy link

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

  • OS:
  • Node version: v18.10.0
  • Npm version: 8.19.2
  • Browser name and version: Chrome Version 123.0.6312.123

Additional context

@colbyfayock
Copy link
Owner

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

@stevemarty
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants