biohazard-vfx/next.config.js

33 lines
791 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: ['nextcloud.biohazardvfx.com', 'f.io'],
formats: ['image/webp', 'image/avif'],
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
minimumCacheTTL: 60,
},
async rewrites() {
return [
{
source: '/admin/:path*',
destination: '/admin/:path*',
},
]
},
experimental: {
optimizePackageImports: ['@/components', '@/lib'],
serverComponentsExternalPackages: ['sharp', 'bcrypt'],
},
typescript: {
ignoreBuildErrors: false,
},
eslint: {
ignoreDuringBuilds: false,
},
productionBrowserSourceMaps: false,
compress: true,
swcMinify: true,
}
module.exports = nextConfig