From 5fe58c44d507d129063cfacfa1f917c53943e7c8 Mon Sep 17 00:00:00 2001 From: Sonny Date: Wed, 22 Nov 2023 02:08:38 +0100 Subject: [PATCH] fix: wrong next config remote pattern --- Dockerfile | 3 ++- next.config.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2acca42..6e02c89 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,5 @@ +# Source : https://github.com/vercel/next.js/blob/canary/examples/with-docker/Dockerfile + FROM node:18-alpine AS base # Install dependencies only when needed @@ -30,7 +32,6 @@ RUN adduser --system --uid 1001 nextjs COPY --from=builder /app/public ./public COPY --from=builder /app/prisma ./prisma -COPY --from=builder /app/next.config.js ./next.config.js # Set the correct permission for prerender cache RUN mkdir .next diff --git a/next.config.js b/next.config.js index 415ac89..05797a6 100644 --- a/next.config.js +++ b/next.config.js @@ -16,7 +16,7 @@ const config = { { hostname: "localhost" }, { hostname: "t3.gstatic.com" }, { hostname: "lh3.googleusercontent.com" }, - { hostname: "mylinks.app" }, + { hostname: "www.mylinks.app" }, ], formats: ["image/webp"], },