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(
796796
797797 if ( serverOptions . ssl ) {
798798 if ( serverOptions . sslCert && serverOptions . sslKey ) {
799+ configuration . server ??= { } ;
799800 // server configuration is defined above
800- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
801- configuration . server ! . https = {
801+ configuration . server . https = {
802802 cert : await readFile ( serverOptions . sslCert ) ,
803803 key : await readFile ( serverOptions . sslKey ) ,
804804 } ;
805805 } else {
806806 const { default : basicSslPlugin } = await import ( '@vitejs/plugin-basic-ssl' ) ;
807- // eslint-disable-next-line @typescript-eslint/no-floating-promises
808807 configuration . plugins ??= [ ] ;
809808 configuration . plugins . push ( basicSslPlugin ( ) ) ;
810809 }
You can’t perform that action at this time.
0 commit comments