-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
74 lines (71 loc) · 1.74 KB
/
next.config.js
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
const withMDX = require('@next/mdx')()
const withPWA = require('next-pwa')({
dest: 'public',
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === 'development'
})
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
pageExtensions: ['js', 'jsx', 'md', 'mdx'],
images: {
remotePatterns: [
{
protocol: 'http',
hostname: 'openweathermap.org',
pathname: '/img/wn/**',
},
{
protocol: 'https',
hostname: 'vqgbaydvbxbwpgbjrquo.supabase.co',
pathname: '**',
},
{
protocol: 'https',
hostname: 'wpl.libnet.info',
pathname: '/images/events/wpl/**',
},
{
protocol: 'https',
hostname: 'events-calendar-public-us-east-2.s3.us-east-2.amazonaws.com',
pathname: '/event-images/**',
},
{
protocol: 'https',
hostname: 'cms.connectedkw.com',
pathname: '/assets/**',
}
],
},
async redirects() {
return [
{
source: '/maps/playgrounds',
destination: '/maps/playgrounds-in-kitchener-waterloo',
permanent: true,
},
{
source: '/maps/public-art',
destination: '/maps/public-art-in-waterloo-region',
permanent: true,
},
{
source: '/maps/splashpads',
destination: '/maps/splashpads-in-waterloo-region',
permanent: true,
},
{
source: '/camps',
destination: '/articles/summer-camps-2024',
permanent: false,
},
{
source: '/join',
destination: 'https://cms.connectedkw.com/admin/register',
permanent: false,
}
]
},
}
module.exports = withMDX(withPWA(nextConfig))