-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
78 lines (77 loc) · 2.14 KB
/
next.config.js
File metadata and controls
78 lines (77 loc) · 2.14 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{ protocol: 'https', hostname: 'xesojwzcnjqtpuossmuv.supabase.co' },
{ protocol: 'https', hostname: '**.supabase.co' },
{ protocol: 'https', hostname: 'bioguide.congress.gov' },
{ protocol: 'https', hostname: '**.googleapis.com' },
{ protocol: 'https', hostname: '**.googleusercontent.com' },
{ protocol: 'https', hostname: '**.wikimedia.org' },
{ protocol: 'https', hostname: '**.wikipedia.org' },
{ protocol: 'https', hostname: '**.usaspending.gov' },
{ protocol: 'https', hostname: '**.legistar.com' },
{ protocol: 'https', hostname: '**' },
],
},
async redirects() {
return [
{
source: '/resourcecenter/:slug',
destination: '/search?q=:slug',
permanent: false,
},
{
source: '/neighborhoods',
destination: '/geography',
permanent: true,
},
{
source: '/super-neighborhoods',
destination: '/geography',
permanent: true,
},
{
source: '/super-neighborhoods/:path*',
destination: '/geography?superNeighborhood=:path*',
permanent: true,
},
{
source: '/library/:id((?!category|doc|chat)[a-f0-9-]{36})',
destination: '/library/doc/:id',
permanent: true,
},
{
source: '/pathways/our-health',
destination: '/pathways/health',
permanent: true,
},
{
source: '/pathways/our-families',
destination: '/pathways/families',
permanent: true,
},
{
source: '/pathways/our-neighborhood',
destination: '/pathways/neighborhood',
permanent: true,
},
{
source: '/pathways/our-voice',
destination: '/pathways/voice',
permanent: true,
},
{
source: '/pathways/our-money',
destination: '/pathways/money',
permanent: true,
},
{
source: '/pathways/our-planet',
destination: '/pathways/planet',
permanent: true,
},
]
},
}
module.exports = nextConfig