Ghost/ghost/link-redirects
Naz 32cd3b9433 Optimized link redirects handling
refs https://github.com/TryGhost/Toolbox/issues/515

- The link redirect handled was querying database on every single frontend request causing a significant amount of unnecessary traffic
- The optimization is returning early if the incoming URL does not start with a common "r/" prefix
2023-02-02 17:27:30 +01:00
..
lib Optimized link redirects handling 2023-02-02 17:27:30 +01:00
test Optimized link redirects handling 2023-02-02 17:27:30 +01:00
.eslintrc.js Added initial link-redirects package 2022-09-14 13:24:17 -04:00
index.js Added initial link-redirects package 2022-09-14 13:24:17 -04:00
package.json Update dependency @types/express to v4.17.16 2023-01-25 11:28:02 +01:00
README.md Added initial link-redirects package 2022-09-14 13:24:17 -04:00

Link Redirects

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests