Skip to content

Commit

Permalink
fix(pkg): Ignore not found error when copying public dir
Browse files Browse the repository at this point in the history
  • Loading branch information
yuaanlin committed Nov 21, 2023
1 parent 593554c commit 93c09fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/nodejs/nextjs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func TransformServerless(image, workdir string) error {
}

err = cp.Copy(path.Join(workdir, "public"), path.Join(zeaburOutputDir, "static"))
if err != nil {
if err != nil && !strings.Contains(err.Error(), "no such file or directory") {
return fmt.Errorf("copy public dir: %w", err)
}

Expand Down

0 comments on commit 93c09fd

Please sign in to comment.