22 lines
529 B
JavaScript
22 lines
529 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: '**',
|
|
},
|
|
],
|
|
},
|
|
// Enable standalone output for Docker production builds
|
|
output: process.env.NODE_ENV === 'production' ? 'standalone' : undefined,
|
|
// External packages for better SQLite3 compatibility (Next.js 15+ syntax)
|
|
serverExternalPackages: ['better-sqlite3'],
|
|
// Trust proxy headers for Cloudflare tunnel
|
|
experimental: {
|
|
trustHost: true,
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|