Configure nextjs output file tracing
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
tobias 2024-06-19 21:49:09 +02:00
parent 6b49eebeb8
commit 63b8c3f5ae
2 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,7 @@ COPY --from=builder /builder/package.json ./
#COPY --from=builder /builder/node_modules ./node_modules
COPY --from=builder /builder/.next/standalone ./.next/standalone/
COPY --from=builder /builder/.next/static ./.next/standalone/.next/static
COPY --from=builder /builder/public ./.next/standalone/.next/public
#COPY --from=builder /builder/public ./.next/standalone/.next/public
COPY --from=builder /builder/next.config.mjs ./
FROM runner as server

View File

@ -7,6 +7,7 @@ const nextConfig = {
reactCompiler: false,
},
output: 'standalone',
outputFileTracingRoot: path.join(__dirname, '../../'),
env: {
customKey: 'my-value',
PORT: process.env.PORT,