How do you add a project that was made with Create React App to an existing site?

I have a marketing page that goes to "website.com/", and I want the actual react-app to be something like "website.com/app". I've tried changing the "homepage" in package.json to that, but I don't think I'm using the build folder correctly.

edit: 'hacked' the issue by instead having the marketing page at "website.com" and have it link to "app.website.com" as a subdomain for the React App. So darn hacky but it accomplishes goal.

Posted Jun 22, 2019, 11:36 PM UTC · edited

89
Loading comments…