mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 07:21:16 +08:00
ADD https import & remove tracking code remains
This commit is contained in:
parent
a61e0bc0d5
commit
16605b94e2
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import express from 'express';
|
import express from 'express';
|
||||||
import favicon from 'serve-favicon';
|
import favicon from 'serve-favicon';
|
||||||
|
import https from 'https';
|
||||||
import program from 'commander';
|
import program from 'commander';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
@ -56,13 +57,8 @@ getEnvConfig(program, {
|
|||||||
host: 'SBCONFIG_HOSTNAME',
|
host: 'SBCONFIG_HOSTNAME',
|
||||||
staticDir: 'SBCONFIG_STATIC_DIR',
|
staticDir: 'SBCONFIG_STATIC_DIR',
|
||||||
configDir: 'SBCONFIG_CONFIG_DIR',
|
configDir: 'SBCONFIG_CONFIG_DIR',
|
||||||
dontTrack: 'SBCONFIG_DO_NOT_TRACK',
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (program.dontTrack) {
|
|
||||||
dontTrack();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!program.port) {
|
if (!program.port) {
|
||||||
logger.error('Error: port to run Storybook is required!\n');
|
logger.error('Error: port to run Storybook is required!\n');
|
||||||
program.help();
|
program.help();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user