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'
|
|
|
|
]
|
|
|
|
})
|
2021-04-08 14:53:54 +00:00
|
|
|
|
|
|
|
// eslint-disable-next-line
|
|
|
|
export const netlify_builder: NitroPreset = extendPreset(netlify, {
|
|
|
|
entry: '{{ _internal.runtimeDir }}/entries/netlify_builder'
|
|
|
|
})
|