-
-
Notifications
You must be signed in to change notification settings - Fork 461
Build time for CircleCI #13
Comments
Not sure I can do much about this tbh. I'm seeing: 107 seconds - next build Macbook Pro Maybe some of the suggestions here serverless/serverless#4263 can help. |
One way to fix that is to decompose "sls package" into different steps (mainly, next build and createHandlers). |
@romainquellec I believe https://github.com/danielcondemarin/serverless-next.js/tree/master/packages/serverless-nextjs-component can help here. Deployments should be considerably faster. |
Thanks ! I will try the new version soon. Thanks again for all this. This is awesome. |
Thanks @romainquellec ! Regarding your concern, I've given a lot of thought to the architecture of the component. It is more flexible than it might seem. Right now is one lambda (which is replicated across the globe),. However I am currently working on splitting off the API pages onto a separate Lambda. That way you get:
That should cover most apps out there. However, if it needs be, you could still scale horizontally the architecture by adding more cache behaviours (like |
I fully trust you and your work !
Waiting for this. Thanks ! |
Closing this. The new version of the project (component) doesn't use |
I'm using Circle CI for deploying my site.
Right now, "serverless package" is very long compared to "next build".
With config.optimization.minimize = false on next.config.js (to minimize next part)
Next build : Done in 37.92s.
serverless package : Done in 761.15s.
Its maybe related to #11
The text was updated successfully, but these errors were encountered: