Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

force https nuxt heroku

// Nuxt @ v2.15.6
// 1. Install redirectSSL
npm i redirect-ssl

// 2. Import package in nuxt.config.js
import redirectSSL from 'redirect-ssl';

// 3. Add redirect to nuxt.config.js (make sure you have environment variables in Heroku)
export default {
   ...
   serverMiddleware: [
     redirectSSL.create({enabled: process.env.NODE_ENV === 'production'})
   ],
   ...
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to add jquery.zoom in angular 
Javascript :: grepper answer 
Javascript :: give multiple class and id for each owl carousel function 
Javascript :: react Alert when rate changes 
Javascript :: color blur in echart 
Javascript :: storing jason format in perl and retriving it 
Javascript :: .datepicker make modal exit 
Javascript :: how to swap two variable values in js 
Javascript :: display toggle jquery for few seconds 
Javascript :: update mongoose 
Javascript :: Make JSON grep-able via GRON 
Javascript :: how get state global in modules in vue 
Javascript :: how to filter data in javascript object 
Javascript :: parse int stackoverflow 
Javascript :: Install Date-Time in express.js 
Javascript :: dynamic components 
Javascript :: node js euro sign 
Javascript :: animating in activityindicator 
Javascript :: javascript concurrency 
Javascript :: express plus make router 
Javascript :: how to change the backgroung of one button when click the other one 
Javascript :: add operator in javascript 
Javascript :: javascript is a compiled language 
Javascript :: navigation with load page in angluar 
Javascript :: unban command discord.js v12 
Javascript :: javascript remove null object 
Javascript :: how to stop re rendering in react hooks 
Javascript :: parse youtu.be url and get time 
Javascript :: throttle ajax requests 
Javascript :: javascript use numbers as objects 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =