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 e7561fa commit f6ed77b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/nodejs/nextjs/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func constructNextFunction(zeaburOutputDir, firstFuncPage, tmpDir string) error
return fmt.Errorf("copy .next: %w", err)
}

err = cp.Copy("package.json", path.Join(p, "package.json"))
err = cp.Copy(path.Join(tmpDir, "package.json"), path.Join(p, "package.json"))
if err != nil {
return fmt.Errorf("copy package.json: %w", err)
}
Expand Down

0 comments on commit f6ed77b

Please sign in to comment.