skillrecordings/egghead-next

case study migration

laurosilvacom opened this issue · 1 comments

#924 extracts the case studies from the blog

as a next step we need to migrate the case studies published on egghead.io:

https://egghead.io/blog/shaundai-person-the-benefits-of-teaching-others-what-you-learn
https://egghead.io/blog/matias-hernandez-leveling-up-by-sharing-knowledge

once migrated we need to create a force redirect, we can do this onnext.config.js

const learnRoutes = [
  {
    source: `blog/shaundai-person-the-benefits-of-teaching-others-what-you-learn`,
    destination: '/case-studies/shaundai-person',
    permanent: true,
  },
  {
    source: `blog/matias-hernandez-leveling-up-by-sharing-knowledge`,
    destination: '/case-studies/matias-hernandez',
    permanent: true,
  },

Additionally we need to migrate all the case studies from https://howtoegghead.com/instructor/case-studies/

this a straightforward process that requires creating a Sanity doc, pasting markdown and publishing the case study

we need to create a redirect on howtoegghead.io as well:

  • save a plain text file called _redirects without a file extension at the root of the repo
  • in a _redirects file, each redirect rule must be listed on a separate line, with the original path followed by the URL (the new URL of the case study that's published on egghead.io)
# Redirects from what the browser requests to what we serve
/instructor/case-studies/kent-c-dodds            https://www.egghead.io/case-studies/kent-c-dodds   

This might be helpful: https://github.com/kentcdodds/netlify-shortener