-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to deploy ant-design-pro under subfolder? #274
Comments
Try this remix-run/react-router#353 (comment) |
@afc163 Thanks, I reviewed rearc-router v4 docs. I found out that Lines 54 to 61 in 7532598
to: <LocaleProvider locale={zhCN}>
<BrowserRouter basename="myapp">
<Switch>
<Route path="/user" render={props => <UserLayout {...props} {...passProps} />} />
<Route path="/" render={props => <BasicLayout {...props} {...passProps} />} />
</Switch>
</BrowserRouter>
</LocaleProvider> Solve it! |
当下的pro master模板如何使用publicPath呢? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, everyone. I want to deploy ant-design-pro under subfolder with using
browserHistory
instead ofhashHistory
. This subfolder is '/myapp'. In this way, this entry point would like this:I look around roadhog tutorial docs and I found out that I should config
.roadhogrc
by adding:It works out when I visit
http://localhost:8000/myapp/
. When I jump to other route by clicking navbar, theurl
changes tohttp://localhost:8000/list/table-list
, which I expected ishttp://localhost:8000/myapp/list/table-list
. How should I figure it out?The text was updated successfully, but these errors were encountered: