Skip to content

"no such file or directory" error when deploying with Vercel #57

Description

@andordavoti

Each time I deploy with Vercel I'm getting this error:

Error: ENOENT: no such file or directory, lstat '/vercel/path0/APP_PATH/.contentlayer/generated/Doc/_index.json'

It always works with a redeploy if I don't use the existing build cache.

I'm getting this error after upgrading to Next.js 15 and migrating from contentlayer to contentlayer2.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions