Skip to content

Instantly share code, notes, and snippets.

@eugenehp
Created April 12, 2021 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eugenehp/9f62c3c197ef65d2e1984dff55c8838b to your computer and use it in GitHub Desktop.
Save eugenehp/9f62c3c197ef65d2e1984dff55c8838b to your computer and use it in GitHub Desktop.
gatsby-source-medium-backup integration
const markdownPages = `${__dirname}/src/markdown-pages`
module.exports = {
plugins: [
{
resolve: `gatsby-source-medium-backup`,
options: {
source: `${__dirname}/medium-export.zip`,
destination: markdownPages,
},
},
// markdown
{
resolve: `gatsby-source-filesystem`,
options: {
path: markdownPages,
name: `markdown-pages`,
},
},
`gatsby-transformer-remark`,
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment