removed medusajs SDK using direct fetch
This commit is contained in:
parent
400655f656
commit
bc75aef3c6
1 changed files with 9 additions and 9 deletions
|
@ -1,12 +1,12 @@
|
|||
import {MedusaClient} from 'sveltekit-medusa-client'
|
||||
import { PUBLIC_MEDUSA_URL, PUBLIC_MEDUSA_KEY } from '$env/static/public'
|
||||
// import {MedusaClient} from 'sveltekit-medusa-client'
|
||||
// import { PUBLIC_MEDUSA_URL, PUBLIC_MEDUSA_KEY } from '$env/static/public'
|
||||
|
||||
export default new MedusaClient(PUBLIC_MEDUSA_URL, {
|
||||
headers: {
|
||||
'x-publishable-api-key': PUBLIC_MEDUSA_KEY
|
||||
},
|
||||
retry: 0,
|
||||
timeout: 10000
|
||||
});
|
||||
// export default new MedusaClient(PUBLIC_MEDUSA_URL, {
|
||||
// headers: {
|
||||
// 'x-publishable-api-key': PUBLIC_MEDUSA_KEY
|
||||
// },
|
||||
// retry: 0,
|
||||
// timeout: 10000
|
||||
// });
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue