رفع باگ: تصحیح مسیردهی ارتباط کلاینت با سرویس و حل خطای دسترسی شبکه به همراه افزودن آیکون سامانه

This commit is contained in:
mjalmoudy94
2026-10-13 08:05:58 +00:00
parent 0b72c4ec6d
commit 5a64ebf560
8 changed files with 55 additions and 7 deletions
+9 -1
View File
@@ -4,7 +4,15 @@ const nextConfig = {
// Workspace packages ship TypeScript source, so Next must transpile them.
transpilePackages: ["@agy/ui", "@agy/contracts"],
env: {
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL ?? "http://localhost:8000",
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL ?? "",
},
async rewrites() {
return [
{
source: "/api/:path*",
destination: "http://127.0.0.1:8000/api/:path*",
},
];
},
};