Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Mar 21, 2023
1 parent 4e915c5 commit 46515c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ export async function loadOptions(
configOverrides: NitroConfig = {}
): Promise<NitroOptions> {
// Preset
let presetOverride = configOverrides.preset as string || process.env.NITRO_PRESET;
let presetOverride =
(configOverrides.preset as string) || process.env.NITRO_PRESET;
const defaultPreset = detectTarget() || "node-server";
if (configOverrides.dev) {
presetOverride = "nitro-dev";
Expand Down Expand Up @@ -146,7 +147,7 @@ export async function loadOptions(

options.preset =
presetOverride ||
layers.find((l) => l.config.preset)?.config.preset as string ||
(layers.find((l) => l.config.preset)?.config.preset as string) ||
defaultPreset;

options.rootDir = resolve(options.rootDir || ".");
Expand Down

0 comments on commit 46515c9

Please sign in to comment.