Skip to content

Commit

Permalink
docs(redirects): add information about the various types of redirects…
Browse files Browse the repository at this point in the history
… going to `assets.ourworldindata.org`
  • Loading branch information
marcelgerber committed Jul 29, 2024
1 parent b9795ba commit fd2f9f3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions baker/redirects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,17 @@ export const getRedirects = async (knex: db.KnexReadWriteTransaction) => {
"/slides/* https://slides.ourworldindata.org/:splat 301",

// These are needed for the Cloudflare Pages migration

// Wordpress uploads, mostly images
// Example: https://assets.ourworldindata.org/uploads/2022/03/Age-of-onset-depression2-01-1-800x521.png
"/uploads/* https://assets.ourworldindata.org/uploads/:splat 301",

// Automatic static grapher exports for graphers embedded into Wordpress, taking query params such as `country=USA` into account
// Example: https://assets.ourworldindata.org/exports/absolute-change-co2-a847e6c96bb2640c05a8cd075949d1bb_v26_850x600.svg
"/exports/* https://assets.ourworldindata.org/exports/:splat 301",

// Automatic static grapher exports for every grapher chart
// Example: https://assets.ourworldindata.org/grapher/exports/absolute-change-co2.svg
"/grapher/exports/* https://assets.ourworldindata.org/grapher/exports/:splat 301",
]

Expand Down

0 comments on commit fd2f9f3

Please sign in to comment.