Skip to content

Commit 295c98f

Browse files
committedJul 26, 2024·
fix: support SERVER_PRESET to detect env
1 parent 33598c8 commit 295c98f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/util/kit.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,6 @@ export function resolveNitroPreset(nitroConfig?: NitroConfig): string {
110110
if (nitroConfig && nitroConfig?.preset)
111111
preset = nitroConfig.preset
112112
if (!preset)
113-
preset = env.NITRO_PRESET || detectTarget() || 'node-server'
113+
preset = env.NITRO_PRESET || env.SERVER_PRESET || detectTarget() || 'node-server'
114114
return preset.replace('_', '-') // sometimes they are different
115115
}

0 commit comments

Comments
 (0)
Please sign in to comment.