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

Add defaultHeader config automatically passed to Apollo Client #55

Open
eric-burel opened this issue Jul 16, 2020 · 0 comments
Open

Add defaultHeader config automatically passed to Apollo Client #55

eric-burel opened this issue Jul 16, 2020 · 0 comments
Assignees
Labels

Comments

@eric-burel
Copy link
Collaborator

eric-burel commented Jul 16, 2020

Goal

This helps setting up API keys for instance, that you may want to be sent in all your graphql queries.
Eg to setup API keys #54

Steps

  • Add a configuration item in next.config.js where we can add default headers (check the progress of File based configuration management #62 before doing this)
  • Load the default headers based on this configuration in apollo client
  • Advanced: demo a custom header computation with Apollo client setContext and middleware system
@eric-burel eric-burel added apollo enhancement New feature or request labels Oct 12, 2020
@eric-burel eric-burel self-assigned this Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant