diff --git a/internal/nodejs/plan.go b/internal/nodejs/plan.go index eec13172..098b34f1 100644 --- a/internal/nodejs/plan.go +++ b/internal/nodejs/plan.go @@ -627,6 +627,11 @@ func getServerless(ctx *nodePlanContext) bool { return false } + zsEnv := os.Getenv("ZBPACK_SERVERLESS") + if zsEnv == "true" || zsEnv == "1" { + return true + } + sl := &ctx.Serverless if serverless, err := sl.Take(); err == nil { diff --git a/pkg/zeaburpack/main.go b/pkg/zeaburpack/main.go index 98d09b2a..9281ce4e 100644 --- a/pkg/zeaburpack/main.go +++ b/pkg/zeaburpack/main.go @@ -208,7 +208,7 @@ func Build(opt *BuildOptions) error { return err } - dotZeaburDirInOutput := path.Join(os.TempDir(), "zbpack/buildkit", "src/.zeabur") + dotZeaburDirInOutput := path.Join(os.TempDir(), "zbpack/buildkit", ".zeabur") stat, err := os.Stat(dotZeaburDirInOutput) if err == nil && stat.IsDir() {