Receiving 404 message in production only

System Information
  • Strapi Version: 4.9.1
  • Operating System: macOS Monterey
  • Database:
  • Node Version: 18.16.0
  • NPM Version: 9.5.1
  • Yarn Version:


I’m receiving a 404 error when my app performs a query in production. I’ve deployed Strapi to heroku and it is running just fine here: . I’m using Next.js and Apollo GraphQL on the front-end. All user permissions are enabled and the draft and publish feature is enabled. I have no problem running the queries when running on localhost. I followed the Strapi docs to deploy the app to Heroku so I think all of the config is correct. I also notice that when I run the Graphql playground on the production URL I get the forbidden access message. Here are the github repos:

FrontEnd: GitHub - nongrubl89/Trip-Report
BackEnd: GitHub - nongrubl89/TR-Backend-StrapiV4

I’m really at a loss here so any help would be appreciated.