disable TLD reject in SSR

This commit is contained in:
Daniel Ternyak 2021-09-30 12:05:06 -04:00
parent 19193aed17
commit 9b7df42c5e
No known key found for this signature in database
GPG Key ID: DF212D2DC5D0E245
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@ import log from './log';
import serverRender from './render';
import i18n from './i18n';
// @ts-ignore
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;
process.env.SERVER_SIDE_RENDER = 'true';
const isDev = process.env.NODE_ENV === 'development';