Strapi Admin Panel Error In Production

System Information
  • Strapi Version: 4.9.0
  • Operating System: Debian
  • Database: Postgres
  • Node Version: 18.15.0
  • NPM Version: 9.6.3
  • Yarn Version:

I have a project which contains a backend and frontend folder in a single directory. I have deployed them on AWS. The server is using NGINX configuration. Frontend is working pretty well, but when I am trying to open …/admin it is throwing below error :

More Information :

  1. Production build is being built perfectly using NODE_ENV=production npm run build --clean
  2. I am using pm2 to manage the package and the status is active.
  3. No error while network request.

server.js file

module.exports = ({ env }) => ({

  host: env("HOST", ""),

  port:"PORT", 1337),

  app: {

    keys: env.array("APP_KEYS"),


  url: env("PUBLIC_URL"),

  webhooks: {

    populateRelations: env.bool("WEBHOOKS_POPULATE_RELATIONS", false),