-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
74 lines (74 loc) · 1.48 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// import MillionLint from '@million/lint';
import { withPlausibleProxy } from 'next-plausible';
/** @type {import('next').NextConfig} */
const nextConfig = withPlausibleProxy({ customDomain: 'https://plausible.global.bschlegel.com' })({
images: {
// TODO: remove to disable nextjs image optimizations/caching
remotePatterns: [
{
protocol: 'https',
hostname: 'vectorflags.s3.amazonaws.com',
port: '',
pathname: '/flags/**',
},
{
protocol: 'https',
hostname: 'flagsapi.com',
port: '',
pathname: '/**',
},
],
formats: ['image/avif'],
},
compiler: {
removeConsole: process.env.NODE_ENV === 'production',
},
experimental: {
reactCompiler: true,
// instrumentationHook: true,
},
async redirects() {
return [
// Basic redirect
{
source: '/',
destination: '/play',
permanent: true,
},
{
source: '/season6',
destination: '/play',
permanent: true,
},
{
source: '/season5',
destination: '/play?season=5',
permanent: true,
},
{
source: '/season4',
destination: '/play?season=4',
permanent: true,
},
{
source: '/season3',
destination: '/play?season=3',
permanent: true,
},
{
source: '/season2',
destination: '/play?season=2',
permanent: true,
},
{
source: '/season1',
destination: '/play?season=1',
permanent: true,
},
];
},
});
// export default MillionLint.next({
// rsc: true,
// })(nextConfig);
export default nextConfig;