Skip to content

Commit aca0e8e

Browse files
committed
refactor: use source dir to get app path in config
1 parent 88c0335 commit aca0e8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cloudflare/src/cli/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ export type Config = {
4949
* @returns The configuration, see `Config`
5050
*/
5151
export function getConfig(projectOpts: ProjectOptions): Config {
52+
const sourceDirDotNext = join(projectOpts.sourceDir, ".next");
5253
const dotNext = join(projectOpts.outputDir, ".next");
53-
const appPath = getNextjsApplicationPath(dotNext).replace(/\/$/, "");
54+
const appPath = getNextjsApplicationPath(sourceDirDotNext).replace(/\/$/, "");
5455
const standaloneRoot = join(dotNext, "standalone");
5556
const standaloneApp = join(standaloneRoot, appPath);
5657
const standaloneAppDotNext = join(standaloneApp, ".next");

0 commit comments

Comments
 (0)