Configure nextjs output file tracing
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
6b49eebeb8
commit
63b8c3f5ae
@ -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
|
||||
|
@ -7,6 +7,7 @@ const nextConfig = {
|
||||
reactCompiler: false,
|
||||
},
|
||||
output: 'standalone',
|
||||
outputFileTracingRoot: path.join(__dirname, '../../'),
|
||||
env: {
|
||||
customKey: 'my-value',
|
||||
PORT: process.env.PORT,
|
||||
|
Loading…
Reference in New Issue
Block a user