force https in production
This commit is contained in:
parent
4ef2dcdc04
commit
e769eb0531
|
|
@ -15682,6 +15682,14 @@
|
|||
"resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.11.1.tgz",
|
||||
"integrity": "sha512-lBt428oU03dNUF5qZy5xqEdANaH3L/ilKWQS2t8wD6zF7FypOv46kEkZmg+oHf3n2xgeGYJgbMIGtYExsfKJ8A=="
|
||||
},
|
||||
"react-https-redirect": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/react-https-redirect/-/react-https-redirect-1.1.0.tgz",
|
||||
"integrity": "sha512-HWN/Ftgi31W2OAFVNo5BO1n8C9D2W0L+sque20dKuwh51hQuMwK4bMAtdrYAmapfGGh+53zQ1NsrSacVS1Q/mw==",
|
||||
"requires": {
|
||||
"prop-types": "^15.5.8"
|
||||
}
|
||||
},
|
||||
"react-i18next": {
|
||||
"version": "11.12.0",
|
||||
"resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-11.12.0.tgz",
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@
|
|||
"react-es6-progressbar.js": "^1.1.0",
|
||||
"react-flatpickr": "^3.10.6",
|
||||
"react-hook-form": "^7.11.1",
|
||||
"react-https-redirect": "^1.1.0",
|
||||
"react-i18next": "^11.12.0",
|
||||
"react-image-lightbox": "^5.1.1",
|
||||
"react-image-video-lightbox": "^2.0.1",
|
||||
|
|
|
|||
|
|
@ -3,14 +3,17 @@ import 'react-app-polyfill/stable';
|
|||
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import HttpsRedirect from 'react-https-redirect';
|
||||
import App from './App';
|
||||
import Main from './Main';
|
||||
import './helpers/initFA';
|
||||
import './i18n/config';
|
||||
|
||||
ReactDOM.render(
|
||||
<HttpsRedirect disabled={process.env.NODE_ENV === 'development'}>
|
||||
<Main>
|
||||
<App />
|
||||
</Main>,
|
||||
</Main>
|
||||
</HttpsRedirect>,
|
||||
document.getElementById('main')
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue