fix(core): angular rspack should not prompt for SSG (#30647)

## Current Behavior
Create Nx Workspace will prompt for SSG when `Rspack` is chosen as a
bundler option for Angular.
SSG is currently not supported by Angular Rspack.

## Expected Behavior
Do not mention SSG when prompting for SSR with Angular Rspack
This commit is contained in:
Colum Ferry 2025-04-09 17:17:56 +01:00 committed by GitHub
parent d1ee41793f
commit 494f150a69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -979,8 +979,11 @@ async function determineAngularOptions(
const reply = await enquirer.prompt<{ ssr: 'Yes' | 'No' }>([
{
name: 'ssr',
message:
'Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)?',
message: `Do you want to enable Server-Side Rendering (SSR)${
bundler !== 'rspack'
? ' and Static Site Generation (SSG/Prerendering)?'
: '?'
}`,
type: 'autocomplete',
choices: [{ name: 'Yes' }, { name: 'No' }],
initial: 1,