New version 0.3.0 of Incident Learning Phoenix Live Views! With Illustrations!

Running a Gatsby blog inside a Phoenix app

I wrote a simple guide on running a Gasby blog inside a Phoenix app. The basic approach I used was:

  • Create a new Phoenix app
  • Create a new Gatsby project from their hello-world starter inside the assets directory of the Phoenix project
  • Set up a symbolic link assets/static directory to Gastby’s public directory
  • Update endpoint.ex and add that new linked directory to the whitelist for Plug.Static

https://alchemist.camp/articles/gatsby-phoenix