How to configure react app with a router and docusaurus app on the /docs path

Hey @karltaylor,
Yup, this looks like the right pattern :slight_smile: It’s similar to this one:

For the baseUrl for your docs site config, I would start with / as described in the Docusaurus docs.

As for your redirect rules, your first one will likely need a * and :splat:

  from = "/docs/*"
  to = "https://docusaurus-website.netlify.com/:splat"
  status = 200
  force = true

And the second one might need to be to = "/index.html".

Want to give this all a try and let us know if it works for you?

1 Like