netlify-cli

Netlify does not recognize the URL params when using react-router-dom

穿精又带淫゛_ 提交于 2021-01-21 16:06:28
问题 I am creating a react app that uses react router. I am using the router to match the paths like :/bankName-:credit and it works fine in local development. The only require path for my application is :/bankName-:credit and every other path will hit 404 . But when I deploy this app to netlify then for default it goes to / and shows a custom 404 . That's all good. But now if I try to go to /hdfc-500 then it gives a netlify not found message that page not found . I tried using _redirects as

Netlify does not recognize the URL params when using react-router-dom

强颜欢笑 提交于 2021-01-21 16:04:11
问题 I am creating a react app that uses react router. I am using the router to match the paths like :/bankName-:credit and it works fine in local development. The only require path for my application is :/bankName-:credit and every other path will hit 404 . But when I deploy this app to netlify then for default it goes to / and shows a custom 404 . That's all good. But now if I try to go to /hdfc-500 then it gives a netlify not found message that page not found . I tried using _redirects as

Netlify does not recognize the URL params when using react-router-dom

我是研究僧i 提交于 2021-01-21 16:01:37
问题 I am creating a react app that uses react router. I am using the router to match the paths like :/bankName-:credit and it works fine in local development. The only require path for my application is :/bankName-:credit and every other path will hit 404 . But when I deploy this app to netlify then for default it goes to / and shows a custom 404 . That's all good. But now if I try to go to /hdfc-500 then it gives a netlify not found message that page not found . I tried using _redirects as