yarn add razzle-plugin-devcert
Add it to your razzle.config.js:
// razzle.config.js module.exports = { plugins: ['devcert'], };