NuxtN
Nuxt17mo ago
data

Cloudflare build hangs after upgrading to 3.13

We use Cloudflare Pages cloudflare_pages to deploy our app, it was working fine until the last update.
Now it gets stuck, seemingly at the last stage before it prints "Finished"...

15:42:35.349    [success] Server built in 24226ms
15:42:35.478    [success] [nitro] Generated public dist
15:42:35.493    [info] [nitro] Building Nuxt Nitro server (preset: `cloudflare_pages`)
15:43:19.991    [success] [nitro] Nuxt Nitro server built
15:43:20.060      ├─ dist/_worker.js/chunks/_/error-500.mjs (4.67 kB) (2 kB gzip)
...
15:43:20.075      └─ dist/_worker.js/index.js (139 B) (145 B gzip)
15:43:20.075    Σ Total size: 3.19 MB (813 kB gzip)
15:43:20.075    [success] [nitro] You can preview this build using `npx wrangler pages dev dist/`
15:43:20.075    [success] [nitro] You can deploy this build using `npx wrangler pages deploy dist/`

It gets stuck here and then the build times out after 20 minutes.

While in previous verions it would log this after:
14:39:48.143    Finished
14:39:48.144    Found _worker.js in output directory. Uploading.
14:39:49.051    Attaching additional modules:
...
14:39:49.127    ✨ Compiled Worker successfully
14:39:49.239    Found _routes.json in output directory. Uploading.
14:39:49.251    Validating asset output directory
14:39:51.454    Deploying your site to Cloudflare's global network...
14:39:55.539    Uploading... (106/180)
14:39:56.176    Uploading... (130/180)
14:39:56.187    Uploading... (155/180)
14:39:56.989    Uploading... (180/180)
14:39:56.990    ✨ Success! Uploaded 74 files (106 already uploaded) (1.94 sec)
14:39:56.990    
14:39:57.369    ✨ Upload complete!


Has anyone had this issue?

EDIT: a little bit of digging in the nitro prs and source code
apparently this pr changed the structure and functions invoked on compilation finished hook
https://github.com/unjs/nitro/pull/2446
tested, it also hangs on 2.10 nightly
Was this page helpful?