Replies: 5 comments 17 replies
-
|
I think, in Github Actions you can highlight the text and try to read what the reason for the error was? In any case, I could speculate that this is a networking issue. Not sure how to proceed if that's the case though. What Node.js version does your build action use? I hope it is not some TLS, or IPv6 issue... |
Beta Was this translation helpful? Give feedback.
-
|
An alternative is to self host the fonts to avoid network requests.
https://nextjs.org/docs/app/getting-started/images-and-fonts |
Beta Was this translation helpful? Give feedback.
-
|
I am also facing this issue. any fix? |
Beta Was this translation helpful? Give feedback.
-
|
▲ Next.js 14.2.7
Creating an optimized production build ... Retrying 1/3... Retrying 2/3... Retrying 3/3... Failed to compile. src/app/fonts.ts
Error: Process completed with exit code 1. |
Beta Was this translation helpful? Give feedback.
-
|
I'm facing the same problem in gilab CI/CD using nextjs v15.5.6. Very long timeout and then exit code. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I'm experiencing an issue when building my Next.js project in GitHub Actions. The build process gets stuck for several minutes while trying to fetch Google Fonts, and sometimes it fails completely. Here is the relevant error log:
It retries multiple times, and in some cases, it succeeds after ~7 minutes. However, occasionally, the build fails entirely because it cannot fetch the fonts.
This is how I import the fonts in my Next.js project:
Running the build locally works fine. Any ideas on how to shorten the build time and fix this error?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions