diff --git a/docs/basic-features/data-fetching/client-side.md b/docs/basic-features/data-fetching/client-side.md index 6b1768a6e901b..d738cbd2d742d 100644 --- a/docs/basic-features/data-fetching/client-side.md +++ b/docs/basic-features/data-fetching/client-side.md @@ -21,7 +21,7 @@ function Profile() { useEffect(() => { setLoading(true) - fetch('api/profile-data') + fetch('/api/profile-data') .then((res) => res.json()) .then((data) => { setData(data)