From 8e9e741ebd52f1ac6f66df869716d558f4a1d57e Mon Sep 17 00:00:00 2001 From: Inder Singh <85822513+singh-inder@users.noreply.github.com> Date: Thu, 12 Feb 2026 02:44:42 +0530 Subject: [PATCH 1/3] fix: only upload functions declared in config.toml --- internal/functions/deploy/deploy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/functions/deploy/deploy.go b/internal/functions/deploy/deploy.go index bcee53c55..0a2b74a8a 100644 --- a/internal/functions/deploy/deploy.go +++ b/internal/functions/deploy/deploy.go @@ -110,7 +110,7 @@ func GetFunctionConfig(slugs []string, importMapPath string, noVerifyJWT *bool, for _, name := range slugs { function, ok := utils.Config.Functions[name] if !ok { - function.Enabled = true + function.Enabled = false function.VerifyJWT = true } // Precedence order: flag > config > fallback From fb88491f50dbafcffd6a659fe78590630ed50833 Mon Sep 17 00:00:00 2001 From: Inder Singh <85822513+singh-inder@users.noreply.github.com> Date: Thu, 12 Feb 2026 02:50:01 +0530 Subject: [PATCH 2/3] fix: only print deploy success msg for enabled functions --- internal/functions/deploy/deploy.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/internal/functions/deploy/deploy.go b/internal/functions/deploy/deploy.go index 0a2b74a8a..44bcd671b 100644 --- a/internal/functions/deploy/deploy.go +++ b/internal/functions/deploy/deploy.go @@ -67,7 +67,13 @@ func Run(ctx context.Context, slugs []string, useDocker bool, noVerifyJWT *bool, } else if err != nil { return err } - fmt.Printf("Deployed Functions on project %s: %s\n", utils.Aqua(flags.ProjectRef), strings.Join(slugs, ", ")) + deployed := make([]string, 0, len(slugs)) + for _, slug := range slugs { + if functionConfig[slug].Enabled { + deployed = append(deployed, slug) + } + } + fmt.Printf("Deployed Functions on project %s: %s\n", utils.Aqua(flags.ProjectRef), strings.Join(deployed, ", ")) url := fmt.Sprintf("%s/project/%v/functions", utils.GetSupabaseDashboardURL(), flags.ProjectRef) fmt.Println("You can inspect your deployment in the Dashboard: " + url) if !prune { @@ -92,7 +98,7 @@ func GetFunctionSlugs(fsys afero.Fs) (slugs []string, err error) { for slug := range utils.Config.Functions { slugs = append(slugs, slug) } - return slugs, nil + return utils.RemoveDuplicates(slugs), nil } func GetFunctionConfig(slugs []string, importMapPath string, noVerifyJWT *bool, fsys afero.Fs) (config.FunctionConfig, error) { From 2ab5198d21c409b9f2e0e724a132dd440555be60 Mon Sep 17 00:00:00 2001 From: Inder Singh <85822513+singh-inder@users.noreply.github.com> Date: Thu, 12 Feb 2026 13:44:45 +0530 Subject: [PATCH 3/3] handle duplicate slugs args --- internal/functions/deploy/deploy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/functions/deploy/deploy.go b/internal/functions/deploy/deploy.go index 44bcd671b..408ccaa0b 100644 --- a/internal/functions/deploy/deploy.go +++ b/internal/functions/deploy/deploy.go @@ -22,6 +22,7 @@ func Run(ctx context.Context, slugs []string, useDocker bool, noVerifyJWT *bool, if err := flags.LoadConfig(fsys); err != nil { return err } else if len(slugs) > 0 { + slugs = utils.RemoveDuplicates(slugs) for _, s := range slugs { if err := utils.ValidateFunctionSlug(s); err != nil { return err