Deployed strapi admin panel trying to hit localhost:1337

*INFO *
NPM 14.21.1 strapi 4.4.6

Hi all. I’m trying to do
1.NODE_ENV=production npm run build
2. NODE_ENV=production npm run start

But there is still a message in the console
http://localhost:1337/admin/project-type

//./config/server.js module.exports = ({ env }) => ({ host: env('HOST', '0.0.0.0'), port: env.int('PORT', 1337), app: { keys: env.array('APP_KEYS'), }, });

=> NOT WORKING
STRAPI_ADMIN_BACKEND_URL=
=> NOT WORKING
Create ./config/env/production/server.js

{
admin : {
url: env(“PUBLIC_URL”)
}
}

PUBLIC_URL=http://XXX.XXX.XX.XXX/admin

=> NOT WORKING TOO
Create ./config/env/production/server.js

{
url: env(“PUBLIC_URL”)
}

PUBLIC_URL=http://XXX.XXX.XX.XXX

Lost 1 day of my life …

1 Like