implemented release build

This commit is contained in:
Altair-sh
2026-09-29 18:56:04 +02:00
parent 7d64ab4809
commit 03eaa951f7
4 changed files with 78 additions and 0 deletions
+22
View File
@@ -2,7 +2,29 @@ import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
experimental: {
// call tsc6 instead of import 'typescript'
useTypeScriptCli: true,
// faster "npm run dev"
turbopackFileSystemCacheForDev: true,
// don't create temporary files in .next/ during "npm run build"
turbopackFileSystemCacheForBuild: false,
// options to make standalone build more debuggable
serverSourceMaps: true,
serverMinification: false,
},
// produce .next/standalone
// which can be started by `node server.js` without any dependencies
output: 'standalone',
images: {
unoptimized: true,
},
// remove next/image from build, which this project doesn't use
outputFileTracingExcludes: {
'*': ['node_modules/sharp/**', 'node_modules/@img/**'],
},
// sometimes production builds ran without proper type checking
typescript: {
ignoreBuildErrors: false,
},
}