redirect-ssl
Hello, I can't correclty configure redirect-ssl on Nuxt 3 (I've read every tutorial I could, and my most recent setup is this :
import { defineNuxtConfig } from 'nuxt/config'
import redirectSSL from 'redirect-ssl'
export default defineNuxtConfig({
modules: ['@nuxtjs/tailwindcss','@formkit/auto-animate','@vueuse/nuxt','@nuxtjs/google-fonts','@unocss/nuxt'],
serverMiddleware: [
redirectSSL.create({
enabled: process.env.NODE_ENV === 'production'
}),
],
Could somebody give me a hint about this ? Thanks !0 Replies