Smaller/faster Next.js deploys with standalone output

Hey, I followed the guide to deploy a Next.js app. It worked flawlessly.

However, when I read up on the Next.js docs I learned about {output: ‘standalone’}, which is enabled in their with-docker example.

Using standalone output my Docker image ended up being ~400Mb smaller and my deploys are 1 min faster.

Maybe fly launch could be updated?



I just tried this and shrunk our container from 1.15GB to 338MB. Didn’t see any improvement in deploy speed, but this was a great change. Thanks for pointing it out.