-
Notifications
You must be signed in to change notification settings - Fork 52
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
Dynamic username #76
Comments
This plugin like any of gatsby runs on build time so not sure what you mean by dynamic. You could retrieve the username from an environment variable but i guess what you are looking for is changing even after gatsby develop or gatsby build? |
By dynamic I mean something like retrieving the username from a page query! So let's say for example sake I want to generate different pages (at build time) which include a bunch of instagram pictures from different accounts, one account per page. |
Right so if you take a look at the example https://github.com/oorestisime/gatsby-source-instagram/blob/master/example/gatsby-config.js#L16-L46 you can see you can define this plugin multiple times. You can do one for each username until i find some time to do #22 Let me know if this is any help. |
Closing this, if you think there's something to do in the plugin feel free to reopen :) |
In my case the username is dynamic, right now it pulls the username from the config. Is it possible to use a dynamic username based on a query?
The text was updated successfully, but these errors were encountered: