colbyfayock / next-wordpress-starter

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

[Bug] ApolloError: Response not successful: Received status code 404 #591

Closed amjedidiah closed 4 months ago

amjedidiah commented 4 months ago

Bug Report

Describe the bug

After including the .env variable, I get a 404 Apollo error

Is this a regression?

It worked just fine last month, but today, I got the error

Steps To Reproduce the error

  1. Clone the repo
  2. Setup the .env variable
  3. Install packages: yarn
  4. Run the application: yarn dev
  5. See the error in the terminal and the browser: Response not successful: Received status code 404

Expected behaviour

Expecting to open the browser and see that it works just fine

CodeSandbox or Live Example of Bug

Screenshot or Video Recording

Screenshot 2024-02-20 at 14 32 35

Screenshot 2024-02-20 at 14 35 00

Your environment

Additional context

Fixed the error with this PR