File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
packages/@apphosting/adapter-angular/src Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ describe("build commands", () => {
37
37
".apphosting/bundle.yaml" : `headers: []
38
38
redirects: []
39
39
rewrites: []
40
- runCommand: node .apphosting/dist/server/server.mjs
40
+ runCommand: SSR_PORT=$PORT node .apphosting/dist/server/server.mjs
41
41
neededDirs:
42
42
- .apphosting
43
43
staticAssets:
Original file line number Diff line number Diff line change @@ -183,7 +183,10 @@ async function generateBundleYaml(
183
183
headers : [ ] ,
184
184
redirects : [ ] ,
185
185
rewrites : [ ] ,
186
- runCommand : `node ${ normalize ( relative ( cwd , outputPathOptions . serverFilePath ) ) } ` ,
186
+ // this fix is needed for Angular version 17.3.2
187
+ runCommand : `SSR_PORT=$PORT node ${ normalize (
188
+ relative ( cwd , outputPathOptions . serverFilePath ) ,
189
+ ) } `,
187
190
neededDirs : [ normalize ( relative ( cwd , outputPathOptions . outputDirectory ) ) ] ,
188
191
staticAssets : [ normalize ( relative ( cwd , outputPathOptions . browserDirectory ) ) ] ,
189
192
} ) ,
You can’t perform that action at this time.
0 commit comments