hey guys, think I’m missing something on the confi...
# help
m
hey guys, think I’m missing something on the configuration end for deployment performance. I am deploying a UI Next.js site that redeploys everything no matter on every deployment. My deployments are always around 10 minutes right now which is high for what I have. Probably just missing something simple
m
Does
.build
folder exist in your folder?
m
yes I have a .build in the root. This is monorepo so the next site is in the /frontend directory
f
@manitej thanks for chiming in.
@Matthew Smithburger so NextJS generates a unique Build ID each time you try to build. And the Build ID is injected to various part of the built code when u run
next build
.
You can configure this Build ID on the Next.js side -https://nextjs.org/docs/api-reference/next.config.js/configuring-the-build-id
If the ID remains the same, the app shouldn’t get re-deployed every time.
m
@Frank thank you sir, will give this a go