mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-09 20:59:02 +00:00
add redirects structure
This commit is contained in:
parent
4315911af4
commit
35db2a4906
2 changed files with 16 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
/** @type {import('next').NextConfig} */
|
||||
const { redirects: redirectsList } = require('./redirects');
|
||||
|
||||
const withMDX = require('@next/mdx')({
|
||||
extension: /\.mdx?$/,
|
||||
|
|
@ -14,5 +15,8 @@ module.exports = withMDX({
|
|||
reactStrictMode: true,
|
||||
swcMinify: true,
|
||||
// Append the default value with md extensions
|
||||
pageExtensions: ['ts', 'tsx', 'md', 'mdx']
|
||||
pageExtensions: ['ts', 'tsx', 'md', 'mdx'],
|
||||
async redirects() {
|
||||
return redirectsList
|
||||
},
|
||||
});
|
||||
|
|
|
|||
11
redirects.js
Normal file
11
redirects.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
const redirects = [
|
||||
{
|
||||
source: '/about',
|
||||
destination: '/',
|
||||
permanent: true,
|
||||
}
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
redirects
|
||||
}
|
||||
Loading…
Reference in a new issue