diff --git a/src/app/blogs/page.jsx b/src/app/blogs/page.jsx index 54ded16..5179a43 100644 --- a/src/app/blogs/page.jsx +++ b/src/app/blogs/page.jsx @@ -4,9 +4,14 @@ import React from "react"; async function getData(sParams) { // + const query = { + page: 0, + ...sParams, + }; + const res = await fetch( `${process.env.NEXT_PUBLIC_API_URL}/blog?` + - new URLSearchParams({ ...sParams }) + new URLSearchParams({ ...query }) // ?page=${params.page ?? 0} // { cache: "no-cache" } );