Only install non-dev packages on production #285
Labels
Engineering
Technology and Development Track
Size: L
Type: Security
Tickets that directly improve security
Milestone
Description
Currently, we are installing all packages on production. We don't need to install dev packages on production. It introduces a small risk by increasing our production vulnerability surface.
Context:
yarn install --production
breaks everythingyarn build
expects more dependencies to exist than are currently in dependencies (such as typescript which is in devDependencies)yarn build
builds stories, but shouldn't. There's no --exclude option for next buildPossible solutions:
next build <dir>
Acceptance Criteria
devDependencies
are not installed for production releasesThe text was updated successfully, but these errors were encountered: