https://github.com/lekoarts-demos/gatsby-absolute-image-paths
Explanation of using absolute image paths in Gatsby in other data sources like JSON
https://github.com/lekoarts-demos/gatsby-absolute-image-paths
Last synced: about 2 months ago
JSON representation
Explanation of using absolute image paths in Gatsby in other data sources like JSON
- Host: GitHub
- URL: https://github.com/lekoarts-demos/gatsby-absolute-image-paths
- Owner: lekoarts-demos
- Created: 2021-05-12T08:19:40.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-28T11:11:08.000Z (over 2 years ago)
- Last Synced: 2024-05-02T01:47:50.176Z (12 months ago)
- Language: JavaScript
- Size: 336 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Using absolute image paths in Gatsby
This is an answer to the question in this discussion: https://github.com/gatsbyjs/gatsby/discussions/31382
"How can I use absolute paths to images in e.g. JSON files and have childImageSharp appear?"
---
This solution here is the shortest implementation of https://www.byderek.com/post/a-stackoverflow-question--a-use-case-for-gatsbys-field-extension & their plugin: https://github.com/d4rekanguok/gatsby-schema-field-absolute-path