Skip to content

Commit

Permalink
fix: support SERVER_PRESET to detect env
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Jul 26, 2024
1 parent 33598c8 commit 295c98f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/kit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,6 @@ export function resolveNitroPreset(nitroConfig?: NitroConfig): string {
if (nitroConfig && nitroConfig?.preset)
preset = nitroConfig.preset
if (!preset)
preset = env.NITRO_PRESET || detectTarget() || 'node-server'
preset = env.NITRO_PRESET || env.SERVER_PRESET || detectTarget() || 'node-server'
return preset.replace('_', '-') // sometimes they are different
}

0 comments on commit 295c98f

Please sign in to comment.