Skip to content
Discussion options

You must be logged in to vote

@Tsingis short answer: there's no env var or config flag to disable auto-updates in v4 without frameworkVersion. the v3 SLS_DISABLE_AUTO_UPDATE env var was removed.

the reason your npm lockfile doesn't help: in v4, the npm serverless package is just a thin bootstrapper that downloads a Go binary to ~/.serverless/binaries/. that Go binary fetches versions.json from install.serverless.com every 24 hours and downloads the latest framework release to ~/.serverless/releases/<version>/. your package.json version only controls the bootstrapper, not the actual framework. this is tracked in #12886.

for CI, the cleanest workaround without touching serverless.yml is to keep the metadata timestamp fr…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Tsingis
Comment options

You must be logged in to vote
1 reply
@sunnypatell
Comment options

Comment options

You must be logged in to vote
1 reply
@sunnypatell
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants