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

How to configure google key if key is sourced from vuex $store? #4

Open
curtisbelt opened this issue Jun 7, 2018 · 1 comment
Open

Comments

@curtisbelt
Copy link

Hello, thanks for your work on this.

I'm creating a headless WordPress site, and for my use case the client needs to be able to add/modify their Google Map API key via a WordPress plugin - long story short, their google key comes into my Nuxt app via nuxtServerInit, and is saved in $store.state.googleMapsKey.

I am not sure how to bridge the gap between having the key loaded in $store.state.googleMapsKey and nuxt.config.js. If this is outside your intended scope feel free to close! Thank you.

@coremyslo
Copy link

Consider using .env file for api keys
https://github.com/nuxt-community/dotenv-module

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