Strapi V4 installation: Help with error: Middleware "strapi::session": App keys are required. Please set app.keys in config/server.js (ex: keys: ['myKeyA', 'myKeyB'])

Hello,
I keep getting this error when I try to deploy Strapi V4

I copied this key from the config/server.js from the Render Github repo:

and it doesn’t work.

I changed it to this

and that didn’t work either.

Does anyone know what needs to be added to this file?

Many thanks

Solved this by adding APP_KEYS in the Environment Variables can copying the array provided in the .env file.

2 Likes