This is not the correct value for the publish directory. As noted in Netlify’s Create React App and Create React App’s Netlify documentation, CRA builds to the build directory.
Thus, the correct publish directory value is frontend/build.
ive searched for this error and it seems like my projectid for my sanity backend which i put in my .env file not sure why its not reading it with process.env.REACT_APP_SANITY_PROJECT_ID.
Have you tried setting it as an environment variable via the Netlify UI?
DO NOTE: Your REACT_APP_SANITY_PROJECT_ID and REACT_APP_SANITY_TOKEN are exposed publicly. If you wish to keep these secret (rather than allow every visitor to know them), do check out
Hi, I am learning react and I have just used Netlify to deploy my site. But I am getting a blank page after deploying it. In my local environment I am able to see the app working, but not on Netlify. I used vite for my react app.