protect statistics user name and redirect typos

This commit is contained in:
keyan 2022-01-19 16:05:58 -06:00
parent abac0c8c70
commit 34a433c273
2 changed files with 11 additions and 0 deletions

View File

@ -28,5 +28,14 @@ module.exports = withPlausibleProxy()({
destination: '/api/lnurlp/:username' destination: '/api/lnurlp/:username'
} }
] ]
},
async redirects () {
return [
{
source: '/statistics',
destination: '/satistics?inc=invoice,withdrawal',
permanent: true
}
]
} }
}) })

View File

@ -0,0 +1,2 @@
UPDATE users set name = 'thanks_statistics' where name = 'statistics';
INSERT INTO "users" ("name") VALUES ('statistics');