Forum Replies Created

Viewing 1 replies (of 1 total)
  • I’m running into the same issue.
    The problem is that when I click on ‘save’ after entering a slug for the page in localWP, It does not do anything, but when I refresh the page I see that the slug has been updated. As a result, the “build” command in package.json file is not updated to include the PUBLIC_URI.
    As a workaround, I manually change the “build” command to the following (I’m on windows):
    "build": "set PUBLIC_URL=/wp-content/reactpress/apps/[appname]/build&&react-scripts build",
    when I build the react-app, the content does not show on [local-WP]/[slug] and the <div id=”root”></div> is blank.
    I’m not very familiar with WP, but if I had to guess, I think that the plugin does not perform all the necessary work when the slug is added for some reason (probably related to using Windows). As I said before, when I click ‘save’, nothing happens.
    I would suggest making a manual integration tutorial, with the necessary changes to the different PHP files and to the react-app files , to be followed in case the automatic tasks are not fully performed for one reason or an other.
    Thank you very much in any case, and I’m looking forward to seeing more tools from you, and hopefully a plugin to integrate nextJS apps as well.
    Kind regards.

Viewing 1 replies (of 1 total)