Medusa module for Nuxt
Nuxt Medusa is a module for Nuxt that provides a wrapper around @medusajs/medusa-js, allowing users to easily integrate Medusa functionalities into their Nuxt applications. With Nuxt Medusa, users can take advantage of handy composables like useMedusaClient and seamlessly fetch data from Medusa in their Nuxt projects.
To set up Nuxt Medusa in your project, follow these steps:
nuxt-medusa dependency to your project.nuxt-medusa to the modules section of nuxt.config.ts..env file with the MEDUSA_URL variable.If you encounter problems with CORS from Medusa, ensure that process.env.STORE_CORS in the medusa-config.js file is pointing to your local Nuxt project. By default, Medusa has CORS set for http://localhost:8000, while Nuxt runs on http://localhost:3000 by default.
Nuxt Medusa is a powerful module for Nuxt that simplifies the integration of Medusa functionalities into Nuxt applications. With its intuitive setup process and handy composables, developers can seamlessly fetch data from Medusa and enhance their Nuxt projects.