17 lines
507 B
JavaScript
17 lines
507 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
// Self-hosted via Docker: emit a minimal standalone server bundle.
|
|
output: 'standalone',
|
|
images: {
|
|
formats: ['image/avif', 'image/webp'],
|
|
},
|
|
// better-sqlite3 is a native addon and must stay external to the bundle so
|
|
// its .node binary is required from node_modules at runtime, not traced.
|
|
experimental: {
|
|
serverComponentsExternalPackages: ['better-sqlite3'],
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|