vercel deploy next.js error All In One
https://vercel.com/web-full-stack/nextjs-ssr/deployments
bug
[23:57:30.114] Cloning github.com/web-full-stack/nextjs-ssr (Branch: main, Commit: 4124ea8)
[23:57:30.830] Cloning completed: 715.86ms
[23:57:32.482] Restored build cache
[23:57:32.519] Running "vercel build"
[23:57:33.018] Vercel CLI 28.6.0
[23:57:33.347] Installing dependencies...
[23:57:34.992]
[23:57:34.992] changed 1 package in 1s
[23:57:35.004] Detected Next.js version: 13.0.3
[23:57:35.007] Detected `package-lock.json` generated by npm 7+...
[23:57:35.007] Running "npm run build"
[23:57:35.297]
[23:57:35.297] > [email protected] build
[23:57:35.297] > next build
[23:57:35.297]
[23:57:35.813] info - Linting and checking validity of types...
[23:57:37.552] info - Creating an optimized production build...
[23:57:40.287] info - Compiled successfully
[23:57:40.288] info - Collecting page data...
[23:57:40.574] ✅ __dirname = /vercel/posts
[23:57:40.575] ❌ process.cwd() = /vercel/path0
[23:57:40.575] ❌ postsDirectory = /vercel/path0/posts
[23:57:40.588] ✅ __dirname = /vercel/posts
[23:57:40.588] ❌ process.cwd() = /vercel/path0
[23:57:40.589] ❌ postsDirectory = /vercel/path0/posts
[23:57:40.591]
标签:path0,01,23,57,deploy,next,2022,error,vercel
From: https://www.cnblogs.com/xgqfrms/p/16943213.html