0.0.2 • Published 6 months ago
@jdevdevdev/aws-lambda-edge-preset v0.0.2
AWS Lambda@Edge Preset
Experimental Nitro middleware preset for lambda@egde
Why publish this? Lambda@edge support is still pending this moves this file out of my repos until official support comes.
Installation
$ npm i --save-dev @jdevdevdev/aws-lambda-edge-preset
$ yarn add -D @jdevdevdev/aws-lambda-edge-preset
$ pnpm add -D @jdevdevdev/aws-lambda-edge-preset
Changing the preset
Nuxt
Update build command to NITRO_PRESET=@jdevdevdev/aws-lambda-edge-preset nuxt build
or change in code at:
nuxt.config.ts
export default defineNuxtConfig({ nitro: { preset: "@jdevdevdev/aws-lambda-edge-preset" }, })
Nitro
nitro.config.ts
export default defineNitroConfig({ preset: '@jdevdevdev/aws-lambda-edge-preset' })