Search code examples
ghost-blogdotenv

How do I specify arrays in .env files for Ghost?


How do I specify array values for Ghost's .env file?

I am using a .env file to configure Ghost. Per How to define array/object in .env file? I have set up a line in my .env which reads:

logging__transports="file,stdout"

However Ghost fails with:

TypeError: this.transports.splice is not a function

How do I specify arrays in .env files for Ghost?


Solution

  • Ghost now supports this:

    logging__transports='["file", "stdout"]'