Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
medusa-plugin-strapi-ts
Advanced tools
A plugin for medusa to use strapi in the backend as the cms in typescript
Strapi is an amazing headless cms, this plugin helps bridge the medusajs and strapi. This is based on the medusa-plugin-strapi developed by DeathWish, and additionally implements handshaking between strapi and medusa.
This plugin hands over control of strapi to Medusa. And medusa is purely used as a content engine.
You need to install the strapi-plugin-medusajs and enable it in strapi and follow the instructions in its readme file.
yarn add medusa-plugin-strapi-ts
You can register the plugin like so
{
resolve: "medusa-plugin-strapi-ts",
options: {
...strapiOptions
}
},
where the strapiOptions will be like
const strapiOptions =
{
encryption_algorithm: "aes-256-cbc",
strapi_protocol: process?.env?.STRAPI_PROTOCOL,
strapi_default_user: {
username: process?.env?.STRAPI_MEDUSA_USER,
password: process?.env?.STRAPI_MEDUSA_PASSWORD,
email: process?.env?.STRAPI_MEDUSA_EMAIL,
confirmed: true,
blocked: false,
provider: "local"
},
strapi_host: process?.env?.STRAPI_SERVER_HOSTNAME,
strapi_admin: {
username:
process?.env?.STRAPI_SUPER_USERNAME ||
"SuperUser",
password:
process?.env?.STRAPI_SUPER_PASSWORD ||
"MedusaStrapi1",
email:
process?.env?.STRAPI_SUPER_USER_EMAIL ||
"support@medusa-commerce.com"
},
strapi_port: process?.env?.STRAPI_PORT,
strapi_secret: process?.env?.STRAPI_SECRET,
strapi_public_key: process?.env?.STRAPI_PUBLIC_KEY,
strapi_ignore_threshold: 3
}
Install and fire away
the package uses axios retry with a default fixed retry interval of 400seconds for any 429 errors. I'm happy to accept a PR which defines a better way of dealing with 429 errors
I love developing software and building products that are useful. I sincerely hope you this project helps you. I'm happy to help if you need support setting this up. Give a ⭐️ if this project helped you! Catch me on discord @govdiw
As you might have guessed by now that considerable time and effort has gone into make this product useful to the community at large, and I'd love to keep maintaining and upgrading this. However, As much as we love FOSS software, nothing in this world is truly free. Please help by [sponsoring or supporting the project]. (https://github.com/sponsors/SGFGOV)
v4.4.12
20 May 2023
#22
#20
#19
#18
#17
#6
#2
#4
#5
#3
#1
#4
#3
#8
#6
#5
#4
#3
#2
#1
#1
32d7230
d8bf32c
ac2f9a6
FAQs
A plugin for medusa to use strapi in the backend as the cms in typescript
The npm package medusa-plugin-strapi-ts receives a total of 152 weekly downloads. As such, medusa-plugin-strapi-ts popularity was classified as not popular.
We found that medusa-plugin-strapi-ts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.