Answers for "nuxt redirect traffic from http to https"

1

nuxt redirect traffic from http to 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'})]
  }
Posted by: Guest on August-31-2020

Code answers related to "nuxt redirect traffic from http to https"

Code answers related to "Javascript"

Browse Popular Code Answers by Language