exter
This commit is contained in:
Generated
-8911
File diff suppressed because it is too large
Load Diff
Generated
-3589
File diff suppressed because it is too large
Load Diff
@@ -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
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user