-- postgresql.conf production tweaks max_connections = 200 shared_buffers = 25% of RAM effective_cache_size = 75% of RAM work_mem = 4MB -- per operation maintenance_work_mem = 64MB wal_buffers = 16MB max_wal_senders = 5

The first mistake many teams make is assuming that "it works on my machine" implies it will work in production. Production-settings are fundamentally different from development settings in five critical ways:

Before you press "deploy" on any critical service, run through this checklist:

Do not use wildcards ( * ) in production CORS settings unless you are building a public API intended for everyone.