f(nitro): enable externals for azure and firebase presets (#1050)

This commit is contained in:
Daniel Roe 2021-10-18 09:04:38 +01:00 committed by GitHub
parent 93f7d776c4
commit 9592967eee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import { NitroPreset, NitroContext } from '../context'
export const azure: NitroPreset = { export const azure: NitroPreset = {
entry: '{{ _internal.runtimeDir }}/entries/azure', entry: '{{ _internal.runtimeDir }}/entries/azure',
externals: true,
output: { output: {
serverDir: '{{ output.dir }}/server/functions' serverDir: '{{ output.dir }}/server/functions'
}, },

View File

@ -9,6 +9,7 @@ import { NitroPreset, NitroContext } from '../context'
export const azure_functions: NitroPreset = { export const azure_functions: NitroPreset = {
serveStatic: true, serveStatic: true,
entry: '{{ _internal.runtimeDir }}/entries/azure_functions', entry: '{{ _internal.runtimeDir }}/entries/azure_functions',
externals: true,
hooks: { hooks: {
async 'nitro:compiled' (ctx: NitroContext) { async 'nitro:compiled' (ctx: NitroContext) {
await writeRoutes(ctx) await writeRoutes(ctx)

View File

@ -9,6 +9,7 @@ import { NitroPreset, NitroContext } from '../context'
export const firebase: NitroPreset = { export const firebase: NitroPreset = {
entry: '{{ _internal.runtimeDir }}/entries/firebase', entry: '{{ _internal.runtimeDir }}/entries/firebase',
externals: true,
hooks: { hooks: {
async 'nitro:compiled' (ctx: NitroContext) { async 'nitro:compiled' (ctx: NitroContext) {
await writeRoutes(ctx) await writeRoutes(ctx)