27 lines
674 B
JavaScript
27 lines
674 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: 'standalone',
|
|
serverExternalPackages: ['better-sqlite3'],
|
|
outputFileTracingIncludes: {
|
|
'/*': ['./migrations/**/*'],
|
|
},
|
|
outputFileTracingExcludes: {
|
|
'*': ['./data/**/*', './backups/**/*', './**/auth-secret', './**/*.sqlite*', './.env*'],
|
|
},
|
|
experimental: {
|
|
globalNotFound: true,
|
|
},
|
|
turbopack: {
|
|
root: process.cwd(),
|
|
},
|
|
images: {
|
|
formats: ['image/webp'],
|
|
qualities: [60, 75, 85],
|
|
deviceSizes: [360, 390, 640, 768, 1024, 1280, 1440],
|
|
imageSizes: [32, 48, 64, 72, 96, 128, 192, 256, 320],
|
|
minimumCacheTTL: 86_400,
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|