System Information
- Strapi Version: 4.0.6
- Operating System: MacOS
- Database: SQLite
- Node Version: 14.8.3
- NPM Version: 8.3
- Yarn Version: 1.22.27
The migration guide here
mentions in the warning block to better use .env variables for app keys and provide this example:
APP_KEYS=[someSecret, anotherSecret, additionalSecrets]
However, it does NOT tell how to use those in the actual configuration, which looks like that in the docu:
// path: ./config/server.js
module.exports = ({ env }) => ({
host: env('HOST', '0.0.0.0'),
port: env.int('PORT', 1337),
app: {
keys: env.array("APP_KEYS", ["testKey1", "testKey2"]),
},
// ...
});
What is the proper way to use env variables in keys
?
Would it be
keys: env.array("APP_KEYS", env(APP_KEYS)),
???