diff --git a/internal/nodejs/nextjs/function.go b/internal/nodejs/nextjs/function.go index 052aad33..3dd104f5 100644 --- a/internal/nodejs/nextjs/function.go +++ b/internal/nodejs/nextjs/function.go @@ -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) }