nuxt / vercel-builder

Vercel Builder for Nuxt
MIT License
645 stars 75 forks source link

Build doesn't works from today. Are there some conflict/updates in Vercel systems? #725

Closed DidoMarchet closed 1 year ago

DidoMarchet commented 1 year ago

Hi, sorry if I ask but from today our build in Vercel doesn't work. I'm struggled because I don't know what happened because this project was online without any update since months.

Screenshot-2022-10-20-at-16 01 06

Did you have notice of that?

I see this alert in my dashboard:

Screenshot 2022-10-20 at 12 48 47

and this is my configuration (never changed):

{
  "version": 2,
  "builds": [
    {
      "src": "app/nuxt.config.js",
      "use": "@nuxtjs/vercel-builder",
      "config": {
        "serverFiles": ["package.json", "library/node_modules/**", "static/**/*", "configuration/**", "server-middleware/**", "translation/**", ".nuxt/dist/sitemap-routes.json"]
      }
    }
  ],
  "routes": [
    {
      "src": "/sw.js",
      "continue": true,
      "headers": {
        "Cache-Control": "public, max-age=0, must-revalidate",
        "Service-Worker-Allowed": "/"
      }
    },
    {
      "src": "/.nuxt/.+",
      "headers": {
        "Cache-Control": "max-age=31557600"
      }
    },
    {
      "src": "^/(.*)",
      "dest": "/"
    }
  ]
}

and this is the error I get from the build:

Screenshot 2022-10-20 at 16 01 27

Thanks and kind regards,

Davide

danielroe commented 1 year ago

Try adding the version constraint "use": "@nuxtjs/vercel-builder@0.22.1" in your config.

DidoMarchet commented 1 year ago

Try adding the version constraint "use": "@nuxtjs/vercel-builder@0.22.1" in your config.

@danielroe great! Thanks! And really thanks for the fast reply.

If you have time there's an explain?

Thanks again and kind regards,

Davide