-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert absolute paths in JSON files #39
Comments
@jeremy-ecoenergy I will definitely consider in the near future, once I make sure v2 is working as intended for markdown/mdx. Can you provide an example json file and expected result? Are you using NetlifyCMS to generate the json? |
Not using NetlifyCMS, entered by hand. We are using Forestry though. JSON file before:
After:
(The same way it works for Frontmatter in Markdown files now.) |
I made a quick functions pasted onCreateNode for JSON. It is highly adapted from your original code with a few adjustment for json
|
Do you have any plans to also process JSON files? That would be really handy!
e.g. I have JSON files in the /data folder that contain absolute paths to images ("/assets/etc.jpg") that, similarly, need to be converted to relative paths.
The text was updated successfully, but these errors were encountered: