Skip to content

Commit

Permalink
Use "standalone" output to build Next.js as a standalone app when bei…
Browse files Browse the repository at this point in the history
…ng built e.g. in Docker. (#15405)

Co-authored-by: Jack W <[email protected]>
  • Loading branch information
emrysal and jckw authored Jun 13, 2024
1 parent ab44d5b commit 70b4e3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit 70b4e3a

Please sign in to comment.