Skip to content

Commit e516a4b

Browse files
cexbrayatalan-agius4
authored andcommittedSep 28, 2023
fix(@schematics/angular): pass ssr option to application schematics
Running `ng new --ssr` will now run the ssr schematics
1 parent 1837fee commit e516a4b

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
 

‎packages/schematics/angular/ng-new/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export default function (options: NgNewOptions): Rule {
5757
strict: options.strict,
5858
minimal: options.minimal,
5959
standalone: options.standalone,
60+
ssr: options.ssr,
6061
};
6162

6263
return chain([

‎packages/schematics/angular/ng-new/schema.json

-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@
143143
"ssr": {
144144
"description": "Creates an application with Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) enabled.",
145145
"type": "boolean",
146-
"default": false,
147146
"x-user-analytics": "ep.ng_ssr"
148147
}
149148
},

0 commit comments

Comments
 (0)
Please sign in to comment.