# React 18 intermediate

**URL:** <https://forum.codewithmosh.com/t/react-18-intermediate/20144>\
**Category:** React\
**Created:** [May 9, 2023, 10:04am UTC](https://forum.codewithmosh.com/t/react-18-intermediate/20144 "2023-05-09T10:04:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IVIIDEV](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/iviidev/32/5767_2.png) [@IVIIDEV](https://forum.codewithmosh.com/u/IVIIDEV)\
**Post date:** [May 9, 2023, 10:04am UTC](https://forum.codewithmosh.com/t/react-18-intermediate/20144/1 "2023-05-09T10:04:52Z")

</div>

I just finished the react 18 intermediate course. And I have deployed to vercel. However, I noticed that when you click on a game and you see the details. If you refresh that game details page you see 404 error

---

<div class="post-metadata">

**Author:** ![Oleg](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/oleg/32/5916_2.png) [@Oleg](https://forum.codewithmosh.com/u/Oleg)\
**Post date:** [May 9, 2023, 2:17pm UTC](https://forum.codewithmosh.com/t/react-18-intermediate/20144/2 "2023-05-09T14:17:22Z")

</div>

Hm, I get the same error, but it’s easy to fix  
You need to add `vercel.json` file at the root of your project  
With something like this

```auto
{
  "rewrites": [
    {"source": "/(.*)", "destination": "/"}
  ]
}

```

More details in vercel doc: [Configuring Projects with vercel.json | Vercel Docs](https://vercel.com/docs/configuration#project/rewrites)

---

<div class="post-metadata">

**Author:** ![IVIIDEV](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/iviidev/32/5767_2.png) [@IVIIDEV](https://forum.codewithmosh.com/u/IVIIDEV)\
**Post date:** [May 9, 2023, 2:37pm UTC](https://forum.codewithmosh.com/t/react-18-intermediate/20144/3 "2023-05-09T14:37:28Z")

</div>

Thanks. I googled and I fixed it
