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-contentful): Add file-extension to remote cached items #25924

Merged
merged 2 commits into from
Sep 29, 2020
Merged

fix(gatsby-source-contentful): Add file-extension to remote cached items #25924

merged 2 commits into from
Sep 29, 2020

Conversation

royvou
Copy link
Contributor

@royvou royvou commented Jul 21, 2020

Description

This PR adds the .base64 file extension to all files created in the "remote_cache" directory (.cache/remote_cache/images)

Documentation

We noticed when using Azure WebApps (Linux based) where we host preview server(s) using the instructions on Running a Gatsby Preview Server (Which are docker containers under the hood) we get alot of " no such file or directory, open '.cache/remote_cache/images/80f�[0m �[0m�[97m[41mcfcfd88d0e8d6272c698ab6dc2257c192c4b9'�[0m" (Please ignore the color codes included in the logging, this is not the issue currently)

When you try to remove/access the file via one of the methods (viewing it on ssh/remote or via FTP) you also get an access denied errors and/or file not found.

12727-untitled

Since i noticed it was using extensionless files (and i assumed it might be an issue) i patched the file extend-node-type.js with a file extension and i noticed the problems going away :) So for this reason i thought it would be great to create a PR to improve this for everyone!

Related Issues

Since this is such a small change i did not create a issue but rather create a PR, i could create one if required.

But it's an extension to the work done in #22551

@royvou royvou requested a review from a team as a code owner July 21, 2020 17:20
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jul 21, 2020
@vladar vladar requested a review from axe312ger July 24, 2020 05:40
@vladar vladar added status: needs core review Currently awaiting review from Core team member topic: source-contentful Related to Gatsby's integration with Contentful and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jul 24, 2020
Copy link
Collaborator

@axe312ger axe312ger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. We should/will take this in to account when reworking the base64 features

@wardpeet wardpeet changed the title Add fileextension to remote_chache items for gatsby-source-contentful plugin. fix(gatsby-source-contentful): Add file-extension to remote cached items Sep 29, 2020
@wardpeet wardpeet merged commit bfd46f8 into gatsbyjs:master Sep 29, 2020
pragmaticpat pushed a commit to pragmaticpat/gatsby that referenced this pull request Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs core review Currently awaiting review from Core team member topic: source-contentful Related to Gatsby's integration with Contentful
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants