Skip to content

Commit

Permalink
chore: 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Baroshem committed Oct 25, 2023
1 parent fe8d7c4 commit 3afcf10
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuxt-medusa",
"version": "0.4.0",
"version": "0.5.0",
"description": "Medusa module for Nuxt",
"license": "MIT",
"type": "module",
Expand Down Expand Up @@ -57,4 +57,4 @@
"installDependencies": false,
"startCommand": "yarn stackblitz"
}
}
}
2 changes: 1 addition & 1 deletion playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default defineNuxtConfig({
},
modules: ['../src/module'],
medusa: {
// baseUrl: 'http://localhost:9000',
baseUrl: 'https://production-like-starter.herokuapp.com',
// apiKey: 'test',
// publishableApiKey: 'test',
// maxRetries: 3
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/composables/useMedusaClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ export const useMedusaClient = (): Medusa => {
const { medusa: config } = useRuntimeConfig().public

// If medusa was registered in global plugin, just return reference to it.
if (config.global) return nuxtApp.$medusa
if (config.global) return nuxtApp.$medusa as Medusa

// Create client if it is not there.
if (!nuxtApp._medusaClient) {
nuxtApp._medusaClient = new Medusa(config)
}

return nuxtApp._medusaClient
return nuxtApp._medusaClient as Medusa
}

1 comment on commit 3afcf10

@vercel
Copy link

@vercel vercel bot commented on 3afcf10 Oct 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nuxt-medusa – ./

nuxt-medusa.vercel.app
nuxt-medusa-baroshem.vercel.app
nuxt-medusa-git-main-baroshem.vercel.app

Please sign in to comment.