| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import { NextResponse } from 'next/server'
- import type { NextRequest } from 'next/server'
- import {handleCurrency} from "./proxy/currency";
- import {handleAuth} from "./proxy/auth";
- export async function proxy(
- request:NextRequest
- ){
- let response = NextResponse.next();
- /**
- * Currency
- */
- response = handleCurrency(
- request,
- response
- );
- /**
- * Auth
- */
- response = await handleAuth(
- request,
- response
- );
- return response;
- }
- export const config = {
- matcher:[
- "/((?!_next|api|favicon.ico).*)"
- ]
- };
|