removed medusajs SDK using direct fetch

This commit is contained in:
nomad 2025-06-12 22:44:46 +03:00
parent 400655f656
commit bc75aef3c6

View file

@ -1,12 +1,12 @@
import {MedusaClient} from 'sveltekit-medusa-client' // import {MedusaClient} from 'sveltekit-medusa-client'
import { PUBLIC_MEDUSA_URL, PUBLIC_MEDUSA_KEY } from '$env/static/public' // import { PUBLIC_MEDUSA_URL, PUBLIC_MEDUSA_KEY } from '$env/static/public'
export default new MedusaClient(PUBLIC_MEDUSA_URL, { // export default new MedusaClient(PUBLIC_MEDUSA_URL, {
headers: { // headers: {
'x-publishable-api-key': PUBLIC_MEDUSA_KEY // 'x-publishable-api-key': PUBLIC_MEDUSA_KEY
}, // },
retry: 0, // retry: 0,
timeout: 10000 // timeout: 10000
}); // });