Add note about quoting in configuration guide
The way Nuxt handles environment variables is weird. Document this to help others from not falling into its pitfalls.
This commit is contained in:
parent
3f492edea2
commit
2d6bcebc5a
1 changed files with 4 additions and 0 deletions
|
@ -4,6 +4,10 @@
|
|||
-->
|
||||
# Configuration
|
||||
|
||||
## Quoting
|
||||
|
||||
Environment variables are parsed using [destr](https://github.com/unjs/destr) which contain arbitrary unspecified and undocumented rules for converting strings to data. If an environment input looks like JSON it'll most likely be parsed as JSON and my cause a type missmatch error to be reported. To avoid strings being converted into other unintended values put the value into `"` marks. Depending on your configuration environment you may have to double up the quotation marks and/or use escapes.
|
||||
|
||||
## Environment Variables
|
||||
|
||||
### NUXT_SESSION_ROTATES_TIMEOUT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue