Creating all serverless functions taking 5+ mins #30137
-
Hi everyone I am facing this issue on Vercel that builds are taking 10+mins more than half of the time is for creating serverless functions.
As I am not using getServerSideProps for any page I don't think serverless function needs to be created. That is confirmed from the How can find the cause of this? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 14 replies
-
Hi, can you test the latest version of Next.js module.exports = {
experimental: {
outputFileTracing: true
}
} |
Beta Was this translation helpful? Give feedback.
-
hey @akshitkrnagpal @ijjk Basically, for us, it happens because of Our production app is a bit complex, and usually, it takes around 5-6 minutes to deploy on vercel. But after an upgrade to next 11, it takes as twice as long. |
Beta Was this translation helpful? Give feedback.
-
@akshitkrnagpal yes, just now, I've got this error: |
Beta Was this translation helpful? Give feedback.
-
OK, it works now, build runs in a reasonable time (~5 minutes instead of ~16-17). import matter from 'gray-matter'
import path from 'path'
import read from 'read-directory'
const raw = read.sync(path.join(process.cwd(), 'data/postItems'), { transform: matter }) and it works when I run Other more important thing that it's not working are pages with You can check that on this preview link https://emmalife-p7vs2uf5e-creadi.vercel.app/feedback Hope this helps. I'm looking forward to releasing this feature. |
Beta Was this translation helpful? Give feedback.
Hi, can you test the latest version of Next.js
v11.1.3-canary.91
and add the below config to yournext.config.js
? We're working on improving the performance/reliability of this step in the latest version.