Creates a lambda that supports a Function URL with streaming responses.
http-content-encoding
http-security-headers
ssm
/secrets-manger
x-sveltekit-page
headersSet-Cookies
Origin
header with ORIGIN
envNote: Bring your own deployment.
npm i -D sveltekit-adapter-middy
import adapter from 'sveltekit-adapter-middy'
export default {
kit: {
adapter: adapter({
// options
})
}
}
handlerPath
(string): Relative path to handler override file. Overriding allows you to add in Content-Encoding, Security Headers, and pass in secrets more securely. Defaults to build-in minimalist handler.out
(string): Relative path to build dir. Defaults to build
esbuildOptions
(object): esbuild
option overrides. See code for defaults.Licensed under MIT License. Copyright (c) 2017-2024 Luciano Mammino, will Farrell, and the Middy team.