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

Unexisting domain/fallback? #5

Open
MatSemCVMaker opened this issue Feb 25, 2021 · 0 comments
Open

Unexisting domain/fallback? #5

MatSemCVMaker opened this issue Feb 25, 2021 · 0 comments

Comments

@MatSemCVMaker
Copy link

I'm currently using the gatsby-source-trustpilot to show some reviews in a multi-domain website.

The main gatsby-config is shared for all builds in various domains, so i get the domain of the website as a variable and pass it in the arrays of domains i gatsby-source-trustpilot options with a main domain that i expected to use as a fallback. Unfortunately, not always the domain exist (as example dev enviroments or new domains), and this break the plugin

"gatsby-source-trustpilot" threw an error while running the sourceNodes
lifecycle:

404 - [object Object]

  44 |                         // Get Business Unit IDs for given domains
  45 |                         _context.next = 5;
> 46 |                         return client.fetchUnitIdsForDomains();
     |                                       ^
  47 |
  48 |                     case 5:
  49 |

is there a way to implement some kind of fallback?

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

No branches or pull requests

1 participant