handel login page and logout alson andel create order page to client and build spinner page and complet project structuer , create logo tamplet

This commit is contained in:
m7amedez5511
2026-06-08 17:24:53 +03:00
parent 5554f5238c
commit 70853958f5
27 changed files with 1425 additions and 303 deletions

View File

@@ -1,7 +1,19 @@
// ─────────────────────────────────────────────
// next.config.ts
// Proxy للـ API عشان نتفادى CORS في المتصفح
// ─────────────────────────────────────────────
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
async rewrites() {
return [
{
// كل طلب لـ /api/proxy/... يتحول لـ logiapi.slash.sa/api/v1/...
source: "/api/proxy/:path*",
destination: "https://logiapi.slash.sa/api/v1/:path*",
},
];
},
};
export default nextConfig;
export default nextConfig;