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

SSR Issues with Contentful Local Images #38536

Open
2 tasks done
burakozdemir32 opened this issue Sep 8, 2023 · 0 comments
Open
2 tasks done

SSR Issues with Contentful Local Images #38536

burakozdemir32 opened this issue Sep 8, 2023 · 0 comments
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby

Comments

@burakozdemir32
Copy link

Preliminary Checks

Description

Hello!

When I use localFile option as documented here, everything works as expected on SSG pages. However, when I apply the same thing to SSR page queries, the asset prefix is not properly configured and static files are not served from correct place.

Reproduction Link

Steps to Reproduce

Apply this on an SSR page.

Expected Result

The asset prefix is not considered and contentful files are served from the correct location.

Actual Result

The asset prefix is not considered and contentful files are served from the incorrect location.

Environment

System:
    OS: macOS 13.2.1
    CPU: (10) arm64 Apple M1 Pro
    Shell: 3.2.57 - /bin/sh
  Binaries:
    Node: 18.17.0 - /var/folders/rn/h0btjwcd2_v19xs8m9hk7ldr0000gp/T/yarn--1694184801028-0.17681536407889453/node
    Yarn: 1.22.17 - /var/folders/rn/h0btjwcd2_v19xs8m9hk7ldr0000gp/T/yarn--1694184801028-0.17681536407889453/yarn
    npm: 9.6.7 - ~/.nvm/versions/node/v18.17.0/bin/npm
  Languages:
    Python: 3.9.18 - /Users/burakozdemir/bin/python
  Browsers:
    Chrome: 116.0.5845.179
    Safari: 16.3
  npmPackages:
    gatsby: ^5.9.0 => 5.11.0
    gatsby-plugin-google-tagmanager: ^5.9.0 => 5.11.0
    gatsby-plugin-image: ^3.7.0 => 3.11.0
    gatsby-plugin-loadable-components-ssr: ^4.3.2 => 4.3.2
    gatsby-plugin-nprogress: ^5.11.0 => 5.11.0
    gatsby-plugin-postcss: ^6.8.0 => 6.11.0
    gatsby-plugin-react-helmet-async: ^1.2.3 => 1.2.3
    gatsby-plugin-react-i18next: ^3.0.1 => 3.0.1
    gatsby-plugin-sharp: ^5.9.0 => 5.11.0
    gatsby-plugin-sitemap: ^6.11.0 => 6.11.0
    gatsby-plugin-tsconfig-paths: ^1.0.6 => 1.0.6
    gatsby-plugin-vanilla-extract: ^4.0.1 => 4.0.1
    gatsby-source-contentful: ^8.7.0 => 8.11.0
    gatsby-source-filesystem: ^5.9.0 => 5.11.0
    gatsby-transformer-sharp: ^5.9.0 => 5.11.0

Config Flags

No response

@burakozdemir32 burakozdemir32 added the type: bug An issue or pull request relating to a bug in Gatsby label Sep 8, 2023
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

1 participant