Skip to content
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

Github Pages로 호스팅 시에 SPA routing이 안 됨 #20

Closed
seongbin9786 opened this issue Dec 13, 2018 · 2 comments
Closed

Github Pages로 호스팅 시에 SPA routing이 안 됨 #20

seongbin9786 opened this issue Dec 13, 2018 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@seongbin9786
Copy link
Member

React-router 기반의 SPA 라우팅이 github pages에서 작동하지 않는 것 같습니다.

확인 가능한 예제

  1. Payment: https://orderbook.logostory.io/payment
  2. Cart: https://orderbook.logostory.io/cart

원본 코드

<BrowserRouter>
    <Switch>
        <Route exact path="/" component={Loading} />
        <Route path="/basic" component={BasicPage} />
        <Route path="/cart" component={CartPage} /> 
        <Route path="/payment" component={Payment} />
    </Switch>
</BrowserRouter>
@torypapa
Copy link
Member

이거 한번 확인 해보시겠어요? facebook/create-react-app#1765

facebook/create-react-app#1765 (comment) @gaearon 이라는 친구가 대답해 놓은게 답이 될듯한데요

@seongbin9786
Copy link
Member Author

일단 HashRouter로 됐고 현재 더 이상 큰 문제가 없으므로 이슈를 닫습니다~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants