Trying the docker buildx using git repository.
Static mostly done. good progress on store
This commit is contained in:
23
src/middleware.ts.disable
Normal file
23
src/middleware.ts.disable
Normal file
@ -0,0 +1,23 @@
|
||||
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()
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user