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

With multisite enabled in 21.1-canary, the GRAPH_QL_ENDPOINT is required #1291

Closed
larserhardsen opened this issue Jan 16, 2023 · 3 comments
Closed

Comments

@larserhardsen
Copy link

larserhardsen commented Jan 16, 2023

Description

In previous versions before adding the new multisite functionality, it was enough to provide the SITECORE_API_HOST and SITECORE_API_KEY environment variables, and with multisite enabled, the GRAPH_QL_ENDPOINT variable must be filled in, according to the file here:
https://github.com/Sitecore/jss/blob/dev/packages/create-sitecore-jss/src/templates/nextjs-multisite/scripts/config/plugins/multisite.ts

If omitted, the build fails, as the config.graphQLEndpoint is only containing a path.

Expected behavior

It should be enough to provide SITECORE_API_HOST and SITECORE_API_KEY

@ambrauer
Copy link
Contributor

@larserhardsen Thanks for reporting, I've added this to our backlog for further investigation. You are correct, we lost previous dynamic aspects of the config graphQLEndpoint prop.

@ambrauer
Copy link
Contributor

@larserhardsen This issue is resolved with #1296. Please try with latest canary build.

@larserhardsen
Copy link
Author

@ambrauer It works! Thanks!

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

2 participants