Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #44 from prydonius/hash-routing
Browse files Browse the repository at this point in the history
use hash router to support serving from subpath
  • Loading branch information
ngtuna authored Nov 15, 2017
2 parents 0520417 + eeb4828 commit 63581b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
image: kubeless-ui-dev
build:
context: .
dockerfile: Dockerfile
dockerfile: Dockerfile-prod
command: bash -c "yarn install && npm rebuild node-sass && yarn run dev"
environment:
NODE_ENV: development
Expand Down
4 changes: 2 additions & 2 deletions src/components/AppContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

// @flow
import React, { Component } from 'react'
import { browserHistory, Router } from 'react-router'
import { hashHistory, Router } from 'react-router'
import { Provider } from 'react-redux'
import getMuiTheme from 'material-ui/styles/getMuiTheme'
import lightBaseTheme from 'material-ui/styles/baseThemes/lightBaseTheme'
Expand Down Expand Up @@ -48,7 +48,7 @@ export default class AppContainer extends Component {
<Provider store={store}>
<MuiThemeProvider muiTheme={muiTheme}>
<div style={{ height: '100%' }}>
<Router history={browserHistory} children={routes} />
<Router history={hashHistory} children={routes} />
</div>
</MuiThemeProvider>
</Provider>
Expand Down
2 changes: 1 addition & 1 deletion src/utils/Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class Api {
url: URL, method, json
}

return fetch('/proxy', {
return fetch('proxy', {
method: 'post',
headers,
body: JSON.stringify(forwardBody)
Expand Down

0 comments on commit 63581b7

Please sign in to comment.