This repository was archived by the owner on Jun 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,7 @@ WORKDIR /app
22
22
COPY --from=deps /app/node_modules ./node_modules
23
23
COPY . .
24
24
25
- # Next.js collects completely anonymous telemetry data about general usage.
26
- # Learn more here: https://nextjs.org/telemetry
27
- # Uncomment the following line in case you want to disable telemetry during the build.
28
- # ENV NEXT_TELEMETRY_DISABLED 1
25
+ ENV NEXT_TELEMETRY_DISABLED 1
29
26
30
27
RUN \
31
28
if [ -f yarn.lock ]; then yarn run build; \
@@ -39,8 +36,7 @@ FROM base AS runner
39
36
WORKDIR /app
40
37
41
38
ENV NODE_ENV production
42
- # Uncomment the following line in case you want to disable telemetry during runtime.
43
- # ENV NEXT_TELEMETRY_DISABLED 1
39
+ ENV NEXT_TELEMETRY_DISABLED 1
44
40
45
41
RUN addgroup --system --gid 1001 nodejs
46
42
RUN adduser --system --uid 1001 nextjs
@@ -53,7 +49,7 @@ RUN chown nextjs:nodejs .next
53
49
54
50
# Automatically leverage output traces to reduce image size
55
51
# https://nextjs.org/docs/advanced-features/output-file-tracing
56
- # COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
52
+ COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
57
53
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
58
54
59
55
USER nextjs
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ const nextConfig = {
7
7
} ;
8
8
return config ;
9
9
} ,
10
+ output : "standalone" ,
10
11
} ;
11
12
12
13
module . exports = nextConfig ;
You can’t perform that action at this time.
0 commit comments