Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vercel build logs multiple error when building serverless #722

Open
paullacour opened this issue Oct 14, 2022 · 2 comments
Open

Vercel build logs multiple error when building serverless #722

paullacour opened this issue Oct 14, 2022 · 2 comments

Comments

@paullacour
Copy link

I'm having troubles on one of my Vercel deployments using @nuxt/vercel-builder.
Builds went from ~2min to 30+min and when I take a look at my build logs, I have thousands of lines of NowBuildError logged. (see above example:

Capture d’écran 2022-10-14 à 14 02 15

Capture d’écran 2022-10-14 à 14 02 25

I've successfuly isolated the issue, which comes when I'm building my 2 serverless functions using @vercel/node. If I comment this out in my builds in vercel.json, it works fine.

vercel.json

{
  "version": 2,
  "builds": [
    {
      "src": "nuxt.config.js",
      "use": "@nuxtjs/vercel-builder"
    },
    {
      "src": "api/*.js",
      "use": "@vercel/node"
    }
  ],
  "routes": [
    { "src": "/api/validate-vat", "dest": "api/validate-vat.js" },
    { "src": "/api/mailchimp-signup", "dest": "api/mailchimp-signup.js" },
    { "src": "/(.*)", "dest": "$1" }
  ]
}

"@nuxtjs/vercel-builder": "^0.22.1"

I've re-created a minimal example here: https://github.com/paullacour/nuxtvercel

@danielroe
Copy link
Member

Does this occur when not using @nuxtjs/vercel-builder?

@paullacour
Copy link
Author

@danielroe When I yarn build locally it works just fine. I haven't tried deploying it to Vercel without @nuxtjs/vercel-builder because I need SSR rendering on this specific project...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants