Files
my-protfolio/next.config.mjs
Amirhossein Khalili bc49f0ed31
Some checks failed
Test and deploy / Verify production build (push) Failing after 15m8s
fix: support image processing on CPUs without x86-64-v2
2026-09-15 22:42:06 +03:30

32 lines
814 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
serverExternalPackages: ['better-sqlite3'],
outputFileTracingIncludes: {
'/*': [
'./migrations/**/*',
'./node_modules/@img/sharp-wasm32/**/*',
'./node_modules/@emnapi/runtime/**/*',
'./node_modules/tslib/**/*',
],
},
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;