Skip to content

Commit 81c2aaf

Browse files
committed
feat: add surgio type
1 parent 1bcab61 commit 81c2aaf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

handler/deploy/detect.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ func (c *DeployContext) DetectProjectType() (projectType string) {
7979
}
8080
maps.Copy(packageConfig.Dependencies, packageConfig.DevDependencies)
8181
for k := range packageConfig.Dependencies {
82+
if strings.Contains(k, "@surgio/gateway") {
83+
c.Type = "surgio"
84+
return "surgio"
85+
}
86+
8287
if strings.Contains(k, "express") {
8388
c.Type = "express"
8489
return "express"

0 commit comments

Comments
 (0)