From a169c111c279136454b929d2ddae4954980d4285 Mon Sep 17 00:00:00 2001 From: tobias Date: Tue, 18 Jun 2024 08:28:50 +0200 Subject: [PATCH] Add hostname & port to nextjs.config --- next.config.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index bdccf7e..dbbec7d 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -7,6 +7,11 @@ const nextConfig = { reactCompiler: false, }, output: 'standalone', + env: { + customKey: 'my-value', + PORT: env.process.PORT, + HOSTNAME: env.process.HOSTNAME, + }, } export default withPayload(nextConfig)