mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 09:25:54 +00:00
f(nitro): enable externals for azure
and firebase
presets (#1050)
This commit is contained in:
parent
93f7d776c4
commit
9592967eee
@ -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'
|
||||
},
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user