Skip to content

Commit 030efe2

Browse files
committed
redirects
1 parent 1bb76b0 commit 030efe2

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

next.config.js

+25-7
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@ module.exports = {
22
reactStrictMode: true,
33
staticPageGenerationTimeout: 180,
44
images: {
5-
domains: [
6-
'dl.airtable.com',
7-
'avatars.githubusercontent.com',
8-
'camo.githubusercontent.com',
9-
'www.datocms-assets.com',
10-
'acegif.com',
11-
],
5+
domains: ['dl.airtable.com', 'avatars.githubusercontent.com', 'camo.githubusercontent.com', 'www.datocms-assets.com', 'acegif.com'],
126
},
137
webpack(config) {
148
config.module.rules.push({
@@ -18,4 +12,28 @@ module.exports = {
1812

1913
return config
2014
},
15+
async redirects() {
16+
return [
17+
{
18+
source: '/gas',
19+
destination: 'https://www.ethgastracker.com/',
20+
permanent: true,
21+
},
22+
{
23+
source: '/gas/arbitrum',
24+
destination: 'https://www.ethgastracker.com/network/arbitrum',
25+
permanent: true,
26+
},
27+
{
28+
source: '/gas/base',
29+
destination: 'https://www.ethgastracker.com/network/base',
30+
permanent: true,
31+
},
32+
{
33+
source: '/gas/optimism',
34+
destination: 'https://www.ethgastracker.com/network/optimism',
35+
permanent: true,
36+
},
37+
]
38+
},
2139
}

0 commit comments

Comments
 (0)