Backend file structure modifications, blogs routes ajustement
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"use server";
|
||||
|
||||
export default async function About() {
|
||||
const res = await fetch("http://localhost:8000/api");
|
||||
const res = await fetch("api");
|
||||
console.log(res);
|
||||
return (
|
||||
<div>
|
||||
|
||||
@@ -11,8 +11,8 @@ const nextConfig: NextConfig = {
|
||||
}
|
||||
return [
|
||||
{
|
||||
source: "/api",
|
||||
destination: `http://localhost:${process.env.BACKEND_PORT}`,
|
||||
source: "/api/:path",
|
||||
destination: `http://localhost:${process.env.BACKEND_PORT}/:path`,
|
||||
permanent: false,
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user