LOCAL System Information
- Strapi Version: v4.1.11
- Operating System:
- Database: postgres
- Node Version: v16.15.0
- NPM Version: 6.14.11
- Yarn Version: 1.22.5
Hi guys and thanks for your time.
At first I want to clear out that the application is fully working in local environment.
My issue is related only when I try to deploy into Heroku.
I followed this guide to deploy de app.
I replaced /env/production by /env/staging and set STAGING environment into
heroku config:set NODE_ENV=production
This is my ./config/env/staging/database.js file
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,
},
});
This is my ./config/env/staging/server.js
module.exports = ({ env }) => ({
proxy: true,
url: env('MY_HEROKU_URL'),
app: {
keys: env.array('APP_KEYS')
},
})
This is the screen when I open the app:
Hope you can help me