-
-
Notifications
You must be signed in to change notification settings - Fork 459
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
Use basepath in s3 assets #2265
Use basepath in s3 assets #2265
Conversation
Handler Size Report
Base Handler Sizes (kB) (commit aab033f){
"Lambda": {
"Default Lambda": {
"Standard": 1525,
"Minified": 668
},
"Image Lambda": {
"Standard": 1489,
"Minified": 802
}
},
"Lambda@Edge": {
"Default Lambda": {
"Standard": 1534,
"Minified": 674
},
"Default Lambda V2": {
"Standard": 1527,
"Minified": 670
},
"API Lambda": {
"Standard": 634,
"Minified": 318
},
"Image Lambda": {
"Standard": 1497,
"Minified": 807
},
"Regeneration Lambda": {
"Standard": 1184,
"Minified": 545
},
"Regeneration Lambda V2": {
"Standard": 1254,
"Minified": 573
}
}
} New Handler Sizes (kB) (commit b36be83){
"Lambda": {
"Default Lambda": {
"Standard": 1525,
"Minified": 668
},
"Image Lambda": {
"Standard": 1489,
"Minified": 802
}
},
"Lambda@Edge": {
"Default Lambda": {
"Standard": 1534,
"Minified": 674
},
"Default Lambda V2": {
"Standard": 1527,
"Minified": 670
},
"API Lambda": {
"Standard": 634,
"Minified": 318
},
"Image Lambda": {
"Standard": 1497,
"Minified": 807
},
"Regeneration Lambda": {
"Standard": 1184,
"Minified": 545
},
"Regeneration Lambda V2": {
"Standard": 1254,
"Minified": 573
}
}
} |
Codecov Report
@@ Coverage Diff @@
## master #2265 +/- ##
==========================================
+ Coverage 83.51% 83.54% +0.03%
==========================================
Files 102 102
Lines 3669 3671 +2
Branches 1167 1169 +2
==========================================
+ Hits 3064 3067 +3
+ Misses 593 592 -1
Partials 12 12
Continue to review full report at Codecov.
|
I think this is fine as it's a small enough change. Thx! |
Hm I think from the stacktrace it looks like the error is coming from the
Next.js chunks? can you actually find the code where it's failing and see
if it's coming from the library? maybe at
/var/task/chunks/595.js:417276:13? I didn't change anything in the ISR code
but seems like might be some Next.js version issue..maybe there's some
compatibility issue with the latest version?
…On Sat, Jan 22, 2022 at 8:31 AM moshfrid ***@***.***> wrote:
i dont know why, but using this new alpha version seems to break isr.
[image: image]
<https://user-images.githubusercontent.com/20837433/150647163-1a4434f8-8e91-41c9-9256-91855f26c21c.png>
—
Reply to this email directly, view it on GitHub
<#2265 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAYSQFFVWAC3WFEXEERSXS3UXLLUVANCNFSM5ME6IOTA>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***
com>
|
I've had this error as well with Next, even before this change, so my guess is that it's not serverless-nextjs' fault. I haven't yet investigated what could be the cause. |
@DoNormal I'm not having any issues using the alpha.4 tho |
I ran into the problem described in #1620: when using a
basePath
in the Next.js application, the S3 asset bucket remains empty. There was a fix mentioned in the issue, but no PR yet, so I've taken the liberty to make that change and open this PR. I tried the change locally and it worked.@dphang or any other maintainer: I'm of course willing to add tests, but I couldn't figure out how to integrate such a basePath test with the existing CDK tests.