Skip to content

Commit c3fb976

Browse files
committed
Cove resources instead of move.
1 parent cdd8e63 commit c3fb976

File tree

1 file changed

+3
-2
lines changed
  • packages/@apphosting/adapter-nextjs/src

1 file changed

+3
-2
lines changed

packages/@apphosting/adapter-nextjs/src/utils.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { NextConfigComplete } from "next/dist/server/config-shared.js";
1515
import { OutputBundleConfig } from "@apphosting/common";
1616

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

2121
// Loads the user's next.config.js file.
@@ -154,7 +154,8 @@ async function moveResources(
154154
// Keep apphosting.yaml files in the root directory still, as later steps expect them to be there
155155
const isApphostingYaml = path === "apphosting_preprocessed" || path === "apphosting.yaml";
156156
if (!isbundleYamlDir && !existsInOutputBundle && !isApphostingYaml) {
157-
await move(join(appDir, path), join(outputBundleAppDir, path));
157+
//await move(join(appDir, path), join(outputBundleAppDir, path));
158+
await copy(join(appDir, path), join(outputBundleAppDir, path));
158159
}
159160
}
160161
return;

0 commit comments

Comments
 (0)