Skip to content

Commit bcdf085

Browse files
pwizlasoheilnikroo
andauthored
sugguest using npm for package manager (#2533) (#2898)
Since we use pnpm to host our Strapi with MySQL, and we face an error on loading the mysql2 package Co-authored-by: Soheil Nikroo <[email protected]>
1 parent 4d99571 commit bcdf085

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docusaurus/docs/cms/deployment.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ If you already created a content structure with the Content-Type Builder and add
3535
Another possible workflow is to first create the content structure locally, push your project to a git-based repository, deploy the changes to production, and only then add content to the production instance.
3636
:::
3737

38+
:::caution
39+
For self-hosted Kubernetes deployments, we recommend using **npm** rather than **pnpm**. `pnpm` aggressive hoisting of dependencies can break native modules, such as `mysql2`— that your application may rely on. `npm` flatter, more predictable `node_modules` layout helps ensure native packages load correctly.
40+
:::
41+
3842
## General guidelines
3943

4044
### Hardware and software requirements
@@ -231,4 +235,4 @@ The following external guide(s), not officially maintained by Strapi, might also
231235

232236
:::strapi Multi-tenancy
233237
If you're looking for multi-tenancy options, the Strapi Blog has a <ExternalLink text="comprehensive guide" to="https://strapi.io/blog/multi-tenancy-in-strapi-a-comprehensive-guide" />.
234-
:::
238+
:::

0 commit comments

Comments
 (0)