File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,10 +24,7 @@ ENV NEXT_TELEMETRY_DISABLED=1
2424ENV PORT=8080
2525ENV HOSTNAME=0.0.0.0
2626RUN addgroup --system --gid 1001 nodejs && adduser --system --uid 1001 nextjs
27- # Next.js 16 standalone output places the runtime under
28- # `.next/standalone/sentinelcloud/web/` when the build context is the repo root.
29- # We flatten that here so the entrypoint stays `node server.js`.
30- COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone/sentinelcloud/web/ ./
27+ COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
3128COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
3229COPY --from=builder --chown=nextjs:nodejs /app/public ./public
3330USER nextjs
Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ const securityHeaders = [
2424
2525const nextConfig : NextConfig = {
2626 output : 'standalone' ,
27+ // Pin the standalone tracing root to the web directory so the artefact
28+ // always lands at .next/standalone/server.js. Without this, Next 16's
29+ // workspace detection can place the artefact under nested folders that
30+ // depend on the absolute path of the build host.
31+ outputFileTracingRoot : __dirname ,
2732 poweredByHeader : false ,
2833 reactStrictMode : true ,
2934 experimental : { serverActions : { bodySizeLimit : '2mb' } } ,
You can’t perform that action at this time.
0 commit comments