Skip to content

Commit 56e846c

Browse files
authored
revert port change in adapter (#162)
* Set correct port to listen to * lint * update test * add comment * revert port change in adapter * update test * Update utils.ts * Update utils.ts * fixed test
1 parent bb70f00 commit 56e846c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/@apphosting/adapter-angular/src/bin/build.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe("build commands", () => {
3838
".apphosting/bundle.yaml": `headers: []
3939
redirects: []
4040
rewrites: []
41-
runCommand: SSR_PORT=$PORT node .apphosting/dist/server/server.mjs
41+
runCommand: node .apphosting/dist/server/server.mjs
4242
neededDirs:
4343
- .apphosting
4444
staticAssets:

packages/@apphosting/adapter-angular/src/utils.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,7 @@ async function generateBundleYaml(
188188
headers: [],
189189
redirects: [],
190190
rewrites: [],
191-
// this fix is needed for Angular version 17.3.2
192-
runCommand: `SSR_PORT=$PORT node ${normalize(
193-
relative(cwd, outputBundleOptions.serverFilePath),
194-
)}`,
191+
runCommand: `node ${normalize(relative(cwd, outputBundleOptions.serverFilePath))}`,
195192
neededDirs: [normalize(relative(cwd, outputBundleOptions.outputDirectory))],
196193
staticAssets: [normalize(relative(cwd, outputBundleOptions.browserDirectory))],
197194
}),

0 commit comments

Comments
 (0)