concept production server in category nextjs

appears as: Production Server, production server, The production server, production servers, production server
Next.js in Action

This is an excerpt from Manning's book Next.js in Action.

1.1.2   Production Build and Production Server

Our users will interact with a production build of our React application, served by a production server. The production build is different from the builds that are served to the browser by the dev server. For example, in production we don’t need to listen for new bundles being sent from the server. The bundles are compressed because the time taken to deliver the application to the user matters in this scenario, unlike during development. The compiler used to produce the production bundle might perform several other optimizations, like ensuring that any code that isn’t used by the app isn’t included in the build.

The production server used for React applications is different from the dev server. Its primary role is to handle delivering production code bundles to web browsers that request them. It must be able to handle a large number of concurrent requests without falling over. It’s common for production servers in React applications to serve JavaScript bundles as well as to provide API endpoints that the front-end components use. Two things that production server should never do include watching files for changes or compiling code into JavaScript bundles.