rockiger
Forum Replies Created
-
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] React RouterTry to re-save permalinks in the WP admin.
Does this fix your problems?
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Working only in PreviewSorry for responding so late. Could you activate logging in WordPress and see if any error messages occur.
Hey @fxzh98,
did you modify the page where the app should be displayed manually?
Which operating system are you using?
I will test with the newest version of LocalWP shortly.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Plugin takes WordPress downHey @giuliano2911,
unfortunately, I have zero knowledge about Lightsail. Can you profile what gets your server down?
Is there high CPU or memory usage?
To me, it makes no sense, because we deploy a simple React app.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] React routes and rewrite rulesI am out of my element here, too.
ReactPress adds one rewrite rule for every new app:
add_rewrite_rule('^' . $app['pageslug'] . '/(.*)?', 'index.php?pagename=' . $app['pageslug'], 'top');
It makes sure that React-Router can be used. Maybe the rewrite rules collide?
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] React routes and rewrite rulesIf I understand you right, you want to show the React app on several pages?
This is not possible at the moment. Using the app as the homepage works for me.
Hello, yes you can. You can use the WP rest-api https://developer.www.ads-software.com/rest-api/ in your React app.
ReactPress only shows information that WordPress provides.
Having said that, I doubt it would be wise to openly communicate any key.
Hope this helps.
- This reply was modified 2 years, 8 months ago by rockiger.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Empty screen on live serverCan you build React apps on windows for use on a POSIX system. Could it be that the paths get screwed up. I am just asking, because I don’t have a windows system to test.
The live server is also a windows system? I don’t know if you can build React apps an windows for use on POSIX servers.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] 404 when going to the appThe build process needs the right
package.json
. ReactPress edits thepackage.json
to make the React app work in WordPress.If you ReactPress can’t write it, it won’t work.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] 404 when going to the appIt seems to me, that PHP can’t write your package.json. Which needs to be changed to create a suitable build.
Could be a problem with the container. I remember something similar with another user, that used docker (I think), but I can’t find the thread.
How does your package.json look?
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] 404 when going to the appHmm,
tough to say. Does the page exist?
Otherwise, you could try this tutorial: https://medium.com/swlh/wordpress-create-react-app-integration-30b41657b79e to integrate your React app. I don’t know why ReactPress is not working for you, sorry.
No, I never said it is better than frontity.
ReactPress embeds a React app in your WordPress site. Your pages are normal WordPress which is as fast as SSR, if you use proper caching.
Hope this clarifies things for you.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Apps Not RenderingHmm,
tough to say.
You could try this tutorial: https://medium.com/swlh/wordpress-create-react-app-integration-30b41657b79e to integrate your React app. I don’t know why ReactPress is not working for you, sorry.
The above link is dead, btw.