Backend file structure modifications, blogs routes ajustement

This commit is contained in:
gom-by
2025-01-15 15:17:41 +01:00
12 changed files with 329 additions and 221 deletions

View File

@@ -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>

View File

@@ -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,
},
];