Skip to content

Commit 0d9b85b

Browse files
committed
add FORCE_START env
1 parent cff6043 commit 0d9b85b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
strategy:
2222
matrix:
23-
node-version: [18.x]
23+
node-version: [22.x]
2424
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2525

2626
steps:

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ app.use('/**', (req, res, next) => {
5353
* Start the server if this module is the main entry point.
5454
* The server listens on the port defined by the `PORT` environment variable, or defaults to 4000.
5555
*/
56-
if (isMainModule(import.meta.url)) {
56+
if (isMainModule(import.meta.url) || process.env['FORCE_START']) {
5757
const port = process.env['PORT'] || 4000;
5858
app.listen(port, () => {
5959
console.log(`Node Express server listening on http://localhost:${port}`);

0 commit comments

Comments
 (0)