Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serverless-Next.js deployment not updating the EdgeLambda version to latest in Cloudfront cache behaviour mapping #2489

Open
dnaveen61 opened this issue Sep 9, 2022 · 1 comment

Comments

@dnaveen61
Copy link

While deploying the serverless-next.js component via pipeline, its not updating the Server side rendering EdgeLambda function version to the latest version in Cloudfront cache behaviour(Public assets- js/*) route path.

But for other _next/* and static/* routes the lambda mapping is being updated with correct latest version.

image

image

After deployment eventhough the edgelambda has been published with new version, but still cloudfront lambda association is still having old version. This resulted in issues like the routes for public assets available to be missing for resources like js/results.js
(because an older version of the nextjs lambda app did not have this route/resource added yet).

image

Still the lambda version is showing as 653 in mapping though latest version is 963.

image

To fix this we are doing the mapping update manually to the latest version. Please let know any findings to fix this issue.

@robertsonsamuel
Copy link

@dnaveen61 out of curiosity. I'm on 3.7.0.
Are you sure the functions are mapping versions 1:1 ?

For example my api/* route follows the version correctly and is named Lambda@Edge for <app name> (API). If I check that edge function version in cloud-front it matches.

Curious if this is an alpha 11 issue of course. I can at least say I'm not seeing that on my production version on 3.7.0.

Can totally be valid, but that threw me off as version numbers may look off, but were actually correct once I looked again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants