routify.dev icon indicating copy to clipboard operation
routify.dev copied to clipboard

Document how to use config through package.json/env

Open Wolfr opened this issue 5 years ago • 4 comments

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

Wolfr avatar May 22 '20 10:05 Wolfr

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.

Wolfr avatar May 23 '20 08:05 Wolfr

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

jakobrosenberg avatar May 23 '20 09:05 jakobrosenberg

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

Wolfr avatar Jun 30 '20 21:06 Wolfr

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

jakobrosenberg avatar Jul 01 '20 09:07 jakobrosenberg