Problem Description
I’m experiencing an issue with my Next.js 15.3.2 application deployment on Vercel. Despite successful builds that generate all static pages, the deployment fails with the error: Error: Unable to find lambda for route: /en/about
I’ve discovered this appears to be a broader issue affecting multiple Next.js versions and projects. Another user with Next.js 14.2.28 has reported the identical error pattern but for a different route:
Error: Unable to find lambda for route: /recommend. In both cases, the build logs show successful static page generation but failure during the serverless function creation phase.
What I’ve tried
- Explicitly marked pages as static:
-
Modified route pages to use export const dynamic = ‘force-static’
-
Added other static generation directives: revalidate = false, fetchCache = ‘force-cache’
-
Changed async functions to regular functions to avoid server components
- Verified local build output:
-
Local builds successfully generate static files for all routes
-
.next/server/app/en/about/ directory contains all necessary files
-
Routes are correctly registered in .next/routes-manifest.json
- Attempted configuration fixes:
-
Tried various vercel.json configurations
-
Attempted custom routes to map problematic routes to static HTML files
-
Ensured proper Next.js configuration for static generation
Technical Details
-
My Setup: Next.js 15.3.2 with App Router on Vercel
-
Similar Case: Another user with Next.js 14.2.28 experiencing the same error pattern
-
Build Process: In both cases, builds complete successfully, generating all static pages
-
Error Pattern: Failure occurs specifically during lambda function creation phase
-
Routes Affected: Different routes in different projects (/en/about in mine, /recommend in another)
logs
[13:55:13.840] Running build in Washington, D.C., USA (East) – iad1
[13:55:13.840] Build machine configuration: 2 cores, 8 GB
[13:55:13.890] Cloning github.com/jayjeeej/zexinmining (Branch: master, Commit: f331696)
[13:55:14.889] Cloning completed: 998.000ms
[13:55:17.058] Restored build cache from previous deployment (BWp3bHBXYDWmxfWQQvKmrhJa9192)
[13:55:17.642] Running "vercel build"
[13:55:18.472] Vercel CLI 42.2.0
[13:55:18.834] Installing dependencies...
[13:55:36.654]
[13:55:36.655] added 207 packages, removed 69 packages, and changed 42 packages in 18s
[13:55:36.656]
[13:55:36.656] 170 packages are looking for funding
[13:55:36.656] run `npm fund` for details
[13:55:36.697] Detected Next.js version: 15.3.2
[13:55:36.698] Running "npm run build"
[13:55:36.815]
[13:55:36.815] > zexin-mining@0.1.0 build
[13:55:36.815] > node scripts/add-alt-attributes.js && next build
[13:55:36.815]
[13:55:36.872] 开始为图片添加alt属性...
[13:55:36.873] 正在处理文件...
[13:55:36.902]
[13:55:36.902] 处理完成,共更新了 0 个文件:
[13:55:36.902]
[13:55:36.904] 没有文件需要更新。
[13:55:37.603] ▲ Next.js 15.3.2
[13:55:37.603]
[13:55:37.697] Creating an optimized production build ...
[13:56:11.062] ✓ Compiled successfully in 32.0s
[13:56:11.067] Skipping validation of types
[13:56:11.068] Skipping linting
[13:56:11.375] Collecting page data ...
[13:56:12.163] ⚠ Using edge runtime on a page currently disables static generation for that page
[13:56:17.068] Generating static pages (0/279) ...
[13:56:20.234] Generating static pages (69/279)
[13:56:23.496] Generating static pages (139/279)
[13:56:25.026] Generating static pages (209/279)
[13:56:27.336] ✓ Generating static pages (279/279)
[13:56:27.628] Finalizing page optimization ...
[13:56:27.628] Collecting build traces ...
[13:56:30.623]
[13:56:30.640] Route (app) Size First Load JS Revalidate Expire
[13:56:30.642] ┌ ○ / 205 B 110 kB
[13:56:30.642] ├ ○ /_not-found 205 B 110 kB
[13:56:30.642] ├ ƒ /api/news 205 B 110 kB
[13:56:30.642] ├ ƒ /api/og 205 B 110 kB
[13:56:30.642] ├ ○ /api/products/vibrating-screens 205 B 110 kB 1h 1y
[13:56:30.642] ├ ○ /api/search 205 B 110 kB 1h 1y
[13:56:30.642] ├ ○ /en 16.7 kB 152 kB
[13:56:30.643] ├ ○ /en/about 22.4 kB 157 kB
[13:56:30.643] ├ ○ /en/cases 20.4 kB 155 kB
[13:56:30.643] ├ ● /en/cases/[caseId] 20.7 kB 156 kB 1h 1y
[13:56:30.643] ├ ├ /en/cases/gabon-manganese 1h 1y
[13:56:30.643] ├ ├ /en/cases/guangxi-lead-zinc 1h 1y
[13:56:30.643] ├ ├ /en/cases/guilin-yongfu-polymetallic 1h 1y
[13:56:30.643] ├ └ [+6 more paths]
[13:56:30.643] ├ ○ /en/news 19.3 kB 154 kB
[13:56:30.643] ├ ● /en/news/[newsId] 19 kB 154 kB 1h 1y
[13:56:30.643] ├ ├ /en/news/advanced-fluorite-ore-beneficiation-technologies-2025 1h 1y
[13:56:30.643] ├ ├ /en/news/advanced-silver-recovery-flotation-methods-2025 1h 1y
[13:56:30.643] ├ ├ /en/news/ball-mill-energy-saving-factors-2024 1h 1y
[13:56:30.643] ├ └ [+45 more paths]
[13:56:30.644] ├ ○ /en/products 15 kB 150 kB 1h 1y
[13:56:30.644] ├ ○ /en/products/mineral-processing-solutions 17.1 kB 152 kB 1h 1y
[13:56:30.645] ├ ● /en/products/mineral-processing-solutions/[category]/[solutionId] 24.8 kB 160 kB 1h 1y
[13:56:30.645] ├ ├ /en/products/mineral-processing-solutions/ferrous/chrome 1h 1y
[13:56:30.645] ├ ├ /en/products/mineral-processing-solutions/ferrous/hematite 1h 1y
[13:56:30.645] ├ ├ /en/products/mineral-processing-solutions/ferrous/magnetite 1h 1y
[13:56:30.645] ├ └ [+14 more paths]
[13:56:30.645] ├ ○ /en/products/mining-epc 30 kB 173 kB 1h 1y
[13:56:30.645] ├ ○ /en/products/ore-processing 24.8 kB 168 kB 1h 1y
[13:56:30.646] ├ ○ /en/products/ore-processing/classification-equipment 18.5 kB 154 kB 1h 1y
[13:56:30.646] ├ ● /en/products/ore-processing/classification-equipment/[productId] 27.1 kB 162 kB 1h 1y
[13:56:30.646] ├ ├ /en/products/ore-processing/classification-equipment/cone-classifier 1h 1y
[13:56:30.646] ├ ├ /en/products/ore-processing/classification-equipment/high-weir-spiral-classifier 1h 1y
[13:56:30.646] ├ ├ /en/products/ore-processing/classification-equipment/hydrocyclone-separator 1h 1y
[13:56:30.646] ├ └ /en/products/ore-processing/classification-equipment/submerged-spiral-classifier 1h 1y
[13:56:30.646] ├ ○ /en/products/ore-processing/feeding-equipment 18.6 kB 154 kB 1h 1y
[13:56:30.646] ├ ● /en/products/ore-processing/feeding-equipment/[productId] 27.1 kB 162 kB 1h 1y
[13:56:30.647] ├ ├ /en/products/ore-processing/feeding-equipment/apron-feeder 1h 1y
[13:56:30.647] ├ ├ /en/products/ore-processing/feeding-equipment/grizzly-feeder 1h 1y
[13:56:30.648] ├ └ /en/products/ore-processing/feeding-equipment/vibratory-feeder 1h 1y
[13:56:30.648] ├ ○ /en/products/ore-processing/flotation-equipment 18.5 kB 154 kB 1h 1y
[13:56:30.648] ├ ● /en/products/ore-processing/flotation-equipment/[productId] 27.1 kB 162 kB 1h 1y
[13:56:30.648] ├ ├ /en/products/ore-processing/flotation-equipment/coarse-flotation-cell 1h 1y
[13:56:30.649] ├ ├ /en/products/ore-processing/flotation-equipment/pneumatic-flotation-cell 1h 1y
[13:56:30.649] ├ ├ /en/products/ore-processing/flotation-equipment/self-aspirated-flotation-cell 1h 1y
[13:56:30.649] ├ └ /en/products/ore-processing/flotation-equipment/xfc-air-inflation-flotation-cell 1h 1y
[13:56:30.649] ├ ○ /en/products/ore-processing/gravity-separation 18.6 kB 154 kB 1h 1y
[13:56:30.649] ├ ● /en/products/ore-processing/gravity-separation/[productId] 27.2 kB 162 kB 1h 1y
[13:56:30.649] ├ ├ /en/products/ore-processing/gravity-separation/centrifugal-separator 1h 1y
[13:56:30.649] ├ ├ /en/products/ore-processing/gravity-separation/sawtooth-wave-jig 1h 1y
[13:56:30.649] ├ ├ /en/products/ore-processing/gravity-separation/shaking-table 1h 1y
[13:56:30.649] ├ └ [+3 more paths]
[13:56:30.650] ├ ○ /en/products/ore-processing/grinding-equipment 18.6 kB 154 kB 1h 1y
[13:56:30.650] ├ ● /en/products/ore-processing/grinding-equipment/[productId] 27.1 kB 162 kB 1h 1y
[13:56:30.656] ├ ├ /en/products/ore-processing/grinding-equipment/dry-ball-mill 1h 1y
[13:56:30.656] ├ ├ /en/products/ore-processing/grinding-equipment/dry-rod-mill 1h 1y
[13:56:30.656] ├ ├ /en/products/ore-processing/grinding-equipment/wet-energy-saving-grid-ball-mill 1h 1y
[13:56:30.656] ├ └ [+3 more paths]
[13:56:30.656] ├ ○ /en/products/ore-processing/magnetic-separator 18.6 kB 154 kB 1h 1y
[13:56:30.656] ├ ● /en/products/ore-processing/magnetic-separator/[productId] 27.1 kB 162 kB 1h 1y
[13:56:30.656] ├ ├ /en/products/ore-processing/magnetic-separator/double-roll-permanent-magnetic-zircon-separator 1h 1y
[13:56:30.656] ├ ├ /en/products/ore-processing/magnetic-separator/four-roll-high-voltage-electrostatic-separator 1h 1y
[13:56:30.656] ├ ├ /en/products/ore-processing/magnetic-separator/permanent-drum-magnetic-separator 1h 1y
[13:56:30.657] ├ └ [+3 more paths]
[13:56:30.657] ├ ○ /en/products/ore-processing/stationary-crushers 18.5 kB 154 kB 1h 1y
[13:56:30.657] ├ ● /en/products/ore-processing/stationary-crushers/[productId] 27.5 kB 163 kB 1h 1y
[13:56:30.657] ├ ├ /en/products/ore-processing/stationary-crushers/cone-crusher 1h 1y
[13:56:30.657] ├ ├ /en/products/ore-processing/stationary-crushers/double-roller-crusher 1h 1y
[13:56:30.657] ├ ├ /en/products/ore-processing/stationary-crushers/hammer-crusher 1h 1y
[13:56:30.657] ├ └ [+3 more paths]
[13:56:30.657] ├ ○ /en/products/ore-processing/vibrating-screens 18.5 kB 154 kB 1h 1y
[13:56:30.657] ├ ● /en/products/ore-processing/vibrating-screens/[productId] 27.2 kB 162 kB 1h 1y
[13:56:30.657] ├ ├ /en/products/ore-processing/vibrating-screens/banana-multislope-vibrating-screen 1h 1y
[13:56:30.657] ├ ├ /en/products/ore-processing/vibrating-screens/bar-vibrating-screen 1h 1y
[13:56:30.657] ├ ├ /en/products/ore-processing/vibrating-screens/dewatering-screen 1h 1y
[13:56:30.657] ├ └ [+3 more paths]
[13:56:30.658] ├ ○ /en/products/ore-processing/washing-equipment 18.5 kB 154 kB 1h 1y
[13:56:30.658] ├ ● /en/products/ore-processing/washing-equipment/[productId] 27.1 kB 162 kB 1h 1y
[13:56:30.658] ├ ├ /en/products/ore-processing/washing-equipment/spiral-washer 1h 1y
[13:56:30.658] ├ ├ /en/products/ore-processing/washing-equipment/twin-shaft-log-washer 1h 1y
[13:56:30.658] ├ └ /en/products/ore-processing/washing-equipment/wheel-bucket-sand-washer 1h 1y
[13:56:30.658] ├ ƒ /en/search 18.6 kB 154 kB
[13:56:30.658] ├ ○ /product-sitemap.xml 205 B 110 kB 1d 1y
[13:56:30.658] ├ ○ /robots.txt 205 B 110 kB 1h 1y
[13:56:30.658] ├ ○ /sitemap.xml 205 B 110 kB 1h 1y
[13:56:30.658] ├ ○ /zh 16.9 kB 152 kB
[13:56:30.659] ├ ○ /zh/about 22.4 kB 157 kB
[13:56:30.659] ├ ○ /zh/cases 20.4 kB 155 kB
[13:56:30.659] ├ ● /zh/cases/[caseId] 20.7 kB 156 kB 1h 1y
[13:56:30.659] ├ ├ /zh/cases/gabon-manganese 1h 1y
[13:56:30.660] ├ ├ /zh/cases/guangxi-lead-zinc 1h 1y
[13:56:30.660] ├ ├ /zh/cases/guilin-yongfu-polymetallic 1h 1y
[13:56:30.660] ├ └ [+6 more paths]
[13:56:30.660] ├ ○ /zh/news 19.3 kB 154 kB
[13:56:30.660] ├ ● /zh/news/[newsId] 19 kB 154 kB 1h 1y
[13:56:30.660] ├ ├ /zh/news/advanced-fluorite-ore-beneficiation-technologies-2025 1h 1y
[13:56:30.661] ├ ├ /zh/news/advanced-silver-recovery-flotation-methods-2025 1h 1y
[13:56:30.661] ├ ├ /zh/news/ball-mill-energy-saving-factors-2024 1h 1y
[13:56:30.661] ├ └ [+45 more paths]
[13:56:30.661] ├ ○ /zh/products 15 kB 150 kB 1h 1y
[13:56:30.661] ├ ○ /zh/products/mineral-processing-solutions 17.1 kB 152 kB 1h 1y
[13:56:30.661] ├ ● /zh/products/mineral-processing-solutions/[category]/[solutionId] 24.8 kB 160 kB 1h 1y
[13:56:30.661] ├ ├ /zh/products/mineral-processing-solutions/ferrous/chrome 1h 1y
[13:56:30.661] ├ ├ /zh/products/mineral-processing-solutions/ferrous/hematite 1h 1y
[13:56:30.661] ├ ├ /zh/products/mineral-processing-solutions/ferrous/magnetite 1h 1y
[13:56:30.661] ├ └ [+14 more paths]
[13:56:30.661] ├ ○ /zh/products/mining-epc 27.9 kB 171 kB 1h 1y
[13:56:30.661] ├ ○ /zh/products/ore-processing 24.8 kB 168 kB 1h 1y
[13:56:30.661] ├ ○ /zh/products/ore-processing/classification-equipment 18.4 kB 153 kB 1h 1y
[13:56:30.662] ├ ● /zh/products/ore-processing/classification-equipment/[productId] 27.1 kB 162 kB 1h 1y
[13:56:30.662] ├ ├ /zh/products/ore-processing/classification-equipment/cone-classifier 1h 1y
[13:56:30.662] ├ ├ /zh/products/ore-processing/classification-equipment/high-weir-spiral-classifier 1h 1y
[13:56:30.662] ├ ├ /zh/products/ore-processing/classification-equipment/hydrocyclone-separator 1h 1y
[13:56:30.662] ├ └ /zh/products/ore-processing/classification-equipment/submerged-spiral-classifier 1h 1y
[13:56:30.662] ├ ○ /zh/products/ore-processing/feeding-equipment 18.6 kB 154 kB 1h 1y
[13:56:30.662] ├ ● /zh/products/ore-processing/feeding-equipment/[productId] 27.1 kB 162 kB 1h 1y
[13:56:30.662] ├ ├ /zh/products/ore-processing/feeding-equipment/apron-feeder 1h 1y
[13:56:30.662] ├ ├ /zh/products/ore-processing/feeding-equipment/grizzly-feeder 1h 1y
[13:56:30.662] ├ └ /zh/products/ore-processing/feeding-equipment/vibratory-feeder 1h 1y
[13:56:30.662] ├ ○ /zh/products/ore-processing/flotation-equipment 18.5 kB 154 kB 1h 1y
[13:56:30.662] ├ ● /zh/products/ore-processing/flotation-equipment/[productId] 27.1 kB 162 kB 1h 1y
[13:56:30.663] ├ ├ /zh/products/ore-processing/flotation-equipment/coarse-flotation-cell 1h 1y
[13:56:30.663] ├ ├ /zh/products/ore-processing/flotation-equipment/pneumatic-flotation-cell 1h 1y
[13:56:30.663] ├ ├ /zh/products/ore-processing/flotation-equipment/self-aspirated-flotation-cell 1h 1y
[13:56:30.663] ├ └ /zh/products/ore-processing/flotation-equipment/xfc-air-inflation-flotation-cell 1h 1y
[13:56:30.663] ├ ○ /zh/products/ore-processing/gravity-separation 18.6 kB 154 kB 1h 1y
[13:56:30.663] ├ ● /zh/products/ore-processing/gravity-separation/[productId] 27.2 kB 162 kB 1h 1y
[13:56:30.663] ├ ├ /zh/products/ore-processing/gravity-separation/centrifugal-separator 1h 1y
[13:56:30.663] ├ ├ /zh/products/ore-processing/gravity-separation/sawtooth-wave-jig 1h 1y
[13:56:30.663] ├ ├ /zh/products/ore-processing/gravity-separation/shaking-table 1h 1y
[13:56:30.663] ├ └ [+3 more paths]
[13:56:30.663] ├ ○ /zh/products/ore-processing/grinding-equipment 18.5 kB 154 kB 1h 1y
[13:56:30.663] ├ ● /zh/products/ore-processing/grinding-equipment/[productId] 27.1 kB 162 kB 1h 1y
[13:56:30.664] ├ ├ /zh/products/ore-processing/grinding-equipment/dry-ball-mill 1h 1y
[13:56:30.664] ├ ├ /zh/products/ore-processing/grinding-equipment/dry-rod-mill 1h 1y
[13:56:30.664] ├ ├ /zh/products/ore-processing/grinding-equipment/wet-energy-saving-grid-ball-mill 1h 1y
[13:56:30.664] ├ └ [+3 more paths]
[13:56:30.664] ├ ○ /zh/products/ore-processing/magnetic-separator 18.6 kB 154 kB 1h 1y
[13:56:30.664] ├ ● /zh/products/ore-processing/magnetic-separator/[productId] 27.1 kB 162 kB 1h 1y
[13:56:30.664] ├ ├ /zh/products/ore-processing/magnetic-separator/double-roll-permanent-magnetic-zircon-separator 1h 1y
[13:56:30.664] ├ ├ /zh/products/ore-processing/magnetic-separator/four-roll-high-voltage-electrostatic-separator 1h 1y
[13:56:30.665] ├ ├ /zh/products/ore-processing/magnetic-separator/permanent-drum-magnetic-separator 1h 1y
[13:56:30.665] ├ └ [+3 more paths]
[13:56:30.665] ├ ○ /zh/products/ore-processing/stationary-crushers 18.5 kB 154 kB 1h 1y
[13:56:30.665] ├ ● /zh/products/ore-processing/stationary-crushers/[productId] 27.5 kB 163 kB 1h 1y
[13:56:30.665] ├ ├ /zh/products/ore-processing/stationary-crushers/cone-crusher 1h 1y
[13:56:30.665] ├ ├ /zh/products/ore-processing/stationary-crushers/double-roller-crusher 1h 1y
[13:56:30.665] ├ ├ /zh/products/ore-processing/stationary-crushers/hammer-crusher 1h 1y
[13:56:30.665] ├ └ [+3 more paths]
[13:56:30.665] ├ ○ /zh/products/ore-processing/vibrating-screens 18.5 kB 154 kB 1h 1y
[13:56:30.665] ├ ● /zh/products/ore-processing/vibrating-screens/[productId] 27.2 kB 162 kB 1h 1y
[13:56:30.666] ├ ├ /zh/products/ore-processing/vibrating-screens/banana-multislope-vibrating-screen 1h 1y
[13:56:30.666] ├ ├ /zh/products/ore-processing/vibrating-screens/bar-vibrating-screen 1h 1y
[13:56:30.666] ├ ├ /zh/products/ore-processing/vibrating-screens/dewatering-screen 1h 1y
[13:56:30.666] ├ └ [+3 more paths]
[13:56:30.666] ├ ○ /zh/products/ore-processing/washing-equipment 18.5 kB 154 kB 1h 1y
[13:56:30.666] ├ ● /zh/products/ore-processing/washing-equipment/[productId] 27.1 kB 162 kB 1h 1y
[13:56:30.666] ├ ├ /zh/products/ore-processing/washing-equipment/spiral-washer 1h 1y
[13:56:30.666] ├ ├ /zh/products/ore-processing/washing-equipment/twin-shaft-log-washer 1h 1y
[13:56:30.666] ├ └ /zh/products/ore-processing/washing-equipment/wheel-bucket-sand-washer 1h 1y
[13:56:30.666] └ ƒ /zh/search 18.6 kB 154 kB
[13:56:30.667] + First Load JS shared by all 110 kB
[13:56:30.667] ├ chunks/9248-e4736c11d555b36c.js 53.2 kB
[13:56:30.667] └ other shared chunks (total) 56.3 kB
[13:56:30.667]
[13:56:30.667] Route (pages) Size First Load JS
[13:56:30.667] ─ /_app 0 B 99.5 kB
[13:56:30.667] + First Load JS shared by all 99.5 kB
[13:56:30.667] ├ chunks/framework-ff350ec6-394386de2dc18f3b.js 53 kB
[13:56:30.667] └ other shared chunks (total) 46.5 kB
[13:56:30.667]
[13:56:30.668] ƒ Middleware 39.2 kB
[13:56:30.675]
[13:56:30.676] ○ (Static) prerendered as static content
[13:56:30.676] ● (SSG) prerendered as static HTML (uses generateStaticParams)
[13:56:30.676] ƒ (Dynamic) server-rendered on demand
[13:56:30.676]
[13:56:30.717]
[13:56:30.718] > zexin-mining@0.1.0 postbuild
[13:56:30.718] > next-sitemap && node scripts/generate-sitemaps.js && node scripts/generate-server-sitemap.js
[13:56:30.718]
[13:56:30.827] ✨ [next-sitemap] Loading next-sitemap config: file:///vercel/path0/next-sitemap.config.js
[13:56:30.839] ✅ [next-sitemap] Generation completed
[13:56:30.840] ┌───────────────┬────────┐
[13:56:30.840] │ (index) │ Values │
[13:56:30.841] ├───────────────┼────────┤
[13:56:30.841] │ indexSitemaps │ 1 │
[13:56:30.841] │ sitemaps │ 1 │
[13:56:30.841] └───────────────┴────────┘
[13:56:30.841] -----------------------------------------------------
[13:56:30.841] SITEMAP INDICES
[13:56:30.841] -----------------------------------------------------
[13:56:30.841]
[13:56:30.841] ○ https://www.zexinmining.com/sitemap.xml
[13:56:30.842]
[13:56:30.842]
[13:56:30.842] -----------------------------------------------------
[13:56:30.842] SITEMAPS
[13:56:30.842] -----------------------------------------------------
[13:56:30.842]
[13:56:30.842] ○ https://www.zexinmining.com/sitemap-0.xml
[13:56:30.842]
[13:56:30.842]
[13:56:30.879] 生成产品站点地图...
[13:56:30.909] 成功生成产品站点地图,包含 88 个URL
[13:56:30.910] 产品站点地图生成完成
[13:56:30.946] 生成服务器端站点地图...
[13:56:30.956] 成功生成服务器端站点地图,包含 114 个URL
[13:56:30.956] 服务器端站点地图生成完成
[13:56:31.428] Traced Next.js server files in: 81.404ms
[13:56:31.641] Created all serverless functions in: 213.71ms
[13:56:31.659] Error: Unable to find lambda for route: /en/about