Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v24.40.0 #146

Merged
merged 2 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20
v20.17.0
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
FROM node:20-alpine AS build
FROM node:20.17.0-alpine AS build

WORKDIR /app

COPY package.*json ./
RUN npm install
RUN npm --mount=type=cache,target=/root/.npm install

COPY . .
RUN npm run build


FROM node:20-alpine AS production
FROM node:20.17.0-alpine AS production

WORKDIR /app

RUN mkdir /app/images

COPY package.*json ./
RUN npm install --omit=dev
RUN npm --mount=type=cache,target=/root/.npm install --omit=dev

COPY --from=build /app/prisma ./prisma
COPY --from=build /app/dist ./dist
Expand Down
65 changes: 45 additions & 20 deletions package-lock.json

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

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,12 @@
"homepage": "https://github.com/coronasafe/teleicu_middleware#readme",
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/connect-flash": "^0.0.39",
"@types/connect-flash": "^0.0.40",
"@types/cookie-parser": "^1.4.6",
"@types/cors": "^2.8.15",
"@types/dotenv": "^6.1.1",
"@types/express": "^4.17.21",
"@types/express-serve-static-core": "^4.19.2",
"@types/express-session": "^1.17.9",
"@types/express-ws": "^3.0.1",
"@types/lodash.groupby": "^4.6.8",
Expand All @@ -83,6 +86,6 @@
"typescript": "^5.2.2"
},
"engines": {
"node": ">=20.0.0"
"node": "v20.17.0"
}
}
}
2 changes: 1 addition & 1 deletion src/lib/jose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export async function getCareJWKs() {
if (!careJWKs) {
const controller = new AbortController();
setTimeout(() => controller.abort(), 5000);
const res = await fetch(`${careApi}/.well-known/openid-configuration`, {
const res = await fetch(`${careApi}/.well-known/jwks.json`, {
signal: controller.signal,
}).then((res) => {
if (!res.ok) {
Expand Down
Loading