From e91891a1bc0d621456ce4f2289bc904b284c4f30 Mon Sep 17 00:00:00 2001 From: James Date: Wed, 8 Jun 2022 00:24:53 -0400 Subject: [PATCH] fix: use env variable for server ssl config #none; Signed-off-by: James --- packages/zapp/console/webpack.dev.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/zapp/console/webpack.dev.config.ts b/packages/zapp/console/webpack.dev.config.ts index 642fc97a8..153cd2587 100644 --- a/packages/zapp/console/webpack.dev.config.ts +++ b/packages/zapp/console/webpack.dev.config.ts @@ -2,7 +2,7 @@ import * as webpack from 'webpack'; import * as HTMLWebpackPlugin from 'html-webpack-plugin'; import * as path from 'path'; import chalk from 'chalk'; -import { LOCAL_DEV_HOST, CERTIFICATE_PATH } from './env'; +import { LOCAL_DEV_HOST, CERTIFICATE_PATH, ADMIN_API_USE_SSL } from './env'; const { merge } = require('webpack-merge'); const fs = require('fs'); @@ -42,7 +42,7 @@ export const clientConfig: webpack.Configuration = merge(common.default.clientCo host: LOCAL_DEV_HOST, historyApiFallback: true, server: { - type: 'https', + type: ADMIN_API_USE_SSL, options: { key: fs.readFileSync(`${CERTIFICATE_PATH}/server.key`), cert: fs.readFileSync(`${CERTIFICATE_PATH}/server.crt`),