How do I set up SSL in react ionic cordova app?

Hi

I found set ups of ssl cert in angular project but not in react.

Do I have to set up certification in packege.json like:

“scripts”: {

"start": "HTTPS=true SSL_CRT_FILE=./.certificates/xxx.cer react-scripts start",

"build": "react-scripts build",

"test": "react-scripts test",

"eject": "react-scripts eject"

},

or do I have to set it up somewhere else? Thank you for your help!