From aaad32a51dd33f36766fd8663c9e35155ec2c9b7 Mon Sep 17 00:00:00 2001 From: Neshura Date: Wed, 14 Dec 2022 18:39:39 +0100 Subject: [PATCH] Renamed Sidebar component and updated Node Version --- Dockerfile | 4 ++-- pages/api/navbar.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f12604d..b5a9bf4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ RUN yarn install --frozen-lockfile ## BUILD STEP # Rebuild the source code only when needed -FROM node:16-alpine AS builder +FROM node:18-alpine AS builder WORKDIR /app @@ -23,7 +23,7 @@ COPY . . RUN yarn build ## RUN STEP -FROM node:16-alpine AS runner +FROM node:18-alpine AS runner LABEL author="neshura@proton.me" WORKDIR /usr/src/app diff --git a/pages/api/navbar.tsx b/pages/api/navbar.tsx index 18ea552..1ec8953 100644 --- a/pages/api/navbar.tsx +++ b/pages/api/navbar.tsx @@ -3,7 +3,7 @@ import fsPromises from 'fs/promises' import path from 'path' import ReadyOrNotMap from '../../interfaces/ReadyOrNot' -export default async function TobarApi(req: any, res: any) { +export default async function SidebarAPI(req: any, res: any) { try { // get list of all folders(maps) in the readyornot folder - maybe there is a cleaner way to do this? var fs = require('fs')