Skip to content
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

link media resources to locally hosted file (not the one on admin subdomain) #2

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

avinoamsn
Copy link
Member

resolves #1

Gets the publicURL field on localFile___NODE objects in the gatsby-source-wordpress normalizer and assigns it to a new publicURL field on the media object, which can then be used in place of the link field (that contains the link to the file on the admin subdomain).

avinoamsn added 2 commits May 7, 2020 11:02
…malizer, having trouble accessing the localFile nodes. May return to this but not sure what I'm missing.
@avinoamsn avinoamsn marked this pull request as draft May 21, 2020 17:17
@avinoamsn avinoamsn changed the title WIP link media resources to locally hosted file (not the one on admin subdomain) link media resources to locally hosted file (not the one on admin subdomain) May 21, 2020
@avinoamsn avinoamsn force-pushed the master branch 2 times, most recently from 67925f1 to 41dd8b0 Compare June 6, 2021 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Source media/PDFs locally (with staticUrl)
1 participant