export default function environmentConfig(environment: string) { let config = { server: { port: process.env.PORT || 3000 }, ormAdapter: 'memory', database: { }, 'denali-jwt': { secret: '123' } }; if (environment === 'development') { // development-specific config } if (environment === 'production') { // production-specific config // You can start Denali in SSL mode by providing your private key and // certificate, or your pfx file contents // // config.server.ssl = { // key: fs.readFileSync('privatekey.pem'), // cert: fs.readFileSync('certificate.pem') // }; // // or, // // config.server.ssl = { // pfx: fs.readFileSync('server.pfx') // }; // } return config; }