Skip to content

Commit

Permalink
Revert "fix(@schematics/angular): rename SSR port env variable"
Browse files Browse the repository at this point in the history
This reverts commit 950a445.
  • Loading branch information
alan-agius4 committed Apr 2, 2024
1 parent 16d8c55 commit a673baf
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Expand Up @@ -220,7 +220,7 @@ function startNodeServer(
): Observable<void> {
const outputPath = serverOutput.outputPath as string;
const path = join(outputPath, 'main.js');
const env = { ...process.env, SSR_PORT: '' + port, PORT: '' + port };
const env = { ...process.env, PORT: '' + port };

const args = ['--enable-source-maps', `"${path}"`];
if (inspectMode) {
Expand Down
Expand Up @@ -58,7 +58,7 @@ describe('Serve SSR Builder', () => {
return server;
}
app().listen(process.env['SSR_PORT']);
app().listen(process.env['PORT']);
export * from './app/app.module.server';
`,
Expand Down
Expand Up @@ -58,7 +58,7 @@ describe('Serve SSR Builder', () => {
return server;
}
app().listen(process.env['SSR_PORT']);
app().listen(process.env['PORT']);
export * from './app/app.module.server';
`,
Expand Down
Expand Up @@ -57,7 +57,7 @@ describe('Serve SSR Builder', () => {
return server;
}
app().listen(process.env['SSR_PORT']);
app().listen(process.env['PORT']);
export * from './app/app.module.server';
`,
Expand Down
Expand Up @@ -199,7 +199,7 @@ export function app(): express.Express {
}
function run(): void {
const port = process.env['SSR_PORT'] || 4000;
const port = process.env['PORT'] || 4000;
// Start up the Node server
const server = app();
Expand Down
Expand Up @@ -128,7 +128,7 @@ export function app(): express.Express {
}
function run() {
const port = process.env.SSR_PORT || 4000;
const port = process.env.PORT || 4000;
// Start up the Node server
const server = app();
Expand Down
Expand Up @@ -44,7 +44,7 @@ export function app(): express.Express {
}

function run(): void {
const port = process.env['SSR_PORT'] || 4000;
const port = process.env['PORT'] || 4000;

// Start up the Node server
const server = app();
Expand Down
Expand Up @@ -47,7 +47,7 @@ export function app(): express.Express {
}

function run(): void {
const port = process.env['SSR_PORT'] || 4000;
const port = process.env['PORT'] || 4000;

// Start up the Node server
const server = app();
Expand Down
Expand Up @@ -47,7 +47,7 @@ export function app(): express.Express {
}

function run(): void {
const port = process.env['SSR_PORT'] || 4000;
const port = process.env['PORT'] || 4000;

// Start up the Node server
const server = app();
Expand Down

0 comments on commit a673baf

Please sign in to comment.