Skip to content

Commit

Permalink
fix(@schematics/angular): pass ssr option to application schematics
Browse files Browse the repository at this point in the history
Running `ng new --ssr` will now run the ssr schematics
  • Loading branch information
cexbrayat authored and alan-agius4 committed Sep 28, 2023
1 parent 1837fee commit e516a4b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions packages/schematics/angular/ng-new/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default function (options: NgNewOptions): Rule {
strict: options.strict,
minimal: options.minimal,
standalone: options.standalone,
ssr: options.ssr,
};

return chain([
Expand Down
1 change: 0 additions & 1 deletion packages/schematics/angular/ng-new/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@
"ssr": {
"description": "Creates an application with Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) enabled.",
"type": "boolean",
"default": false,
"x-user-analytics": "ep.ng_ssr"
}
},
Expand Down

0 comments on commit e516a4b

Please sign in to comment.