diff --git a/packages/nitro/src/presets/azure.ts b/packages/nitro/src/presets/azure.ts index 7692f1032d..150b7e938e 100644 --- a/packages/nitro/src/presets/azure.ts +++ b/packages/nitro/src/presets/azure.ts @@ -7,6 +7,7 @@ import { NitroPreset, NitroContext } from '../context' export const azure: NitroPreset = { entry: '{{ _internal.runtimeDir }}/entries/azure', + externals: true, output: { serverDir: '{{ output.dir }}/server/functions' }, diff --git a/packages/nitro/src/presets/azure_functions.ts b/packages/nitro/src/presets/azure_functions.ts index a1c8df208e..104b903c48 100644 --- a/packages/nitro/src/presets/azure_functions.ts +++ b/packages/nitro/src/presets/azure_functions.ts @@ -9,6 +9,7 @@ import { NitroPreset, NitroContext } from '../context' export const azure_functions: NitroPreset = { serveStatic: true, entry: '{{ _internal.runtimeDir }}/entries/azure_functions', + externals: true, hooks: { async 'nitro:compiled' (ctx: NitroContext) { await writeRoutes(ctx) diff --git a/packages/nitro/src/presets/firebase.ts b/packages/nitro/src/presets/firebase.ts index a7bfbdaadd..9cabb49a94 100644 --- a/packages/nitro/src/presets/firebase.ts +++ b/packages/nitro/src/presets/firebase.ts @@ -9,6 +9,7 @@ import { NitroPreset, NitroContext } from '../context' export const firebase: NitroPreset = { entry: '{{ _internal.runtimeDir }}/entries/firebase', + externals: true, hooks: { async 'nitro:compiled' (ctx: NitroContext) { await writeRoutes(ctx)