Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/@apphosting/adapter-nextjs/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import { OutputBundleConfig } from "@apphosting/common";

// fs-extra is CJS, readJson can't be imported using shorthand
export const { move, exists, writeFile, readJson, readdir, readFileSync, existsSync, mkdir } =
export const { copy, move, exists, writeFile, readJson, readdir, readFileSync, existsSync, mkdir } =
fsExtra;

// Loads the user's next.config.js file.
Expand Down Expand Up @@ -154,7 +154,8 @@
// Keep apphosting.yaml files in the root directory still, as later steps expect them to be there
const isApphostingYaml = path === "apphosting_preprocessed" || path === "apphosting.yaml";
if (!isbundleYamlDir && !existsInOutputBundle && !isApphostingYaml) {
await move(join(appDir, path), join(outputBundleAppDir, path));
//await move(join(appDir, path), join(outputBundleAppDir, path));

Check failure on line 157 in packages/@apphosting/adapter-nextjs/src/utils.ts

View workflow job for this annotation

GitHub Actions / Lint

Expected space or tab after '//' in comment
await copy(join(appDir, path), join(outputBundleAppDir, path));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This commented-out line of code is no longer necessary and should be removed to improve code clarity.

Suggested change
//await move(join(appDir, path), join(outputBundleAppDir, path));
await copy(join(appDir, path), join(outputBundleAppDir, path));
await copy(join(appDir, path), join(outputBundleAppDir, path));

}
}
return;
Expand Down
Loading