-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
59 lines (58 loc) · 1.63 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
/** @type {import('next').NextConfig} */
const nextConfig = {
// output: 'standalone',
output: 'export',
images: {
unoptimized: true, // For export
remotePatterns: process.env.WSAF_ASSETS_BASE_URL ? [
{
protocol: process.env.WSAF_ASSETS_BASE_URL.includes('https') ? 'https' : 'http',
hostname: process.env.WSAF_ASSETS_BASE_URL.replace('https://', '').replace('http://', '').split('/')[0],
pathname: '/**'
}
] : [],
},
redirects: () => ([
{
source: '/instagram',
destination: 'https://www.instagram.com/wsaf24/',
permanent: true,
},
{
source: '/discord',
destination: 'https://discord.gg/TuFwJX4GKM',
permanent: true,
},
{
source: '/youtube',
destination: 'https://www.youtube.com/channel/UCCFESD5QMLnlgKQjkBLuv3A',
permanent: true,
},
{
source: '/stream',
destination: 'https://www.youtube.com/channel/UCCFESD5QMLnlgKQjkBLuv3A',
permanent: true,
},
{
source: '/feedback',
destination: 'https://2024.wsaf.org.uk',
permanent: true,
},
{
source: '/qr/d62',
destination: 'https://2024.wsaf.org.uk/schedule?utm_campaign=schedule&utm_medium=ds&utm_source=screens',
permanent: true,
},
{
source: '/qr/2d2',
destination: 'https://2024.wsaf.org.uk/schedule?utm_campaign=schedule&utm_medium=ds&utm_source=oculus',
permanent: true,
},
{
source: '/qr/ee4',
destination: 'https://2024.wsaf.org.uk/schedule?utm_campaign=slides&utm_medium=ds&utm_source=tv',
permanent: true,
}
])
};
export default nextConfig;