This commit is contained in:
2026-03-12 14:23:32 +01:00
parent d93f43bf01
commit 0084c5f05b
60 changed files with 7526 additions and 7522 deletions

View File

@@ -1,32 +1,32 @@
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
transpilePackages: ['@innungsapp/shared'],
output: process.env.DOCKER_BUILD ? 'standalone' : undefined,
experimental: {},
// Include Prisma binaries in standalone build
outputFileTracingIncludes: {
'/': [
'./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/.prisma/**/*',
'./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/**/*',
],
},
webpack: (config, { dev }) => {
if (dev) {
// Avoid filesystem cache writes on very low-disk dev machines (ENOSPC).
config.cache = false
}
return config
},
// Serve uploaded files
async rewrites() {
return [
{
source: '/uploads/:path*',
destination: '/api/uploads/:path*',
},
]
},
}
export default nextConfig
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
transpilePackages: ['@innungsapp/shared'],
output: process.env.DOCKER_BUILD ? 'standalone' : undefined,
experimental: {},
// Include Prisma binaries in standalone build
outputFileTracingIncludes: {
'/': [
'./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/.prisma/**/*',
'./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client/**/*',
],
},
webpack: (config, { dev }) => {
if (dev) {
// Avoid filesystem cache writes on very low-disk dev machines (ENOSPC).
config.cache = false
}
return config
},
// Serve uploaded files
async rewrites() {
return [
{
source: '/uploads/:path*',
destination: '/api/uploads/:path*',
},
]
},
}
export default nextConfig