From 9592967eee543f1b212f44deff7372f9be2588a2 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 18 Oct 2021 09:04:38 +0100 Subject: [PATCH] f(nitro): enable externals for `azure` and `firebase` presets (#1050) --- packages/nitro/src/presets/azure.ts | 1 + packages/nitro/src/presets/azure_functions.ts | 1 + packages/nitro/src/presets/firebase.ts | 1 + 3 files changed, 3 insertions(+) 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)