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’spublic
directory -
Update
endpoint.ex
and add that new linked directory to the whitelist forPlug.Static