Skip to content

Commit

Permalink
redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
wslyvh committed Oct 19, 2024
1 parent 1bb76b0 commit 030efe2
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@ module.exports = {
reactStrictMode: true,
staticPageGenerationTimeout: 180,
images: {
domains: [
'dl.airtable.com',
'avatars.githubusercontent.com',
'camo.githubusercontent.com',
'www.datocms-assets.com',
'acegif.com',
],
domains: ['dl.airtable.com', 'avatars.githubusercontent.com', 'camo.githubusercontent.com', 'www.datocms-assets.com', 'acegif.com'],
},
webpack(config) {
config.module.rules.push({
Expand All @@ -18,4 +12,28 @@ module.exports = {

return config
},
async redirects() {
return [
{
source: '/gas',
destination: 'https://www.ethgastracker.com/',
permanent: true,
},
{
source: '/gas/arbitrum',
destination: 'https://www.ethgastracker.com/network/arbitrum',
permanent: true,
},
{
source: '/gas/base',
destination: 'https://www.ethgastracker.com/network/base',
permanent: true,
},
{
source: '/gas/optimism',
destination: 'https://www.ethgastracker.com/network/optimism',
permanent: true,
},
]
},
}

0 comments on commit 030efe2

Please sign in to comment.