Skip to content

Commit

Permalink
fix: use env variable for server ssl config #none;
Browse files Browse the repository at this point in the history
Signed-off-by: James <[email protected]>
  • Loading branch information
james-union committed Jun 8, 2022
1 parent 34c1cbc commit e91891a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/zapp/console/webpack.dev.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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`),
Expand Down

0 comments on commit e91891a

Please sign in to comment.