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