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

.env example is missing #20

Open
lassecapel opened this issue Sep 26, 2019 · 0 comments
Open

.env example is missing #20

lassecapel opened this issue Sep 26, 2019 · 0 comments
Assignees

Comments

@lassecapel
Copy link

lassecapel commented Sep 26, 2019

In nuxt.config.js dotenv is required and later used to set the configuration for apollo.
There is no .env.example in the project to know what the .env file should look like in this project,

if (process.env.NODE_ENV !== 'production') {
  require('dotenv').config()
}

nuxt.config.s

  apollo: {
    tokenName: 'FM_OS_APOLLO_USER_TOKEN',
    tokenExpires: 10, // optional, default: 7 (days)
    clientConfigs: {
      default: {
        httpEndpoint: process.env.API_HOST
      }

firebase.js

const FIREBASE_SERVICE_ACCOUNT = JSON.parse(
  process.env.FIREBASE_SERVICE_ACCOUNT
)
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