routify.dev
routify.dev copied to clipboard
Document how to use config through package.json/env
https://www.npmjs.com/package/dotenv
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.
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
Not sure if this is documented somewhere or whether it should be?
@Wolfr good catch. Yes, it probably should be in the guide or the docs somewhere.