@WardenCommander This is my config/env/production/database.js:
const parse = require('pg-connection-string').parse;
const config = parse(process.env.DATABASE_URL);
module.exports = ({ env }) => ({
connection: {
client: 'postgres',
connection: {
host: config.host,
port: config.port,
database: config.database,
user: config.user,
password: config.password,
ssl: {
rejectUnauthorized: false
},
},
debug: false,
},
});
and this is the config/env/production/server.js
module.exports = ({ env }) => ({
url: env('MY_HEROKU_URL'),
emitErrors: true,
app: {
keys: env.array("APP_KEYS", ["testKey1", "testKey2"]),
},
});
And just to make things complete, here is my config/env/production/plugins.js:
module.exports = ({ env }) => ({
upload: {
config: {
provider: 'cloudinary',
providerOptions: {
cloud_name: env('CLOUDINARY_NAME'),
api_key: env('CLOUDINARY_KEY'),
api_secret: env('CLOUDINARY_SECRET'),
},
actionOptions: {
upload: {},
delete: {},
},
// Image breakpoints (independent from any upload provider)
breakpoints: {
xlarge: 1920,
large: 1000,
medium: 750,
small: 500,
xsmall: 64
},
},
// logger: console // Only if you want to `stdout` logs
},
});
All on a strapi v4.1.0.