I’m installing the strapi api in Digitalocean and I can’t seem to deploy the admin panel. The API is deployed sucessfully but the GUI says in terminal - info Opening the admin panel… and returns always 404 when acessing /admin url. The api is retrieved succefully.
Only the develop command will build the admin, and only when the build folder doesn’t exist, for staging/production (using the start command) you need to build the admin yourself, and rebuild it should any of the Strapi package versions change.
I have build the admin and still not working. Im running the command NODE_ENV=production npm run start for the test before adding to pm2.
My server config file is under config/env/production and keeps triyng to open the admin panel.
Yes, sorry i’ve copied the complete file. The first server is my frontend app allocated in example.pt. The second is the strapi api allocated in the subdomain api.example.pt.