StarWarsAPI : 2021.02.04 React-Router-Dom Page Refresh 404 Error

오범준·2021년 2월 24일
0

1st Screen

After Refresh

Solution : Modify Webpack Config !

devServer: {
        historyApiFallback: true, // react-router-dom 새로고침 기능
        publicPath : '/dist/',
        hot : true
    }

add 'historyApiFallback' as 'true'

profile
Dream of being "물빵개" ( Go abroad for Dance and Programming)

0개의 댓글