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

Document how to use config through package.json/env #126

Open
Wolfr opened this issue May 22, 2020 · 4 comments
Open

Document how to use config through package.json/env #126

Wolfr opened this issue May 22, 2020 · 4 comments

Comments

@Wolfr
Copy link
Collaborator

Wolfr commented May 22, 2020

https://www.npmjs.com/package/dotenv

@Wolfr
Copy link
Collaborator Author

Wolfr commented May 23, 2020

What are the use cases for this? If you have a use case for environment specific variables and/or have used this feature, please describe it here so we can document it properly.

@jakobrosenberg
Copy link
Member

package.json camelCase

"dependencies": {
  ...
  "routify-plugin-frontmatter": "latest"
}
"routify": {
  "dynamicImports": true,
  "plugins": {
    "routify-plugin-frontmatter": {}
  }
}

.env snake_case (no plugin support)

ROUTIFY_DYNAMIC_IMPORT
routify_single_build

@Wolfr
Copy link
Collaborator Author

Wolfr commented Jun 30, 2020

Not sure if this is documented somewhere or whether it should be?

@jakobrosenberg
Copy link
Member

@Wolfr good catch. Yes, it probably should be in the guide or the docs somewhere.

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