packages/angular/src/migrations/update-23-1-0/rename-ssr-experimental-platform.md
ssr.experimentalPlatform to ssr.platformAngular v22 renamed the @angular/build:application SSR experimentalPlatform option to platform and removed the old key. This migration renames ssr.experimentalPlatform to ssr.platform in the options and configurations of application targets, both in project.json and in the nx.json targetDefaults, covering the @angular/build:application and @angular-devkit/build-angular:application builders as well as the @nx/angular:application executor that wraps them.
project.jsonBefore:
// project.json
{
"targets": {
"build": {
"executor": "@nx/angular:application",
"options": {
"ssr": {
"entry": "src/server.ts",
"experimentalPlatform": "neutral",
},
},
},
},
}
After:
// project.json
{
"targets": {
"build": {
"executor": "@nx/angular:application",
"options": {
"ssr": {
"entry": "src/server.ts",
"platform": "neutral",
},
},
},
},
}
nx.json (targetDefaults)Before:
// nx.json
{
"targetDefaults": {
"@nx/angular:application": {
"options": {
"ssr": {
"entry": "src/server.ts",
"experimentalPlatform": "neutral",
},
},
},
},
}
After:
// nx.json
{
"targetDefaults": {
"@nx/angular:application": {
"options": {
"ssr": {
"entry": "src/server.ts",
"platform": "neutral",
},
},
},
},
}