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:
@@ -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;
|
||||
Reference in New Issue
Block a user