Use "standalone" output to build Next.js as a standalone app when being built e.g. in Docker. (#15405)

Co-authored-by: Jack W <jackweatherilt@outlook.com>
This commit is contained in:
Alex van AndelandJack W authored and GitHub committed 2024-06-13 14:44:49 +00:00
1 parent ab44d5b92c
commit 70b4e3a9c6
1 file changed
+1
+1
View File
@@ -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"],