- Added root path configuration for turbopack in next.config.ts. - Updated build script in package.json to include Prisma generation. - Changed backup service methods to use synchronous config retrieval where appropriate, improving performance and avoiding async issues. - Ensured dynamic rendering in layout.tsx for better page performance.
54 lines
1.0 KiB
TypeScript
54 lines
1.0 KiB
TypeScript
import type { NextConfig } from 'next';
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: 'standalone',
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'media.licdn.com',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'avatars.githubusercontent.com',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'lh3.googleusercontent.com',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'cdn.discordapp.com',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'images.unsplash.com',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'via.placeholder.com',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
],
|
|
},
|
|
turbopack: {
|
|
root: process.cwd(),
|
|
rules: {
|
|
'*.sql': ['raw'],
|
|
},
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|