Nuxt/packages/nitro/src/presets/netlify.ts

19 lines
452 B
TypeScript
Raw Normal View History

2020-11-20 00:16:31 +00:00
import { extendPreset } from '../utils'
2021-01-22 19:55:59 +00:00
import { NitroPreset } from '../context'
2020-11-20 00:16:31 +00:00
import { lambda } from './lambda'
2021-01-22 19:55:59 +00:00
export const netlify: NitroPreset = extendPreset(lambda, {
2020-11-20 01:49:43 +00:00
output: {
publicDir: '{{ _nuxt.rootDir }}/dist'
},
2020-11-20 00:16:31 +00:00
ignore: [
'netlify.toml',
'_redirects'
]
})
// eslint-disable-next-line
export const netlify_builder: NitroPreset = extendPreset(netlify, {
entry: '{{ _internal.runtimeDir }}/entries/netlify_builder'
})