From 70b4e3a9c68ca29281518c427f28733c5b4aec44 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Thu, 13 Jun 2024 15:44:49 +0100 Subject: [PATCH] Use "standalone" output to build Next.js as a standalone app when being built e.g. in Docker. (#15405) Co-authored-by: Jack W --- 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 14da8a1da0..289c645ec1 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"],