Skip to content
Discussion options

You must be logged in to vote

Possible Root Cause: Mismatch Between Frontend BASE_URL and Server Proxy → Infinite Fetch Loop in Production Only

Hey, I’ve actually seen a nearly identical issue before, and based on your description, there’s a strong chance this has nothing to do with React or PM2 directly — it’s likely coming from a silent infinite network loop caused by an environment mismatch between your frontend build and server proxy.
To fix it:

  1. Fix Nginx
  2. Fix frontend env
  3. Rebuild and redeploy

Your symptoms match it almost perfectly

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by my-project-world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Ask and answer questions about GitHub features and usage Programming Help Discussions around programming languages, open source and software development
2 participants