Added compat with Node 18

This commit is contained in:
Damien Broqua 2023-07-22 18:18:50 +02:00
parent 13209a9b1d
commit 3c243f6dee
4 changed files with 4 additions and 3 deletions

View file

@ -3,7 +3,7 @@ version: "2.4"
services: services:
musictopus-www: musictopus-www:
container_name: musictopus-www container_name: musictopus-www
image: "node:16" image: "node:18"
restart: always restart: always
user: "node" user: "node"
working_dir: /home/node/app working_dir: /home/node/app

View file

@ -3,7 +3,7 @@ version: "2.4"
services: services:
musictopus-www: musictopus-www:
container_name: musictopus-www container_name: musictopus-www
image: "node:16" image: "node:18"
restart: always restart: always
user: "node" user: "node"
working_dir: /home/node/app working_dir: /home/node/app

View file

@ -14,7 +14,7 @@
"prepare": "npx husky install" "prepare": "npx husky install"
}, },
"engines": { "engines": {
"node": "16.x", "node": "16.x || 18.x",
"yarn": "1.x" "yarn": "1.x"
}, },
"repository": { "repository": {

View file

@ -27,6 +27,7 @@ import importContactRouterApiV1 from "./routes/api/v1/contact";
passportConfig(passport); passportConfig(passport);
mongoose.set("strictQuery", false);
mongoose mongoose
.connect(mongoDbUri, { useNewUrlParser: true, useUnifiedTopology: true }) .connect(mongoDbUri, { useNewUrlParser: true, useUnifiedTopology: true })
.catch(() => { .catch(() => {