Nuxt перенаправить трафик от http на HTTPS

# Try this if you want to enable it only for production: 
import redirectSSL from 'redirect-ssl';

export default {
  serverMiddleware: [redirectSSL.create({enabled: process.env.NODE_ENV === 'production'})]
  }
Terror12