From 62ea243ddacd32d3da9bc04179430c87cb6f4a46 Mon Sep 17 00:00:00 2001 From: Jack W Date: Thu, 2 May 2024 08:36:51 +0100 Subject: [PATCH] Use "standalone" output to build Next.js as a standalone app when being built e.g. in Docker. --- apps/web/next.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index a8a7550107709e..da807fa3b2a763 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -158,6 +158,7 @@ const matcherConfigUserTypeEmbedRoute = { /** @type {import("next").NextConfig} */ const nextConfig = { + output: "standalone", experimental: { // externalize server-side node_modules with size > 1mb, to improve dev mode performance/RAM usage serverComponentsExternalPackages: ["next-i18next"],