Skip to content

Commit

Permalink
feat(devserver): dev server startup timeout configurable (#2719)
Browse files Browse the repository at this point in the history
Co-authored-by: softwaymedical <opensource@softwaymedical.fr>
  • Loading branch information
softwaymedical and softwaymedical committed Nov 6, 2020
1 parent ab6dff1 commit 455adb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/declarations/stencil-public-compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ export interface DevServerConfig extends StencilDevServerConfig {
prerenderConfig?: string;
protocol?: 'http' | 'https';
srcIndexHtml?: string;
startupTimeout?: number;
}

export interface HistoryApiFallback {
Expand Down
2 changes: 1 addition & 1 deletion src/dev-server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function startServer(
logger.getLevel() !== 'debug'
? setTimeout(() => {
reject(`dev server startup timeout`);
}, 15000)
}, devServerConfig.startupTimeout || 15000)
: null;

let isActivelyBuilding = false;
Expand Down

0 comments on commit 455adb3

Please sign in to comment.