refactor: change URL casing and add redirects for old URLs

This commit is contained in:
Anthony 2024-06-15 00:09:31 +02:00
parent 2b51bffe97
commit be4eb87de3
4 changed files with 19 additions and 4 deletions

View File

@ -1,7 +1,22 @@
/** @type {import('next').NextConfig} */
const withNextra = require('nextra')({
theme: 'nextra-theme-docs',
themeConfig: './src/theme.config.tsx'
themeConfig: './src/theme.config.tsx',
})
module.exports = withNextra()
module.exports = withNextra({
async redirects() {
return [
{
source: '/msfs/utils/navigraphHub',
destination: '/msfs/utils/navigraph-hub',
permanent: true,
},
{
source: '/msfs/utils/navigraphSimlink',
destination: '/msfs/utils/navigraph-simlink',
permanent: true,
}
]
}
})

View File

@ -1,8 +1,8 @@
{
"contrail": "Contrail",
"gsx": "GSX",
"navigraphHub": "Navigraph Hub",
"navigraphSimlink": "Navigraph Simlink",
"navigraph-hub": "Navigraph Hub",
"navigraph-simlink": "Navigraph Simlink",
"stkp": "SimToolkitPro",
"vatsim": "VATSIM"
}