next-on-pages: [πŸ› Bug]: Unable to deploy `commerce` next.js app

next-on-pages environment related information

System:
        Platform: darwin
        Arch: arm64
        Version: Darwin Kernel Version 22.4.0: Mon Mar  6 20:59:28 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6000
        CPU: (10) arm64 Apple M1 Pro
        Memory: 32 GB
        Shell: /bin/zsh
Binaries:
        Node: 16.18.1
        Yarn: 1.22.19
        npm: 8.19.2
        pnpm: N/A
Package Manager Used: pnpm
Relevant Packages:
        @cloudflare/next-on-pages: 0.10.1
        vercel: N/A
        next: N/A

Description

Unable to deploy https://github.com/vercel/commerce next.js example to Cloudflare Pages.

Reproduction

  1. Deploy the example on my Vercel account
  2. Connect to git – https://github.com/multivac61/commerce
  3. Follow instructions on https://github.com/cloudflare/next-on-pages and setup Pages environment correctly
  4. Get error when building. Initially related to pnpm but then some obscure error…

Pages Deployment Method

Pages CI (GitHub/GitLab integration)

Pages Deployment ID

https://github.com/multivac61/commerce/commit/1ecc6c0356e32662e7310a79be9cd8094e07203e

Additional Information

No response

Would you like to help?

  • Would you like to help fixing this bug?

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

Anyways I’m closing this issue as I believe it’s not relevant to next-on-pages and that there isn’t much we can do about it, I hope you don’t mind @multivac61 πŸ™‡

The error thrown is this thing:

{"status":500,"message":"fetch failed","query":"
β–²    query getCollections {
β–²      collections(first: 100, sortKey: TITLE) {
β–²        edges {
β–²          node {
β–²            ...collection
β–²          }
β–²        }
β–²      }
β–²    }
β–²    
β–²    fragment collection on Collection {
β–²      handle
β–²      title
β–²      description
β–²      seo {
β–²        ...seo
β–²      }
β–²      updatedAt
β–²    }
β–²    
β–²    fragment seo on SEO {
β–²      description
β–²      title
β–²    }
β–²  
β–²  
β–²  "}