Skip to content

feat: migrate to pnpm monorepo with shared Strapi CMS#566

Open
jwena611-cyber wants to merge 13 commits intomedusajs:mainfrom
jwena611-cyber:monorepo-migration-20260420
Open

feat: migrate to pnpm monorepo with shared Strapi CMS#566
jwena611-cyber wants to merge 13 commits intomedusajs:mainfrom
jwena611-cyber:monorepo-migration-20260420

Conversation

@jwena611-cyber
Copy link
Copy Markdown

Summary

  • migrate repository layout to a pnpm monorepo with packages/rh-storefront, packages/strapi-cms, packages/shared-types, packages/seed, and packages/id-studio
  • integrate Strapi CMS content models, tokenized fetch clients, and webhook-based revalidation for RH and id-studio
  • add dockerized Postgres services and seed/shared-type workflows to support local multi-site CMS development

Test plan

  • pnpm --filter "./packages/rh-storefront" exec tsc --noEmit
  • pnpm --filter id-studio exec tsc --noEmit
  • curl -L http://localhost:8000/gb returns 200
  • curl http://localhost:8001/ returns 200
  • curl http://localhost:1337/admin returns 200

Made with Cursor

Jason Wen added 12 commits March 31, 2026 01:37
Switch package management to pnpm by updating packageManager, generating pnpm-lock.yaml, and removing legacy yarn/npm lockfiles to standardize the install workflow before monorepo migration.

Made-with: Cursor
Move the existing storefront into packages/rh-storefront and introduce workspace root metadata so the repository can evolve into a pnpm monorepo without losing git history.

Made-with: Cursor
Set up Strapi CMS with RH/IDS content schemas, tightened public permissions, and token/webhook-ready infrastructure so both storefronts can integrate against a shared CMS safely.

Made-with: Cursor
Add shared type definitions and a reusable seed workspace so Strapi-generated typings can be reused across apps and baseline CMS content can be populated consistently.

Made-with: Cursor
Wire RH storefront to shared Strapi CMS data with token-authenticated fetch utilities and tag-based on-demand revalidation so content updates can propagate through the frontend safely.

Made-with: Cursor
Use an explicit workspace path filter so the RH dev script resolves reliably in the monorepo and matches the migration playbook flow.

Made-with: Cursor
Scaffold id-studio as a new workspace and wire it to shared Strapi client/revalidate flows so seeded IDS content can render and refresh via webhook-driven ISR.

Made-with: Cursor
Made-with: Cursor

# Conflicts:
#	package-lock.json
#	package.json
#	packages/rh-storefront/src/modules/layout/components/cart-dropdown/index.tsx
#	packages/rh-storefront/src/modules/products/components/product-preview/price.tsx
#	packages/rh-storefront/src/modules/store/components/pagination/index.tsx
#	src/app/layout.tsx
#	src/modules/home/components/category-grid/index.tsx
#	src/modules/layout/templates/footer/index.tsx
#	src/modules/layout/templates/nav/index.tsx
#	src/modules/store/components/refinement-list/index.tsx
#	src/modules/store/templates/index.tsx
#	yarn.lock
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 20, 2026

Someone is attempting to deploy a commit to the medusajs Team on Vercel.

A member of the Team first needs to authorize it.

Made-with: Cursor

# Conflicts:
#	package.json
#	yarn.lock
@jwena611-cyber
Copy link
Copy Markdown
Author

Synced this branch with the latest upstream \ and resolved merge conflicts.\n\nCurrent status:\n- PR is now mergeable\n- Type checks passed locally for \ and \n- Remaining blocker is Vercel authorization required for this fork-based PR\n\nCould a maintainer authorize the Vercel deploy checks for this PR?

@jwena611-cyber
Copy link
Copy Markdown
Author

Synced this branch with the latest upstream main and resolved merge conflicts.

Current status:

  • PR is now mergeable
  • Type checks passed locally for packages/rh-storefront and packages/id-studio
  • Remaining blocker is Vercel authorization required for this fork-based PR

Could a maintainer authorize the Vercel deploy checks for this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant