diff --git a/next.config.js b/next.config.js index 13d5d2f1..04ace97a 100644 --- a/next.config.js +++ b/next.config.js @@ -189,6 +189,11 @@ module.exports = withPlausibleProxy()({ source: '/statistics', destination: '/satistics?inc=invoice,withdrawal', permanent: true + }, + { + source: '/top/cowboys/:when', + destination: '/top/cowboys', + permanent: true } ] }, diff --git a/pages/~/top/cowboys.js b/pages/~/top/cowboys.js index daaecc9b..e29387fe 100644 --- a/pages/~/top/cowboys.js +++ b/pages/~/top/cowboys.js @@ -6,6 +6,7 @@ import UserList from '@/components/user-list' export const getServerSideProps = getGetServerSideProps({ query: TOP_COWBOYS }) +// if a when descriptor is provided, it redirects here; see next.config.js export default function Index ({ ssrData }) { return (