Open jamesknelson opened 5 years ago
@jamesknelson I've done it by changing the root mount, but couldn't figure out how to do it with the second option. Do you have any example on how that works? I can probably write the docs for that.
Hey @jamesknelson did you have any success with this? I am very confused on how to do it, I keep getting a 404 error whenever I change the routes. I'm doing it in multiple places, should I do it in just one place?
Often times you'll want the blog to be mounted not at the root path, but under a path like
blog
.To do this, there are a couple options:
routes
object to the parent up using its root mount:mount({ '/blog': blogRoutes })
basename
prop andPUBLIC_URL
to build the blog so that it can be mounted under a non-root URLWould appreciate any help on writing these docs, as it's not something I've done with create-react-blog, although I know other users are doing so.