From 8923bf3f639b48821b488074f6657b76b8d5842b Mon Sep 17 00:00:00 2001 From: Severian Date: Thu, 11 Dec 2025 08:42:20 +0800 Subject: [PATCH] chore: prod env, no sourcemaps --- dockerfile | 3 +++ next-env.d.ts | 2 +- next.config.js | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dockerfile b/dockerfile index 3146df0..5cfbad5 100644 --- a/dockerfile +++ b/dockerfile @@ -11,6 +11,9 @@ RUN \ FROM base AS builder WORKDIR /app + +ENV NODE_ENV=production + COPY --from=deps /app/node_modules ./node_modules COPY . . RUN npm run build diff --git a/next-env.d.ts b/next-env.d.ts index c4b7818..9edff1c 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,6 +1,6 @@ /// /// -import "./.next/dev/types/routes.d.ts"; +import "./.next/types/routes.d.ts"; // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/next.config.js b/next.config.js index f307dcb..a28ddc8 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,7 @@ /** @type {import('next').NextConfig} */ const nextConfig = { output: 'standalone', + productionBrowserSourceMaps: false, }; module.exports = nextConfig; \ No newline at end of file