Skip to content

Commit

Permalink
fix: resolve output dirs relative to rootDir
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Aug 29, 2023
1 parent 19916e0 commit 625c621
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,18 @@ export async function loadOptions(
}
options.output.dir = resolvePath(
options.output.dir || NitroDefaults.output.dir,
options
options,
options.rootDir
);
options.output.publicDir = resolvePath(
options.output.publicDir || NitroDefaults.output.publicDir,
options
options,
options.rootDir
);
options.output.serverDir = resolvePath(
options.output.serverDir || NitroDefaults.output.serverDir,
options
options,
options.rootDir
);

options.nodeModulesDirs.push(resolve(options.workspaceDir, "node_modules"));
Expand Down

0 comments on commit 625c621

Please sign in to comment.