![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
gatsby-source-medusa
Advanced tools
Gatsby source plugin for building websites using Medusa Commerce as a data source
Medusa is an open-source headless commerce engine that enables developers to create amazing digital commerce experiences. This is a Gatsby source plugin for building websites using Medusa as a data source.
We're not actively maintaining this repository. So, it may not work as expected with the latest versions of Medusa. Contributions are highly appreciated.**
This takes you through the minimal steps to see your Medusa data in your Gatsby site's GraphiQL explorer.
Install the source plugin to your Gatsby project using your favorite package manager.
npm install gatsby-source-medusa
yarn add gatsby-source-medusa
Add the plugin to your gatsby-config.js
:
require("dotenv").config()
module.exports = {
plugins: [
{
resolve: "gatsby-source-medusa",
options: {
storeUrl: process.env.MEDUSA_URL,
authToken: process.env.MEDUSA_AUTH_TOKEN //This is optional
},
},
...,
],
}
The plugin accepts two options storeUrl
and authToken
. The storeUrl
option is required and should point to the server where your Medusa instance is hosted (this could be localhost:9000
in development). The authToken
option is optional, and if you add it the plugin will also source orders from your store.
You should now be able to view your stores MedusaProducts
, MedusaRegions
, MedusaCollections
, and MedusaOrders
(if enabled) in your Gatsby site's GraphiQL explorer.
FAQs
Gatsby source plugin for building websites using Medusa Commerce as a data source
The npm package gatsby-source-medusa receives a total of 40 weekly downloads. As such, gatsby-source-medusa popularity was classified as not popular.
We found that gatsby-source-medusa demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.