• Hello. I’m attempting to integrate an existing react app into WordPress but I’m having trouble getting anything to render. It’s configured to make API calls to a separate Node server and was previously setup to have the server app serve the react front-end, so I’m having trouble determining how to adapt my app to run through ReactPress.

    I suspect that it’s just a path issue as I am getting warnings about missing files (with incorrect paths). How can I correct the path for both the build files as well as my API calls?

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author rockiger

    (@rockiger)

    You need to change the build path of your app. In your package.json chage the ‘build’ command:

    “build”: “PUBLIC_URL=/wp-content/reactpress/apps/[your-app-folder-name]/build react-scripts build”

    Thread Starter mhopperteltrium

    (@mhopperteltrium)

    Thanks! As mentioned, that helped, but we’re still having trouble loading images. Any suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘React App with server’ is closed to new replies.