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

fix(gatsby-source-drupal): find mimetype field #38056

Merged
merged 3 commits into from
May 4, 2023

Conversation

ascorbic
Copy link
Contributor

@ascorbic ascorbic commented May 4, 2023

Description

When detecting image nodes, gatsby-source-drupal looks for the attributes.filemime field. However this doesn't appear to be set in this site at least, but rather the attributes.mimetype is set. Presumably this is due to either an update or a change in config. This means that images are not being detected, so image CDN does not work.

This PR fixes it by checking both the filemime and mimetype fields.

Documentation

Tests

Added test case and fixture

Related Issues

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 4, 2023
@LekoArts LekoArts added topic: source-drupal Related to Gatsby's integration with Drupal topic: source-plugins Relates to the Gatsby source plugins (e.g. -filesystem) and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels May 4, 2023
@LekoArts LekoArts merged commit e5e2bb7 into gatsbyjs:master May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: source-drupal Related to Gatsby's integration with Drupal topic: source-plugins Relates to the Gatsby source plugins (e.g. -filesystem)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants