mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +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 = {
|
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'
|
||||||
},
|
},
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user