Deploy
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import Medusa from '@medusajs/js-sdk'
|
||||
|
||||
const MEDUSA_BASE = typeof window !== 'undefined'
|
||||
? window.location.origin + '/api/medusa'
|
||||
: (process.env.MEDUSA_BACKEND_URL || process.env.NEXT_PUBLIC_MEDUSA_BACKEND_URL || 'http://localhost:9000')
|
||||
|
||||
export const medusa = new Medusa({
|
||||
baseUrl: MEDUSA_BASE,
|
||||
publishableKey: process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY,
|
||||
timeout: 90000,
|
||||
})
|
||||
Reference in New Issue
Block a user