My react app is pushed to gitub and built by cloudflare. The build proccess is sucessful, but the page returns 404: Page can’t be found
I have 1 other page up using the same setup and it works perfect.
These are the links of the page that doesn’t work:
Looks like you didn’t set your output directory correctly - Dohyō Interface
[EDIT] What are some common approaches to handle this issue?
Im a bit clueless, because i haven’t added any kind of extra configurations or settings.
It worked perfect on localhost, then i pushed the repo, added cloudflare app to repo, and told cloudflare to build using plain “npm run build”
You just need to set your output directory to
build since that is the folder which CRA builds to - https://dash.cloudflare.com/?to=/:account/pages/view/:pages-project/settings/builds-deployments
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.