Skip to content

Commit 735dd2b

Browse files
committed
fix(ci): copy @next/env from pnpm store to fix MODULE_NOT_FOUND
1 parent b5125b2 commit 735dd2b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/cms_cms.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
cp -rL node_modules/@swc .next/standalone/node_modules/
4949
rm -rf .next/standalone/node_modules/@next
5050
cp -rL node_modules/@next .next/standalone/node_modules/
51+
# Copy @next/env directly from pnpm store (wildcard for version toggle)
52+
cp -r node_modules/.pnpm/@next+env*/node_modules/@next/env .next/standalone/node_modules/@next/
5153
5254
mkdir deployment
5355
rsync -aL .next/standalone/ deployment/ || echo "Rsync: Some files could not be copied (likely broken symlinks)"

.github/workflows/main_cms.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
cp -rL node_modules/@swc .next/standalone/node_modules/
5050
rm -rf .next/standalone/node_modules/@next
5151
cp -rL node_modules/@next .next/standalone/node_modules/
52+
# Copy @next/env directly from pnpm store (wildcard for version toggle)
53+
cp -r node_modules/.pnpm/@next+env*/node_modules/@next/env .next/standalone/node_modules/@next/
5254
5355
mkdir deployment
5456
rsync -aL .next/standalone/ deployment/ || echo "Rsync: Some files could not be copied (likely broken symlinks)"

0 commit comments

Comments
 (0)