Deploying React-Admin app

Hello,

We have been trying deploying a React-Admin demo app but we ran into a serious of problems. We managed to solve the errors related to the build, but the deploy is still not successful, because it seems that the publish folder is not correct. We tried with the root folder and with build folder. With the root the deploy is successful, but then it does not get proxied to the right folder (https://stellular-mooncake-de67c7.netlify.app/). With build, it escapes because it cannot find the build folder. Running mkdir build before the build solves this problem but the app is still not deployed in the right folder because we still get a 404.

Both yarn and npm gave the same problem, we are running out of ideas. Can anybody help? Thank you in advance.

Can you share your repository?

https://mmoreschi.stackstorage.com/s/UnVBEU2kUtk42QjQ

Hey @moreschi-enterprises,

There seem to be multiple different things that you’re trying. I think the best thing for you would be to start over with a clean slate.

Create a netlify.toml with the following content:

[build]
  base = "/"
  command = "npm run build"
  publish = "build"
  [build.environment]
    NODE_VERSION = "14"

Try that and let us know how it goes.