Skip to content

Commit 84baebf

Browse files
ci: apply automated fixes
1 parent ef7ac4f commit 84baebf

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

examples/angular/remote-data/src/server.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import {
33
createNodeRequestHandler,
44
isMainModule,
55
writeResponseToNodeResponse,
6-
} from '@angular/ssr/node';
7-
import express from 'express';
8-
import { join } from 'node:path';
6+
} from '@angular/ssr/node'
7+
import express from 'express'
8+
import { join } from 'node:path'
99

10-
const browserDistFolder = join(import.meta.dirname, '../browser');
10+
const browserDistFolder = join(import.meta.dirname, '../browser')
1111

12-
const app = express();
13-
const angularApp = new AngularNodeAppEngine();
12+
const app = express()
13+
const angularApp = new AngularNodeAppEngine()
1414

1515
/**
1616
* Example Express Rest API endpoints can be defined here.
@@ -33,7 +33,7 @@ app.use(
3333
index: false,
3434
redirect: false,
3535
}),
36-
);
36+
)
3737

3838
/**
3939
* Handle all other requests by rendering the Angular application.
@@ -44,25 +44,25 @@ app.use((req, res, next) => {
4444
.then((response) =>
4545
response ? writeResponseToNodeResponse(response, res) : next(),
4646
)
47-
.catch(next);
48-
});
47+
.catch(next)
48+
})
4949

5050
/**
5151
* Start the server if this module is the main entry point, or it is ran via PM2.
5252
* The server listens on the port defined by the `PORT` environment variable, or defaults to 4000.
5353
*/
5454
if (isMainModule(import.meta.url) || process.env['pm_id']) {
55-
const port = process.env['PORT'] || 4000;
55+
const port = process.env['PORT'] || 4000
5656
app.listen(port, (error) => {
5757
if (error) {
58-
throw error;
58+
throw error
5959
}
6060

61-
console.log(`Node Express server listening on http://localhost:${port}`);
62-
});
61+
console.log(`Node Express server listening on http://localhost:${port}`)
62+
})
6363
}
6464

6565
/**
6666
* Request handler used by the Angular CLI (for dev-server and during build) or Firebase Cloud Functions.
6767
*/
68-
export const reqHandler = createNodeRequestHandler(app);
68+
export const reqHandler = createNodeRequestHandler(app)

0 commit comments

Comments
 (0)