Added compat with Node 18
This commit is contained in:
parent
13209a9b1d
commit
3c243f6dee
4 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
|
@ -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(() => {
|
||||||
|
|
Loading…
Reference in a new issue