diff --git a/.github/workflows/frontend-build.yml b/.github/workflows/frontend-build.yml index 335cdfd0..56960124 100644 --- a/.github/workflows/frontend-build.yml +++ b/.github/workflows/frontend-build.yml @@ -42,6 +42,7 @@ jobs: npm install - name: 'Build' run: | + export NODE_OPTIONS="--max-old-space-size=4096" cd frontend npm run build - name: 'Archive Django Static Build Results' diff --git a/frontend/webpack.config.ts b/frontend/webpack.config.ts index af0c1b26..42c98374 100644 --- a/frontend/webpack.config.ts +++ b/frontend/webpack.config.ts @@ -134,17 +134,17 @@ const configNode = (env: any, argv: { mode: string }): Configuration => { // Copy to nodeapp { from: path.resolve(__dirname, 'static'), - to: path.resolve(__dirname, '../../../nodeapp/static'), + to: path.resolve(__dirname, '../nodeapp/static'), }, // Copy to desktopApp { from: path.resolve(__dirname, 'static'), - to: path.resolve(__dirname, '../../../desktopApp/static'), + to: path.resolve(__dirname, '../desktopApp/static'), }, // Copy to web { from: path.resolve(__dirname, 'static'), - to: path.resolve(__dirname, '../../../web/static'), + to: path.resolve(__dirname, '../web/static'), }, ], }),