-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
44 lines (43 loc) · 1.03 KB
/
next.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
experimental: {
appDir: true,
serverComponentsExternalPackages: ["mysql2"],
},
images: {
loader: 'custom',
loaderFile: './image-loader.tsx',
// https://beta.nextjs.org/docs/api-reference/components/image#imagesizes
// imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
deviceSizes: [448, 512, 640, 750, 828, 1080, 1200, 1920, 2048, 3840],
remotePatterns: [
{
protocol: 'https',
hostname: 'cdn.thegazelle.org',
port: '',
pathname: '/gazelle/2023/**',
},
{
protocol: 'http',
hostname: '0.gravatar.com',
port: '',
pathname: '/avatar/**',
},
{
protocol: 'https',
hostname: 'i6.cims.nyu.edu',
port: '',
pathname: '/',
}
],
domains: [
'cdn.thegazelle.org',
'gravatar.com',
'i6.cims.nyu.edu',
],
},
}
// module.exports = nextConfig
export default nextConfig;