-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
50 lines (47 loc) · 1.21 KB
/
next.config.ts
File metadata and controls
50 lines (47 loc) · 1.21 KB
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
45
46
47
48
49
50
import type { NextConfig } from 'next'
import type { RemotePattern } from 'next/dist/shared/lib/image-config'
import { withPayload } from '@payloadcms/next/withPayload'
import { withPlausibleProxy } from 'next-plausible'
const nextConfig: NextConfig = {
turbopack: {},
images: {
dangerouslyAllowLocalIP: true,
minimumCacheTTL: 60 * 60 * 24 * 365,
remotePatterns: [
{
hostname: 'localhost',
protocol: 'http'
},
...(process.env.VERCEL_URL
? [
{
hostname: process.env.VERCEL_URL,
protocol: 'https'
} as RemotePattern
]
: []),
...(process.env.VERCEL_BRANCH_URL
? [
{
hostname: process.env.VERCEL_BRANCH_URL,
protocol: 'https'
} as RemotePattern
]
: []),
...(process.env.VERCEL_PROJECT_PRODUCTION_URL
? [
{
hostname: process.env.VERCEL_PROJECT_PRODUCTION_URL,
protocol: 'https'
} as RemotePattern
]
: [])
]
},
reactStrictMode: true
}
export default withPlausibleProxy()(
withPayload(nextConfig, {
devBundleServerPackages: false
})
)