Trying the docker buildx using git repository.

Static mostly done.
good progress on store
This commit is contained in:
2024-10-12 23:24:55 +05:30
parent 4df566df5e
commit 00fd57f256
36 changed files with 10118 additions and 644 deletions

23
src/middleware.ts.disable Normal file
View 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()
}