I see long deployment times on the cafe
I see long deployment times on the cafe wifi
Is good internet a requirement?
10 Replies
22s is disappointing.
Deployment should simply involve sending code over the wire. So if you don't have that much code, it should be fine.
How much code? (
du -sh convex/
). Also how slow internet (google internet speed test?).Also what does your actions usage look like? I’ve seen it be super snappy when there are no actions
I have few actions. On mobile at the moment, I think we have maybe like 1000 lines of convex code max
Google speed was 40 mbps
Try
npx convex deploy --debug --debugBundlePath my-bundle
and check the size of that thing
It's not just Convex code, it's also libraries you're using
@nipunn
argh it's
--debug-bundle-path
sorry
npx convex deploy --debug --debug-bundle-path my-bundle
ok.
FWIW on the home internet I get
seems pretty small
Also
Is just 2 seconds. VS 8 seconds that
npx convex dev
takes.Another theory is that some of the time could be going to TypeScript compilation of your convex functions (if you're using TypeScript)
@vors can you
ls -lh my-bundle
to see how big the bundle ends up being?
(sorry I left out that step)@vors 7.1M
@sshader we do use a lot of typescript.