Skip to content

Commit

Permalink
fix(web): fix coderabbitai suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
NdekoCode committed Nov 22, 2024
1 parent 7c804d3 commit 64016db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ ENV NEXT_TELEMETRY_DISABLED=1
ENV NEXT_BUILD_OUTPUT_TYPE=standalone
ENV NEXT_SHARP_PATH=/temp/node_modules/sharp

# Install NPM Globally and install sharp, NextJS image optimization
# The -p option in the mkdir command ignores the error if the directory already exists.
RUN npm i -g npm@latest && \
mkdir -p /temp && cd /temp && \
npm i sharp && \
npm cache clean --force
RUN npm i -g npm@latest
# Install sharp, NextJS image optimization
RUN mkdir /temp && cd /temp && \
npm i sharp

RUN npm cache clean --force

# Throw-away build stage to reduce size of final image
FROM base AS build
Expand Down
1 change: 0 additions & 1 deletion apps/web/app/[locale]/timesheet/[memberId]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
'use client';
/* eslint-disable react-hooks/exhaustive-deps */
import React, { useMemo, useState } from 'react';
import { useParams } from 'next/navigation';
import moment from 'moment';
Expand Down

0 comments on commit 64016db

Please sign in to comment.