This commit is contained in:
hamid zarghami
2025-04-16 11:45:47 +03:30
parent fd220a19ae
commit 633d55f0ac
4 changed files with 161 additions and 10 deletions
+5 -2
View File
@@ -26,8 +26,11 @@ const SingleBlog: NextPage<PageProps> = async ({ params }) => {
async function BlogContent({ id }: { id: string }) {
console.log(id)
const queryClient = new QueryClient()
await queryClient.prefetchQuery(blogSingleQueryOptions(id))
await queryClient.prefetchQuery(mostVisitedBlogsQueryOptions)
await Promise.all([
queryClient.prefetchQuery(blogSingleQueryOptions(id)),
queryClient.prefetchQuery(mostVisitedBlogsQueryOptions)
])
return (
<HydrationBoundary state={dehydrate(queryClient)}>
+1 -1
View File
@@ -4,7 +4,7 @@ import { getToken } from "./func";
const axiosInstance = axios.create({
// baseURL: process.env.NEXT_PUBLIC_BASE_URL,
baseURL: "https://api.danakcorp.com",
baseURL: "http://srv-captain--danak-api:3500",
});
axiosInstance.interceptors.response.use(