When deploying my react application, i receive the following error, after which the deployment fails.
The build failed because the process exited too early. This probably means the system ran out of memory or someone called `kill - [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: ‘onBeforeSetupMiddleware’ option is deprecated. Please use the ‘setupMiddlewares’ option. Starting the development server…
The Starting the development server... in your logs implies you’re trying to run react-scripts start.
react-scripts is not a production-ready tool for serving a React app, and as a development tool will use more memory.
React apps are usually built for production and then served. This can often be done with a Static Site, as per our guide: **Deploy a Create React App Static Site.**