change base url
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import { dehydrate, HydrationBoundary, QueryClient } from '@tanstack/react-query'
|
import { dehydrate, HydrationBoundary, QueryClient } from '@tanstack/react-query'
|
||||||
import { blogSingleQueryOptions } from '../hooks/useBlogsData'
|
import { blogSingleQueryOptions } from '../hooks/useBlogsData'
|
||||||
// import SingleBlogPage from '../components/SingleBlogPage'
|
|
||||||
import { NextPage } from 'next'
|
import { NextPage } from 'next'
|
||||||
|
import SingleBlogPage from '../components/SingleBlogPage'
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
const SingleBlog: NextPage<any> = async ({ params }) => {
|
const SingleBlog: NextPage<any> = async ({ params }) => {
|
||||||
@@ -11,8 +11,7 @@ const SingleBlog: NextPage<any> = async ({ params }) => {
|
|||||||
await queryClient.prefetchQuery(blogSingleQueryOptions(params.id))
|
await queryClient.prefetchQuery(blogSingleQueryOptions(params.id))
|
||||||
return (
|
return (
|
||||||
<HydrationBoundary state={dehydrate(queryClient)}>
|
<HydrationBoundary state={dehydrate(queryClient)}>
|
||||||
{/* <SingleBlogPage id={params.id} /> */}
|
<SingleBlogPage id={params.id} />
|
||||||
<div></div>
|
|
||||||
</HydrationBoundary>
|
</HydrationBoundary>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -3,7 +3,8 @@ import { getToken } from "./func";
|
|||||||
// import { Pages } from "./Pages";
|
// import { Pages } from "./Pages";
|
||||||
|
|
||||||
const axiosInstance = axios.create({
|
const axiosInstance = axios.create({
|
||||||
baseURL: process.env.NEXT_PUBLIC_BASE_URL,
|
// baseURL: process.env.NEXT_PUBLIC_BASE_URL,
|
||||||
|
baseURL: "https://api.danakcorp.com",
|
||||||
});
|
});
|
||||||
|
|
||||||
axiosInstance.interceptors.response.use(
|
axiosInstance.interceptors.response.use(
|
||||||
|
|||||||
Reference in New Issue
Block a user