kakawa/src/middleware.ts.disable
Amritanshu 00fd57f256 Trying the docker buildx using git repository.
Static mostly done.
good progress on store
2024-10-12 23:50:38 +05:30

24 lines
529 B
Plaintext

import { HttpTypes } from "@medusajs/types"
import { NextRequest, NextResponse } from "next/server"
const BACKEND_URL = process.env.NEXT_PUBLIC_MEDUSA_BACKEND_URL
const PUBLISHABLE_API_KEY = process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY
const regionMapCache = {
regionMap: new Map<string, HttpTypes.StoreRegion>(),
regionMapUpdated: Date.now(),
}
/**
* Middleware to handle region selection and onboarding status.
*/
export async function middleware(request: NextRequest) {
return NextResponse.next()
}