Skip to content

Commit

Permalink
fix monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
conico974 committed Mar 12, 2024
1 parent 3a489ad commit 356a573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/open-next/src/build/createServerBundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ async function generateBundle(

// Create output folder
const outputPath = path.join(outputDir, "server-functions", name);
fs.mkdirSync(outputPath, { recursive: true });

// Resolve path to the Next.js app if inside the monorepo
// note: if user's app is inside a monorepo, standalone mode places
Expand All @@ -131,6 +130,7 @@ async function generateBundle(
// We need to output the handler file inside the package path.
const isMonorepo = monorepoRoot !== appPath;
const packagePath = path.relative(monorepoRoot, appBuildOutputPath);
fs.mkdirSync(path.join(outputPath, packagePath), { recursive: true });

fs.copyFileSync(
path.join(outputDir, ".build", "cache.cjs"),
Expand Down

0 comments on commit 356a573

Please sign in to comment.