File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/angular/build/src/builders/dev-server Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -796,15 +796,14 @@ export async function setupServer(
796
796
797
797
if ( serverOptions . ssl ) {
798
798
if ( serverOptions . sslCert && serverOptions . sslKey ) {
799
+ configuration . server ??= { } ;
799
800
// server configuration is defined above
800
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
801
- configuration . server ! . https = {
801
+ configuration . server . https = {
802
802
cert : await readFile ( serverOptions . sslCert ) ,
803
803
key : await readFile ( serverOptions . sslKey ) ,
804
804
} ;
805
805
} else {
806
806
const { default : basicSslPlugin } = await import ( '@vitejs/plugin-basic-ssl' ) ;
807
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
808
807
configuration . plugins ??= [ ] ;
809
808
configuration . plugins . push ( basicSslPlugin ( ) ) ;
810
809
}
You can’t perform that action at this time.
0 commit comments