diff --git a/packages/docz-core/src/bundlers/webpack/config.ts b/packages/docz-core/src/bundlers/webpack/config.ts index 401431804..033d0c02a 100644 --- a/packages/docz-core/src/bundlers/webpack/config.ts +++ b/packages/docz-core/src/bundlers/webpack/config.ts @@ -42,7 +42,7 @@ const uglify = new UglifyJs({ export const createConfig = (args: Args, env: Env) => async ( babelrc: BabelRC ): Promise => { - const { debug, host, port, protocol } = args + const { debug, host, port } = args const config = new Config() const isProd = env === 'production' @@ -227,7 +227,7 @@ export const createConfig = (args: Args, env: Env) => async ( { compilationSuccessInfo: { messages: [ - `Your application is running at ${protocol}://${hostname}:${port}`, + `Your application is running at http://${hostname}:${port}`, ], }, }, diff --git a/packages/docz-core/src/commands/args.ts b/packages/docz-core/src/commands/args.ts index f7bfe6bd5..fc413487a 100644 --- a/packages/docz-core/src/commands/args.ts +++ b/packages/docz-core/src/commands/args.ts @@ -51,7 +51,6 @@ export interface Argv { debug: boolean typescript: boolean propsParser: boolean - protocol: string host: string port: number websocketPort: number @@ -148,10 +147,6 @@ export const args = (env: Env) => (yargs: any) => { type: 'boolean', default: getEnv('docz.debug', false), }) - yargs.positional('protocol', { - type: 'string', - default: getEnv('docz.https', true) ? 'https' : 'http', - }) yargs.positional('host', { type: 'string', default: getEnv('docz.host', '127.0.0.1'),