nextjs-woocommerce-restapi
nextjs-woocommerce-restapi copied to clipboard
Error: connect ECONNREFUSED 162.xxx.xxx.xx:3000
wp: publicly hosted backend
nextjs: locally hosted at localhost:3000

when I go to refresh my NextJS homepage i get this error

when I make a request in my browser directly to the backend. The URL changes to a different port on request
https://mobibooth.com/store/wp-json/wp/v2/pages -- changes to -- https://mobibooth.com:3000/store/wp-json/wp/v2/pages