Hi Support! I’m trying to deploy a react multi-page site with react-router-dom for the first time. The deployment is successful/published, however when I go to the site I am getting the Page Not Found error.
I have added the _redirects file to my site with the below contents.
/* /index.html 200
I’ve attached a screenshot of my site structure in VS Code which you might find helpful.
Any ideas why I am still getting the Page Not Found error?
Hello @melzopla , if possible can you share a link to the repository where you are trying to deploy from. That’s if it’s public and does not contain private information?
It seems your base directory is the problem.
Base directory: optional field for linking monorepos or sites built from a subdirectory of a repository. It specifies the directory that our buildbot changes to before starting a build. It’s where our build system checks for dependency management files such as package.json or .nvmrc. If not set, the base directory defaults to the root of the repository.