SST deploy to AWS Lambda@Edge (Cloudfront)
Unanswered
Billy posted this in #help-forum
BillyOP
I have inherited a Next.js project that is deployed to AWS Lambda@Edge using the serverless-components (https://www.npmjs.com/package/@sls-next/serverless-component), which only works for Next.js 11 or lower. I've been asked to upgrade it to Next.js 14, and move the project to SST, and have used the "drop in mode" to add SST to the project, and have it running locally.
I'm trying to work out where I configure the sorts of information (Lambda names, timeouts, IAM policy for app to assume, bucket name etc.) that would be contained in the serverless.yml and am struggling to find any documentation. For sake of example, the currently serverless.yml is this:
Does anyone know where I can find this information or guidance? I have also asked on the SST Discord, however it doesn't look like there's much activity over there.
I'm trying to work out where I configure the sorts of information (Lambda names, timeouts, IAM policy for app to assume, bucket name etc.) that would be contained in the serverless.yml and am struggling to find any documentation. For sake of example, the currently serverless.yml is this:
app:
component: '@sls-next/serverless-component@3.6.0'
inputs:
env:
NEXTAUTH_URL: 'https://app-dev.domain.com'
description: 'App on Lambda@Edge'
name:
defaultLambda: app-default
apiLambda: app-api
timeout:
defaultLambda: 30
apiLambda: 30
policy: 'arn:aws:iam::<account-id>:policy/app-read'
bucketName: ${env.DEPLOYMENT_BUCKET}
memorySize: 1024
AccelerateConfiguration:
AccelerationStatus: EnabledDoes anyone know where I can find this information or guidance? I have also asked on the SST Discord, however it doesn't look like there's much activity over there.