jetbridge / cdk-nextjs

Deploy a NextJS application using AWS CDK
https://constructs.dev/packages/cdk-nextjs-standalone
Apache License 2.0
273 stars 45 forks source link

error: ValidationException: 1 validation error detected: Value null at 'tableName' failed to satisfy constraint: Member must not be null #157

Closed onhate closed 11 months ago

onhate commented 11 months ago

Am I missing something?

2023-10-26T13-52-47

onhate commented 11 months ago
 buildCommand: 'npx open-next@2 build --dangerously-disable-dynamodb-cache',

got it

bestickley commented 11 months ago

Did you get that error by default when deploying construct?

onhate commented 11 months ago

I see that error by default on cloudwatch logs

onhate commented 11 months ago

it does not causes errors on the application, but it logs on cloudwatch

bestickley commented 11 months ago

On your server lambda function you do you have the environment variable, CACHE_DYNAMO_TABLE? See: https://github.com/jetbridge/cdk-nextjs/blob/main/src/NextjsRevalidation.ts#L57

onhate commented 11 months ago

no 🤔

onhate commented 11 months ago

wait, I've upgraded to beta.8 now let me see if it works I was on beta.6

onhate commented 11 months ago

it works now, thanks