Deployment
To deploy your Bold Reports® Angular Report Viewer application to a remote server, create a production build and copy the output directory to a web server.
To create a production build, run the following command and copy the output directory to a web server.
node_modules\.bin\ng build --prodRefer to the Angular deployment guide to learn more about deploying your Angular application.
If you get the error FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory, add --max_old_space_size=xx to the ngc.cmd and ng.cmd files in the node_modules\.bin folder.
Modify ngc.cmd
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" --max_old_space_size=8192 "%~dp0\..\@angular\compiler-cli\src\main.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node --max_old_space_size=8192 "%~dp0\..\@angular\compiler-cli\src\main.js" %*
)Modify ng.cmd
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" --max_old_space_size=8192 "%~dp0\..\@angular\cli\bin\ng" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node --max_old_space_size=8192 "%~dp0\..\@angular\cli\bin\ng" %*
)