Serve course npx http-server . -p 8002 -s --cors Consume course Put this into url /src/data/courses.js: [ ... 'http://localhost:8002/course.json' ... ] And start gatsby gatsby develop