Yarn build stucks at “Building admin panel"

System Information
  • Strapi Version: 4.20.0
  • Operating System: Windows / Linux
  • Database: Postgress
  • Node Version: 18.8.0
  • NPM Version:
  • Yarn Version: v1.22.19

I am running yarn build and it stucks at “Building admin panel (31595ms)”
And cannot continue my deployment process to perform the yarn start command.

How i can debug what goes wrong?

I was able to figure out the cause of my issue.

I was installing in config/logger.ts the winston-logger

ansports: [
        new LokiTransport({
            host: 'https://url',
            json: true,
            basicAuth: 'authStuff',
            labels: { app: 'app' },
            replaceTimestamp: true,
            format: format.simple(),

And that broke the process
As soon as I commented it out the deployment worked.