Connected-react-router: Deploy to Subdirectory

Created on 23 Feb 2018  路  3Comments  路  Source: supasate/connected-react-router

The sysadmin on our team needs to deploy our app to a subdirectory of the root url, rather than a subdomain (as I've always done it in the past).

I found various guides on how to do this with react-router, but nothing for this package.

Is there a straightforward way to do this? And if not...is there a roundabout way? ;)

Thanks!

Most helpful comment

Thanks brother @Ciaran0 it working with this

const history = createBrowserHistory({ basename: '/folder/blah' });

All 3 comments

I would suggest trying

const history = createBrowserHistory({ basename: '/folder/blah' });

Thanks brother @Ciaran0 it working with this

const history = createBrowserHistory({ basename: '/folder/blah' });

A bit of a late reply, sorry about that -- but thank you @Ciaran0!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Hardtack picture Hardtack  路  3Comments

alexseitsinger picture alexseitsinger  路  3Comments

hauptrolle picture hauptrolle  路  3Comments

preciselywilliam picture preciselywilliam  路  4Comments

slightlytyler picture slightlytyler  路  5Comments