File tree 2 files changed +5
-4
lines changed
packages/angular/build/src/builders/application
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -259,10 +259,12 @@ export async function normalizeOptions(
259
259
: await getTailwindConfig ( searchDirectories , workspaceRoot , context ) ;
260
260
261
261
let serverEntryPoint : string | undefined ;
262
- if ( options . server ) {
262
+ if ( typeof options . server === 'string' ) {
263
+ if ( options . server === '' ) {
264
+ throw new Error ( 'The "server" option cannot be an empty string.' ) ;
265
+ }
266
+
263
267
serverEntryPoint = path . join ( workspaceRoot , options . server ) ;
264
- } else if ( options . server === '' ) {
265
- throw new Error ( 'The "server" option cannot be an empty string.' ) ;
266
268
}
267
269
268
270
let prerenderOptions ;
Original file line number Diff line number Diff line change 17
17
"description" : " The full path for the browser entry point to the application, relative to the current workspace."
18
18
},
19
19
"server" : {
20
- "type" : " string" ,
21
20
"description" : " The full path for the server entry point to the application, relative to the current workspace." ,
22
21
"oneOf" : [
23
22
{
You can’t perform that action at this time.
0 commit comments