Skip to content

Commit

Permalink
fix(lib): Fix package.json not found error for Next.js serverless
Browse files Browse the repository at this point in the history
  • Loading branch information
yuaanlin committed Sep 19, 2023
1 parent f6ed77b commit 681721c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/nodejs/nextjs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ func TransformServerless(image, workdir string) error {
return err
}

err = utils.CopyFromImage(image, "/src/package.json", tmpDir)
if err != nil {
return err
}

_ = os.RemoveAll(path.Join(workdir, ".zeabur"))

var serverlessFunctionPages []string
Expand Down

0 comments on commit 681721c

Please sign in to comment.