mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-16 21:05:20 +02:00
fix: set outputFileTracingRoot for predictable standalone output
This commit is contained in:
parent
8cf12db72a
commit
ec118ed011
4 changed files with 5 additions and 10 deletions
|
|
@ -71,7 +71,7 @@ COPY --from=builder /app/public ./public
|
|||
|
||||
# Automatically leverage output traces to reduce image size
|
||||
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone/app/ ./
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
||||
|
||||
# Entrypoint scripts for runtime env var substitution
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import path from "path";
|
||||
import { createMDX } from "fumadocs-mdx/next";
|
||||
import type { NextConfig } from "next";
|
||||
import createNextIntlPlugin from "next-intl/plugin";
|
||||
|
|
@ -10,6 +11,7 @@ const withNextIntl = createNextIntlPlugin("./i18n/request.ts");
|
|||
// ships what desktop users actually need.
|
||||
const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
outputFileTracingRoot: path.join(__dirname, ".."),
|
||||
reactStrictMode: false,
|
||||
typescript: {
|
||||
ignoreBuildErrors: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue