Skip to content

Commit

Permalink
fix(node-18): upgrade to node 18 and remove node-fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
Cali93 committed Jun 7, 2023
1 parent 1628aac commit a4aa214
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 165 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build stage
FROM node:16.17.0-bullseye-slim as build
FROM node:18.16.0-bullseye-slim as build

# Set the working directory inside the container
WORKDIR /app
Expand All @@ -18,7 +18,7 @@ COPY . .
RUN npm run build

# Production stage
FROM node:16.17.0-bullseye-slim as production
FROM node:18.16.0-bullseye-slim as production

# Set the working directory inside the container
WORKDIR /app
Expand Down
160 changes: 0 additions & 160 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"express-rate-limit": "^6.7.0",
"express-session": "^1.17.3",
"jsonwebtoken": "^9.0.0",
"node-fetch": "^2.6.7",
"siwe": "^1.1.6"
},
"devDependencies": {
Expand All @@ -32,7 +31,6 @@
"@types/express-session": "^1.17.6",
"@types/jsonwebtoken": "^9.0.1",
"@types/node": "^18.14.4",
"@types/node-fetch": "^2.6.4",
"concurrently": "^7.6.0",
"nodemon": "^2.0.20",
"prisma": "^4.11.0",
Expand Down
1 change: 0 additions & 1 deletion src/middlewares/captchaVerification.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { NextFunction, Request, Response } from "express";
import fetch from "node-fetch";

export const captchaVerification = async (
req: Request,
Expand Down

0 comments on commit a4aa214

Please sign in to comment.