mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
feat: basic support for netlify_builder target (#18)
Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
parent
352bb3dad7
commit
b536ab4ba7
@ -32,6 +32,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@cloudflare/kv-asset-handler": "^0.1.1",
|
||||
"@netlify/functions": "^0.4.1",
|
||||
"@nuxt/devalue": "^1.2.5",
|
||||
"@nuxt/kit": "^0.2.0",
|
||||
"@nuxt/un": "^0.1.1",
|
||||
|
@ -11,3 +11,8 @@ export const netlify: NitroPreset = extendPreset(lambda, {
|
||||
'_redirects'
|
||||
]
|
||||
})
|
||||
|
||||
// eslint-disable-next-line
|
||||
export const netlify_builder: NitroPreset = extendPreset(netlify, {
|
||||
entry: '{{ _internal.runtimeDir }}/entries/netlify_builder'
|
||||
})
|
||||
|
6
packages/nitro/src/runtime/entries/netlify_builder.ts
Normal file
6
packages/nitro/src/runtime/entries/netlify_builder.ts
Normal file
@ -0,0 +1,6 @@
|
||||
// @ts-ignore
|
||||
import { builderFunction } from '@netlify/functions'
|
||||
// @ts-ignore
|
||||
import { handler as _handler } from '~runtime/entries/lambda'
|
||||
|
||||
export const handler = builderFunction(_handler)
|
17
yarn.lock
17
yarn.lock
@ -1476,6 +1476,15 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@netlify/functions@npm:^0.4.1":
|
||||
version: 0.4.1
|
||||
resolution: "@netlify/functions@npm:0.4.1"
|
||||
dependencies:
|
||||
is-promise: ^4.0.0
|
||||
checksum: 65616779e7f9e085b2309852b2978152b581b03cbce09658ddd0441755ca699eec66f10e250b1c24ecb572ba2e6d8eebee94deee819b027b780d2f9c5da99dae
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@nodelib/fs.scandir@npm:2.1.4":
|
||||
version: 2.1.4
|
||||
resolution: "@nodelib/fs.scandir@npm:2.1.4"
|
||||
@ -1639,6 +1648,7 @@ __metadata:
|
||||
resolution: "@nuxt/nitro@workspace:packages/nitro"
|
||||
dependencies:
|
||||
"@cloudflare/kv-asset-handler": ^0.1.1
|
||||
"@netlify/functions": ^0.4.1
|
||||
"@nuxt/devalue": ^1.2.5
|
||||
"@nuxt/kit": ^0.2.0
|
||||
"@nuxt/un": ^0.1.1
|
||||
@ -7924,6 +7934,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"is-promise@npm:^4.0.0":
|
||||
version: 4.0.0
|
||||
resolution: "is-promise@npm:4.0.0"
|
||||
checksum: 7085bdc4eaff389c5730a1d54f014880e90ca1e4b7f0a49de9f3c5f5d2fb9e0c3a878ac226d3aa9190bfe4a78400e66d911427ef4812455756293cdb02fb05cf
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"is-reference@npm:^1.2.1":
|
||||
version: 1.2.1
|
||||
resolution: "is-reference@npm:1.2.1"
|
||||
|
Loading…
Reference in New Issue
Block a user