Skip to content

Commit 993d52a

Browse files
authored
Remove @next/swc from runtime deps package (#32)
1 parent 5b38a48 commit 993d52a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/r_build-app.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ jobs:
131131
cp -R ./packages/app/.next ./packages/cdk-construct/lib/${{ inputs.APP_CONSTRUCT_FOLDER_NAME }}
132132
rm -rf ./packages/cdk-construct/lib/${{ inputs.APP_CONSTRUCT_FOLDER_NAME }}/.next/cache
133133
cp -R ./packages/app/next.config.js ./packages/cdk-construct/lib/${{ inputs.APP_CONSTRUCT_FOLDER_NAME }}
134+
# Remove the SWC files from the runtime deps (these are dev time only)
135+
rm -rf ./packages/app-entry/runtime-deps/node_modules/@next/swc-*
134136
cp -R ./packages/app-entry/runtime-deps/node_modules ./packages/cdk-construct/lib/${{ inputs.APP_CONSTRUCT_FOLDER_NAME }}
135137
136138
# Prevent the static files from getting pulled into the Lambda

0 commit comments

Comments
 (0)