Skip to content

Commit f680848

Browse files
committed
Enhance package script: Add commands to copy build artifacts to .next/standalone
1 parent b8bc3e7 commit f680848

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

frontend/apps/gate/scripts/package.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,23 @@ try {
102102
stdio: 'inherit',
103103
});
104104

105+
execSync('cp -r .next/standalone/apps/gate/dist/.next .next/standalone/', {
106+
cwd: distFolder,
107+
stdio: 'inherit',
108+
});
109+
execSync('cp -r .next/standalone/apps/gate/dist/node_modules .next/standalone/', {
110+
cwd: distFolder,
111+
stdio: 'inherit',
112+
});
113+
execSync('cp -r .next/standalone/apps/gate/dist/package.json .next/standalone/', {
114+
cwd: distFolder,
115+
stdio: 'inherit',
116+
});
117+
execSync('rm -rf .next/standalone/apps', {
118+
cwd: distFolder,
119+
stdio: 'inherit',
120+
});
121+
105122
console.log('Copying public and static assets into .next/standalone...');
106123
execSync('cp -r public .next/standalone/', {
107124
cwd: distFolder,

0 commit comments

Comments
 (0)