Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
dev/v7-production-failclosed-20261021
ci/public-windows-bridge-probe-20261017
ci/windows-dispatch-bootstrap-20261016
ci/windows-dual-app-lab-20261016
dev/v7-production-failclosed-20261021
feature/reconciliation-guard-20261013
main
phase-1-foundation
phase-1-implementation
phase-2-treasury-core
phase-3-banking-reconciliation
phase-4-operations-enterprise-ux
phase-5-hardening-release
phase-6-production-platform
phase-7-production-infrastructure-bank-golive
phase-7-sql-readonly-ux-20261015
transfer-exe-to-drive-20261006
| 1 | import {NextRequest, NextResponse} from 'next/server'; |
| 2 | import {isProductionOperationBlocked} from './platform/identity/production-http-guard'; |
| 3 | |
| 4 | /** |
| 5 | * Production requests must not reach tenant data, server actions, or |
| 6 | * operational routes until external identity and infrastructure are provisioned. |
| 7 | * No client-supplied header can bypass this gate. |
| 8 | */ |
| 9 | export function proxy(request:NextRequest){ |
| 10 | if(!isProductionOperationBlocked(process.env,request.nextUrl.pathname))return NextResponse.next(); |
| 11 | return new NextResponse('دسترسی عملیاتی مسدود است',{ |
| 12 | status:403, |
| 13 | headers:{ |
| 14 | 'Content-Type':'text/plain; charset=utf-8', |
| 15 | 'Cache-Control':'no-store', |
| 16 | 'X-Content-Type-Options':'nosniff', |
| 17 | 'X-Frame-Options':'DENY' |
| 18 | } |
| 19 | }); |
| 20 | } |
| 21 | |
| 22 | export const config={ |
| 23 | matcher:['/((?!_next/static/|_next/image(?:/|$)|favicon[.]ico$).*)'] |
| 24 | }; |