mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-17 01:33:43 +08:00
44 lines
828 B
TypeScript
44 lines
828 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
// Performance optimizations
|
|
reactStrictMode: true,
|
|
poweredByHeader: false,
|
|
|
|
// Compiler optimizations
|
|
compiler: {
|
|
removeConsole: process.env.NODE_ENV === 'production',
|
|
},
|
|
|
|
output: 'standalone',
|
|
outputFileTracingRoot: __dirname,
|
|
turbopack: {
|
|
root: __dirname,
|
|
},
|
|
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'img3.doubanio.com',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'img1.doubanio.com',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'img2.doubanio.com',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'img9.doubanio.com',
|
|
},
|
|
],
|
|
formats: ['image/webp'],
|
|
minimumCacheTTL: 60,
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|