Production Settings for Vaadin 14

Hi guys, How do you build your Vaadin 14 with Spring Boot? I cant seem to run mine after building my jar. I just have a default config with my application.properties and POM.

Thank you,

Failed to find the following imports in the `node_modules` tree:
      - @vaadin/flow-frontend/contextMenuConnector-es6.js
      - @vaadin/flow-frontend/comboBoxConnector.js
      - @vaadin/flow-frontend/gridConnector.js
      - @vaadin/flow-frontend/contextMenuConnector.js
      - @vaadin/flow-frontend/flow-component-renderer.js
      - @vaadin/flow-frontend/gridConnector-es6.js
      - @vaadin/flow-frontend/comboBoxConnector-es6.js
      - @vaadin/flow-frontend/vaadin-grid-flow-selection-column.js
  If the build fails, check that npm packages are installed.

  To fix the build remove `node_modules` directory to reset modules.
  In addition you may run `npm install` to fix `node_modules` tree structure.

already tried

mvn clean,
mvn clean package -Pproduction,
mvn clean install -Pproduction

nvm guys, problem solved…

you need to add this to you application.properties

vaadin.productionMode = true <----- comment this line when in dev mode

spring.servlet.multipart.enabled = false

Jet Beray:
nvm guys, problem solved…

you need to add this to you application.properties

vaadin.productionMode = true <----- comment this line when in dev mode

spring.servlet.multipart.enabled = false

Thank you, you solved my problem too :slight_smile:
https://vaadin.com/forum/thread/17937789/production-mode

same problem, but I cant find vaadin.productionMode in list in application.properties I use 14.1.3

Well, just add line
vaadin.productionMode = true