Skip to content

Commit b5125b2

Browse files
committed
fix(ci): manually copy @next scope to standalone build to fix missing @next/env
1 parent 5b4063b commit b5125b2

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
@@ -46,6 +46,8 @@ jobs:
4646
cp -rL node_modules/styled-jsx .next/standalone/node_modules/
4747
rm -rf .next/standalone/node_modules/@swc
4848
cp -rL node_modules/@swc .next/standalone/node_modules/
49+
rm -rf .next/standalone/node_modules/@next
50+
cp -rL node_modules/@next .next/standalone/node_modules/
4951
5052
mkdir deployment
5153
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
@@ -47,6 +47,8 @@ jobs:
4747
cp -rL node_modules/styled-jsx .next/standalone/node_modules/
4848
rm -rf .next/standalone/node_modules/@swc
4949
cp -rL node_modules/@swc .next/standalone/node_modules/
50+
rm -rf .next/standalone/node_modules/@next
51+
cp -rL node_modules/@next .next/standalone/node_modules/
5052
5153
mkdir deployment
5254
rsync -aL .next/standalone/ deployment/ || echo "Rsync: Some files could not be copied (likely broken symlinks)"

0 commit comments

Comments
 (0)