From cdcf9bc4a463f357a817f10ef76e97834e9c7bdd Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 27 Jan 2025 09:21:16 -0800 Subject: [PATCH] Try this --- Dockerfile | 1 + next.config.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1fe6d9aa..95987f84 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,4 +63,5 @@ HEALTHCHECK --interval=10s --timeout=3s --start-period=20s \ CMD wget --no-verbose --tries=1 --spider --no-check-certificate http://localhost:$PORT/api/healthcheck || exit 1 ENTRYPOINT ["docker-entrypoint.sh"] +ENV HOST=0.0.0.0 CMD ["node", "server.js"] diff --git a/next.config.js b/next.config.js index b374ca1b..39c2d497 100644 --- a/next.config.js +++ b/next.config.js @@ -2,7 +2,7 @@ const { i18n } = require("./next-i18next.config"); /** @type {import('next').NextConfig} */ const nextConfig = { - server: { + serverRuntimeConfig: { host: "0.0.0.0", }, reactStrictMode: true,