Skip to content

Commit 483c206

Browse files
Bugfix/revert node v (#250)
* Revert node versions to 16 for build * Add overflow scroll to comments
1 parent a8c94d9 commit 483c206

File tree

4 files changed

+7
-9217
lines changed

4 files changed

+7
-9217
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Install dependencies only when needed
2-
FROM public.ecr.aws/docker/library/node:18 AS deps
2+
FROM public.ecr.aws/docker/library/node:16 AS deps
33
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
44
# RUN apk add --no-cache libc6-compat
55
WORKDIR /app
@@ -10,7 +10,7 @@ COPY prisma ./prisma
1010
RUN npm ci
1111

1212
# Rebuild the source code only when needed
13-
FROM public.ecr.aws/docker/library/node:18 AS builder
13+
FROM public.ecr.aws/docker/library/node:16 AS builder
1414
# RUN apt-get update -y \
1515
# && apt-get install -y openssl
1616

@@ -27,7 +27,7 @@ RUN npx prisma generate
2727
RUN npm run build
2828

2929
# Production image, copy all the files and run next
30-
FROM public.ecr.aws/docker/library/node:18 AS runner
30+
FROM public.ecr.aws/docker/library/node:16 AS runner
3131
WORKDIR /app
3232

3333
ENV NODE_ENV production

components/Comments/CommentsArea.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ const CommentsArea = ({ postId, postOwnerId }: Props) => {
292292
</div>
293293

294294
<div className="border-l-2 border-slate-700 ml-4 pl-2 -mt-2">
295-
<div className="prose prose-invert text-sm">
295+
<div className="prose prose-invert text-sm overflow-x-scroll">
296296
{Markdoc.renderers.react(content, React, {
297297
components: markdocComponents,
298298
})}
@@ -407,7 +407,7 @@ const CommentsArea = ({ postId, postOwnerId }: Props) => {
407407
)}
408408
{viewPreviewId === id ? (
409409
<article
410-
className="prose prose-invert text-sm"
410+
className="prose prose-invert text-sm overflow-x-scroll"
411411
style={{ whiteSpace: "pre-wrap" }}
412412
>
413413
{Markdoc.renderers.react(

0 commit comments

Comments
 (0)