data
data
Explore posts from servers
CDCloudflare Developers
Created by data on 8/26/2024 in #pages-help
Nitro build hangs after Nuxt 3.13 upgrade
We use Nuxt (therefore nitro), something in the recent 3.13 update broke our build. 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/`
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 versions 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!
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!
Apparently this pr changed the structure and functions invoked on compilation finished hook https://github.com/unjs/nitro/pull/2446 But... it also hangs when using the 2.10 nightly version 😦
1 replies