This commit is contained in:
hamid zarghami
2025-04-16 11:50:11 +03:30
parent 633d55f0ac
commit d87925998f
4 changed files with 3 additions and 12503 deletions
-8911
View File
File diff suppressed because it is too large Load Diff
-3589
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -1,6 +1,6 @@
import { Suspense } from 'react' import { Suspense } from 'react'
import { dehydrate, HydrationBoundary, QueryClient } from '@tanstack/react-query' import { dehydrate, HydrationBoundary, QueryClient } from '@tanstack/react-query'
import { blogSingleQueryOptions, mostVisitedBlogsQueryOptions } from '../hooks/useBlogsData' import { blogSingleQueryOptions } from '../hooks/useBlogsData'
import { NextPage } from 'next' import { NextPage } from 'next'
import SingleBlogPage from '../components/SingleBlogPage' import SingleBlogPage from '../components/SingleBlogPage'
import Loading from './loading' import Loading from './loading'
@@ -29,7 +29,7 @@ async function BlogContent({ id }: { id: string }) {
await Promise.all([ await Promise.all([
queryClient.prefetchQuery(blogSingleQueryOptions(id)), queryClient.prefetchQuery(blogSingleQueryOptions(id)),
queryClient.prefetchQuery(mostVisitedBlogsQueryOptions) // queryClient.prefetchQuery(mostVisitedBlogsQueryOptions)
]) ])
return ( return (
+1 -1
View File
@@ -4,7 +4,7 @@ import { getToken } from "./func";
const axiosInstance = axios.create({ const axiosInstance = axios.create({
// baseURL: process.env.NEXT_PUBLIC_BASE_URL, // baseURL: process.env.NEXT_PUBLIC_BASE_URL,
baseURL: "http://srv-captain--danak-api:3500", baseURL: "https://api.danakcorp.com",
}); });
axiosInstance.interceptors.response.use( axiosInstance.interceptors.response.use(