From 2a19e583c9c508c2af6737f61a5711e8adfa1fd5 Mon Sep 17 00:00:00 2001 From: Thatsaphorn Atchariyaphap Date: Sun, 1 Jun 2025 20:15:53 +0200 Subject: [PATCH] Set HCAPTCHA_SITE_KEY as a build environment variable Added NEXT_PUBLIC_HCAPTCHA_SITE_KEY to the Dockerfile to pass the hCaptcha site key as an environment variable during the build process. This ensures the key is appropriately injected into the Next.js build. --- frontend/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index f89869b..7fd3dd2 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -13,6 +13,9 @@ RUN npm ci # Copy entire project COPY . . +# Set it as an environment variable for the build process +ENV NEXT_PUBLIC_HCAPTCHA_SITE_KEY=${HCAPTCHA_SITE_KEY} + # Build the Next.js app RUN npm run build